#D2C64F#D2C64F

#D2C64F is a light, vivid yellow. Relative luminance 0.547; OKLCH L 81.4% C 0.139 H 103.6°. Best body text is #000000 at 11.93:1 contrast (WCAG AA passes).

Color values

HEX#D2C64F
RGBrgb(210, 198, 79)
HSLhsl(55, 59%, 57%)
HSVhsv(55, 62%, 82%)
CMYKcmyk(0%, 5.7%, 62.4%, 17.6%)
CIE-LABlab(78.84, -10.12, 59.30)
CIE-LCHlch(78.84, 60.16, 99.68°)
OKLaboklab(81.41% -0.0326 0.1351)
OKLCHoklch(81.41% 0.139 103.6)
XYZxyz(48.1855, 54.6561, 15.4071)
Luminance0.5465 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D2C64F #4F5BD2
analogous
#D2854F #D2C64F #9DD24F
triadic
#D2C64F #4FD2C6 #C64FD2
tetradic
#D2C64F #4FD285 #4F5BD2 #D24F9D
square
#D2C64F #4FD285 #4F5BD2 #D24F9D
split-complementary
#D2C64F #4F9DD2 #854FD2
monochromatic
#857C22 #B5A92E #D2C64F #DED680 #EBE6B0

Accessibility & contrast

On white

1.76
#D2C64F on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

11.93
#D2C64F on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D2C64F
11.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D2C64F#FFFFFF#000000##000000
##D2C64F1.001.7611.9311.93
#FFFFFF1.761.0021.0021.00
#00000011.9321.001.001.00
##00000011.9321.001.001.00

Color blindness preview

Protanopia (red-blind)
#D7C041
Deuteranopia (green-blind)
#DBC656
Tritanopia (blue-blind)
#E1B9AD
Achromatopsia (no color)
#C3C3C3

Design tokens & code

CSS
--color: #d2c64f;
/* rgb */ color: rgb(210, 198, 79);
/* oklch */ color: oklch(81.4% 0.139 103.6);
Tailwind
colors: {
  custom: {
    50: '#e3d785',
    500: '#d2c64f',
    950: '#000000',
  },
}
SCSS
$custom: #d2c64f;
$custom-light: #e3d785;
$custom-dark: #000000;
JSON
{
  "hex": "#d2c64f",
  "rgb": {
    "r": 210,
    "g": 198,
    "b": 79
  },
  "hsl": {
    "h": 54.504,
    "s": 59.276,
    "l": 56.667
  },
  "oklch": {
    "l": 0.81413,
    "c": 0.13901,
    "h": 103.6
  },
  "luminance": 0.54654
}

Semantic roles & 50–950 ramp

primary
#D2C64F
secondary
#3A418C
accent
#54E245
background
#FEFEFB
surface
#FDFBF2
border
#D5D4CC
text
#16140B
muted
#84837E

Preview Lab

Preview with #D2C64F

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

Preview Lab → · Contrast checker → · Palette generator →

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