#D1C84F#D1C84F

#D1C84F is a light, vivid yellow. Relative luminance 0.554; OKLCH L 81.7% C 0.141 H 105.1°. Best body text is #000000 at 12.09:1 contrast (WCAG AA passes).

Color values

HEX#D1C84F
RGBrgb(209, 200, 79)
HSLhsl(56, 59%, 56%)
HSVhsv(56, 62%, 82%)
CMYKcmyk(0%, 4.3%, 62.2%, 18%)
CIE-LABlab(79.29, -11.56, 59.76)
CIE-LCHlch(79.29, 60.86, 100.94°)
OKLaboklab(81.75% -0.0366 0.1361)
OKLCHoklch(81.75% 0.141 105.1)
XYZxyz(48.3618, 55.4301, 15.5472)
Luminance0.5543 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D1C84F #4F58D1
analogous
#D1874F #D1C84F #99D14F
triadic
#D1C84F #4FD1C8 #C84FD1
tetradic
#D1C84F #4FD187 #4F58D1 #D14F99
square
#D1C84F #4FD187 #4F58D1 #D14F99
split-complementary
#D1C84F #4F99D1 #874FD1
monochromatic
#837D22 #B4AB2F #D1C84F #DED780 #EAE6B0

Accessibility & contrast

On white

1.74
#D1C84F on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

12.09
#D1C84F on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D1C84F
12.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D1C84F#FFFFFF#000000##000000
##D1C84F1.001.7412.0912.09
#FFFFFF1.741.0021.0021.00
#00000012.0921.001.001.00
##00000012.0921.001.001.00

Color blindness preview

Protanopia (red-blind)
#D8C140
Deuteranopia (green-blind)
#DCC756
Tritanopia (blue-blind)
#E0BBAF
Achromatopsia (no color)
#C4C4C4

Design tokens & code

CSS
--color: #d1c84f;
/* rgb */ color: rgb(209, 200, 79);
/* oklch */ color: oklch(81.7% 0.141 105.1);
Tailwind
colors: {
  custom: {
    50: '#e2d886',
    500: '#d1c84f',
    950: '#000000',
  },
}
SCSS
$custom: #d1c84f;
$custom-light: #e2d886;
$custom-dark: #000000;
JSON
{
  "hex": "#d1c84f",
  "rgb": {
    "r": 209,
    "g": 200,
    "b": 79
  },
  "hsl": {
    "h": 55.846,
    "s": 58.559,
    "l": 56.471
  },
  "oklch": {
    "l": 0.81747,
    "c": 0.14096,
    "h": 105.1
  },
  "luminance": 0.55428
}

Semantic roles & 50–950 ramp

primary
#D1C84F
secondary
#3A3F8A
accent
#51E246
background
#FEFEFB
surface
#FCFBF2
border
#D5D4CC
text
#16140B
muted
#84837E

Preview Lab

Preview with #D1C84F

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

Preview Lab → · Contrast checker → · Palette generator →

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