#D2C84F#D2C84F

#D2C84F is a light, vivid yellow. Relative luminance 0.556; OKLCH L 81.8% C 0.141 H 104.6°. Best body text is #000000 at 12.12:1 contrast (WCAG AA passes).

Color values

HEX#D2C84F
RGBrgb(210, 200, 79)
HSLhsl(55, 59%, 57%)
HSVhsv(55, 62%, 82%)
CMYKcmyk(0%, 4.8%, 62.4%, 17.6%)
CIE-LABlab(79.37, -11.14, 59.87)
CIE-LCHlch(79.37, 60.90, 100.54°)
OKLaboklab(81.83% -0.0355 0.1363)
OKLCHoklch(81.83% 0.141 104.6)
XYZxyz(48.6457, 55.5764, 15.5605)
Luminance0.5557 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D2C84F #4F59D2
analogous
#D2874F #D2C84F #9BD24F
triadic
#D2C84F #4FD2C8 #C84FD2
tetradic
#D2C84F #4FD287 #4F59D2 #D24F9B
square
#D2C84F #4FD287 #4F59D2 #D24F9B
split-complementary
#D2C84F #4F9BD2 #874FD2
monochromatic
#857D22 #B5AB2E #D2C84F #DED780 #EBE6B0

Accessibility & contrast

On white

1.73
#D2C84F on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

12.12
#D2C84F on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D2C84F
12.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D2C84F#FFFFFF#000000##000000
##D2C84F1.001.7312.1212.12
#FFFFFF1.731.0021.0021.00
#00000012.1221.001.001.00
##00000012.1221.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #d2c84f;
/* rgb */ color: rgb(210, 200, 79);
/* oklch */ color: oklch(81.8% 0.141 104.6);
Tailwind
colors: {
  custom: {
    50: '#e3d886',
    500: '#d2c84f',
    950: '#000000',
  },
}
SCSS
$custom: #d2c84f;
$custom-light: #e3d886;
$custom-dark: #000000;
JSON
{
  "hex": "#d2c84f",
  "rgb": {
    "r": 210,
    "g": 200,
    "b": 79
  },
  "hsl": {
    "h": 55.42,
    "s": 59.276,
    "l": 56.667
  },
  "oklch": {
    "l": 0.81834,
    "c": 0.14088,
    "h": 104.6
  },
  "luminance": 0.55575
}

Semantic roles & 50–950 ramp

primary
#D2C84F
secondary
#3A408C
accent
#51E245
background
#FEFEFB
surface
#FDFBF2
border
#D5D4CC
text
#16140B
muted
#84837E

Preview Lab

Preview with #D2C84F

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

Preview Lab → · Contrast checker → · Palette generator →

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