#D2C03F#D2C03F

#D2C03F is a light, vivid yellow. Relative luminance 0.518; OKLCH L 80.0% C 0.145 H 101.2°. Best body text is #000000 at 11.35:1 contrast (WCAG AA passes).

Color values

HEX#D2C03F
RGBrgb(210, 192, 63)
HSLhsl(53, 62%, 54%)
HSVhsv(53, 70%, 82%)
CMYKcmyk(0%, 8.6%, 70%, 17.6%)
CIE-LABlab(77.14, -7.97, 64.03)
CIE-LCHlch(77.14, 64.52, 97.09°)
OKLaboklab(80.02% -0.0282 0.1426)
OKLCHoklch(80.02% 0.145 101.2)
XYZxyz(46.3272, 51.7618, 12.2525)
Luminance0.5176 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D2C03F #3F51D2
analogous
#D2763F #D2C03F #9AD23F
triadic
#D2C03F #3FD2C0 #C03FD2
tetradic
#D2C03F #3FD276 #3F51D2 #D23F9A
square
#D2C03F #3FD276 #3F51D2 #D23F9A
split-complementary
#D2C03F #3F9AD2 #763FD2
monochromatic
#7A6F1D #AC9B28 #D2C03F #DED071 #E9E1A2

Accessibility & contrast

On white

1.85
#D2C03F on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

11.35
#D2C03F on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D2C03F
11.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D2C03F#FFFFFF#000000##000000
##D2C03F1.001.8511.3511.35
#FFFFFF1.851.0021.0021.00
#00000011.3521.001.001.00
##00000011.3521.001.001.00

Color blindness preview

Protanopia (red-blind)
#D2BA2B
Deuteranopia (green-blind)
#D7C247
Tritanopia (blue-blind)
#E2B2A6
Achromatopsia (no color)
#BEBEBE

Design tokens & code

CSS
--color: #d2c03f;
/* rgb */ color: rgb(210, 192, 63);
/* oklch */ color: oklch(80.0% 0.145 101.2);
Tailwind
colors: {
  custom: {
    50: '#e3d27c',
    500: '#d2c03f',
    950: '#000000',
  },
}
SCSS
$custom: #d2c03f;
$custom-light: #e3d27c;
$custom-dark: #000000;
JSON
{
  "hex": "#d2c03f",
  "rgb": {
    "r": 210,
    "g": 192,
    "b": 63
  },
  "hsl": {
    "h": 52.653,
    "s": 62.025,
    "l": 53.529
  },
  "oklch": {
    "l": 0.8002,
    "c": 0.14534,
    "h": 101.2
  },
  "luminance": 0.5176
}

Semantic roles & 50–950 ramp

primary
#D2C03F
secondary
#333D82
accent
#57E543
background
#FFFEFB
surface
#FEFBF2
border
#D6D4CC
text
#16140A
muted
#85837D

Preview Lab

Preview with #D2C03F

Body copy rendered with the generated semantic roles for this colour.

Preview Lab → · Contrast checker → · Palette generator →

#D2C03F Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva