RAL Classic color

RAL 1012 Lemon yellow #C7B446

RAL 1012 Lemon yellow is shown here as #C7B446, a widely published sRGB approximation of the printed swatch. It is a light soft amber in the yellow family. In OKLCH it sits at lightness 0.766, chroma 0.130 and hue 99.5°. The nearest CSS named color is darkkhaki (#BDB76B), ΔE2000 6.4 away.

Relative luminance
0.4523
OKLCH L · C · h
0.766 · 0.130 · 99.5
Best text
Black 10.04:1
Hue family
Yellow

#C7B446 color codes

HEX
#C7B446
RGB
rgb(199, 180, 70)
HSL
hsl(51, 54%, 53%)
OKLCH
oklch(0.766 0.130 99.5)
OKLab
oklab(0.766 -0.021 0.129)
CIELAB (D65)
L* 73.04, a* -6.07, b* 56.67
XYZ (D65)
X 40.98, Y 45.23, Z 12.36
CMYK (naive)
cmyk(0%, 10%, 65%, 22%)

CIELAB and XYZ use the D65 white point; CSS lab() uses D50, so paste the OKLCH or HEX value into stylesheets. CMYK here is a plain formula with no press profile.

RAL and RAL Classic are trademarks of RAL gGmbH, which this site is not affiliated with. The sRGB value is an approximation of the printed swatch; check a physical RAL color card before you specify a paint.

Legibility

Contrast: is #C7B446 accessible?

Black text on it reaches 10.04:1, passing AAA. White text fails at 2.09:1.

WCAG 2 gives the same ratio whichever color is the text; APCA does not, so its Lc changes sign and size with polarity.

Open the Contrast System
  • Black text on it

    10.04:1

    • AA passes
    • AA large passes
    • AAA passes
    • APCA Lc +63
  • White text on it

    2.09:1

    • AA fails
    • AA large fails
    • AAA fails
    • APCA Lc −45
  • As text on black

    10.04:1

    • AA passes
    • AA large passes
    • AAA passes
    • APCA Lc −61
  • As text on white

    2.09:1

    • AA fails
    • AA large fails
    • AAA fails
    • APCA Lc +40

Nearest versions that pass 4.5:1

  • For text on white

    #877600 4.54:1

    Darkening its OKLCH lightness from 0.77 to 0.57 reaches 4.54:1 on white, keeping the hue.

  • For text on black

    #C7B446 10.04:1

    It already reaches 10.04:1 on black, so no change is needed.

Checking another pair? Use the Contrast Checker.

Studio

Adjust #C7B446 live

Move lightness, chroma and hue in OKLCH, or drag on the map. The map is every lightness and chroma at the current hue: sRGB inside the solid area, Display P3 out to the dashed line.

The studio needs JavaScript.

Scale

Shades and tints of #C7B446

Eleven OKLCH lightness steps at this hue, each with its contrast against white and black. #C7B446 sits at step 300.

  1. 50#FFF7C6
    White
    1.08
    Black
    19.37
  2. 100#FCED97
    White
    1.18
    Black
    17.69
  3. 200#EAD97D
    White
    1.42
    Black
    14.71
  4. 300This color#C7B446
    White
    2.09
    Black
    10.04
  5. 400#B5A235
    White
    2.56
    Black
    8.18
  6. 500#998700
    White
    3.60
    Black
    5.82
  7. 600#7F6F00
    White
    5.02
    Black
    4.17
  8. 700#655800
    White
    7.12
    Black
    2.94
  9. 800#4A4000
    White
    10.37
    Black
    2.02
  10. 900#302900
    White
    14.55
    Black
    1.44
  11. 950#1B1600
    White
    18.08
    Black
    1.16

Under each step, white and black text on it; a bold figure passes 4.5:1.

Gamut

How vivid #C7B446 can get

At its lightness and hue, sRGB reaches OKLCH chroma 0.159; #C7B446 uses 82% of it. Display P3, which many recent phones and laptops show, reaches 0.184 there: 16% more.

0.00.20.40.60.80.20.40.60.8 460480500520540560580600620
  • sRGB
  • Display P3
  • Rec. 2020
  • Dominant wavelength
OKLCH chroma
0.130
sRGB edge
0.159
Display P3 edge
0.184
Rec. 2020 edge
0.189
Dominant wavelength
574 nm
Excitation purity
65%
Chromaticity
x 0.4157, y 0.4588
  • This color#C7B446
  • Most vivid in sRGB#CCB300
  • Most vivid in Display P3oklch(0.766 0.184 99.5)

On a screen without Display P3 the last tile shows the sRGB edge instead.

Use the wider color where screens show it
.accent {
  color: #c7b446;
}
@media (color-gamut: p3) {
  .accent { color: color(display-p3 0.7967 0.7049 0); }
}

Mixing

Mixing #C7B446

Each row is the same mix worked out in a different space, with the halfway color at its end. sRGB, which older CSS gradients use, can sag gray or dark in the middle; OKLab keeps the lightness steps even; OKLCH holds chroma and hue as it goes.

