#D0CC2F#D0CC2F

#D0CC2F is a very light, vivid yellow. Relative luminance 0.568; OKLCH L 82.3% C 0.165 H 108.0°. Best body text is #000000 at 12.36:1 contrast (WCAG AA passes).

Color values

HEX#D0CC2F
RGBrgb(208, 204, 47)
HSLhsl(59, 63%, 50%)
HSVhsv(59, 77%, 82%)
CMYKcmyk(0%, 1.9%, 77.4%, 18.4%)
CIE-LABlab(80.07, -15.58, 72.16)
CIE-LCHlch(80.07, 73.82, 102.19°)
OKLaboklab(82.28% -0.051 0.157)
OKLCHoklch(82.28% 0.165 108)
XYZxyz(48.1203, 56.8025, 11.1180)
Luminance0.5680 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D0CC2F #2F33D0
analogous
#D07B2F #D0CC2F #84D02F
triadic
#D0CC2F #2FD0CC #CC2FD0
tetradic
#D0CC2F #2FD07B #2F33D0 #D02F84
square
#D0CC2F #2FD07B #2F33D0 #D02F84
split-complementary
#D0CC2F #2F84D0 #7B2FD0
monochromatic
#6C6A18 #9E9B24 #D0CC2F #DBD861 #E7E493

Accessibility & contrast

On white

1.70
#D0CC2F on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

12.36
#D0CC2F on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D0CC2F
12.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D0CC2F#FFFFFF#000000##000000
##D0CC2F1.001.7012.3612.36
#FFFFFF1.701.0021.0021.00
#00000012.3621.001.001.00
##00000012.3621.001.001.00

Color blindness preview

Protanopia (red-blind)
#DDC400
Deuteranopia (green-blind)
#E0C93D
Tritanopia (blue-blind)
#DFBEAF
Achromatopsia (no color)
#C7C7C7

Design tokens & code

CSS
--color: #d0cc2f;
/* rgb */ color: rgb(208, 204, 47);
/* oklch */ color: oklch(82.3% 0.165 108.0);
Tailwind
colors: {
  custom: {
    50: '#e2db75',
    500: '#d0cc2f',
    950: '#000000',
  },
}
SCSS
$custom: #d0cc2f;
$custom-light: #e2db75;
$custom-dark: #000000;
JSON
{
  "hex": "#d0cc2f",
  "rgb": {
    "r": 208,
    "g": 204,
    "b": 47
  },
  "hsl": {
    "h": 58.509,
    "s": 63.137,
    "l": 50
  },
  "oklch": {
    "l": 0.82284,
    "c": 0.16508,
    "h": 108
  },
  "luminance": 0.56801
}

Semantic roles & 50–950 ramp

primary
#D0CC2F
secondary
#2E2F76
accent
#46E642
background
#FFFEFB
surface
#FEFBF1
border
#D6D4CB
text
#161409
muted
#85837D

Preview Lab

Preview with #D0CC2F

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

Preview Lab → · Contrast checker → · Palette generator →

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