White #FFFFFF

  • sRGB50%#E3DAA3
  • OKLab50%#E2DAA9
  • OKLCH50%#E2DAA9

Black #000000

  • sRGB50%#645A23
  • OKLab50%#4C4415
  • OKLCH50%#4C4415

Its complement #A3AAFF

  • sRGB50%#B5AFA3
  • OKLab50%#B3B3B0
  • OKLCH50%#F790A1
In CSS
/* A gradient and a mix, worked out in OKLCH */
background: linear-gradient(in oklch, #c7b446, white);
color: color-mix(in oklch, #c7b446 50%, white);

In use

#C7B446 in an interface

A button, a link, a heading, a focused field, an icon and a chart line in this color, on a light page and a dark one. Each check is a WCAG 2 contrast minimum: 1.4.3 for text, 1.4.11 for the rest.

Light page

  • Button labelText, 4.5:110.04:1 Passes
  • Link and body-size textText, 4.5:12.09:1 Fails
  • Large headingLarge text, 3:12.09:1 Fails
  • Icons, borders and focus ringsNon-text, 3:12.09:1 Fails

For text on this page, the nearest shade that passes is #877600 4.54:1

Dark page

  • Button labelText, 4.5:110.04:1 Passes
  • Link and body-size textText, 4.5:18.96:1 Passes
  • Large headingLarge text, 3:18.96:1 Passes
  • Icons, borders and focus ringsNon-text, 3:18.96:1 Passes

Color vision

How #C7B446 looks with color blindness

Tritanopia changes it most, ΔE2000 27.8; deuteranopia changes it least, 0.8.

Simulated with Machado et al. (2009) at full severity, in linear light.

Simulate a whole page What each type sees
  • Protanopia

    No working red (long-wavelength) cones

    #C4AF39 ΔE2000 1.7

    Very close

    Reads as light soft amber

  • Deuteranopia

    No working green (medium-wavelength) cones

    #CAB64C ΔE2000 0.8

    Imperceptible

    Reads as light soft amber

  • Tritanopia

    No working blue (short-wavelength) cones

    #D6A89D ΔE2000 27.8

    Distinct

    Reads as light muted red

  • Achromatopsia

    No cone color vision; lightness only

    #B3B3B3 ΔE2000 25.0

    Distinct

    Reads as light gray

Pairing check

Checked against its complement, #A3AAFF. Their lightness contrast is only 1.03:1, so where hue collapses, add a label, icon or pattern.

VisionThe pairΔE2000Verdict
Normal vision#C7B446 · #A3AAFF55.9Stays distinct
Protanopia#C4AF39 · #8FB4FF52.7Stays distinct
Deuteranopia#CAB64C · #8AADFD52.9Stays distinct
Tritanopia#D6A89D · #89BAC937.5Stays distinct
Achromatopsia#B3B3B3 · #B1B1B10.6Easily confused

Harmony

Color harmonies for #C7B446

Its complement is #A3AAFF, a light soft blue, on the cool side of the wheel.

Hue rotations in OKLCH, mapped into sRGB by trimming chroma so hue and lightness stay put.

Open the Harmony Studio
  • Base#C7B446
  • Complement#A3AAFF

Complementary

Open in Harmony Studio
  • −30°#E8A34D
  • Base#C7B446
  • +30°#98C366
  • Base#C7B446
  • +120°#2CC6EB
  • +240°#E991CE
  • Base#C7B446
  • +150°#71B8FF
  • +210°#CC9BF1

Split-complementary

Open in Harmony Studio

Code

Design tokens

Ready-to-paste tokens in six formats. Rename them to fit your system.

CSS custom property

:root {
  --color-ral-1012: #c7b446;
}

Tailwind config

// tailwind.config.js
module.exports = {
  theme: {
    extend: {
      colors: {
        'ral-1012': '#c7b446',
      },
    },
  },
};

Tailwind v4 theme

/* app.css — Tailwind CSS v4 */
@import "tailwindcss";

@theme {
  --color-ral-1012: oklch(0.766 0.130 99.5);
}

Design token (W3C DTCG)

{
  "color": {
    "ral-1012": {
      "$type": "color",
      "$value": {
        "colorSpace": "srgb",
        "components": [0.7804, 0.7059, 0.2745],
        "hex": "#c7b446"
      },
      "$description": "RAL 1012 Lemon yellow (approximate sRGB)"
    }
  }
}

SwiftUI color

import SwiftUI

enum Palette {
    static let ral1012 = Color(.sRGB, red: 0.780, green: 0.706, blue: 0.275, opacity: 1)
}

Jetpack Compose color

import androidx.compose.ui.graphics.Color

object Palette {
    val Ral1012 = Color(0xFFC7B446)
}

Matches

The nearest match in each system

The closest CSS name, Tailwind shade, RAL Classic paint and Crayola crayon by ΔE2000; under 2 is hard to tell apart side by side. RAL and Crayola values approximate physical colors.

Tools

Open #C7B446 in the tools

Each opens over this page. More colors live in the Color Library, and every color page is listed on the hub.