#D2C74F#D2C74F

#D2C74F is a light, vivid yellow. Relative luminance 0.551; OKLCH L 81.6% C 0.140 H 104.1°. Best body text is #000000 at 12.02:1 contrast (WCAG AA passes).

Color values

HEX#D2C74F
RGBrgb(210, 199, 79)
HSLhsl(55, 59%, 57%)
HSVhsv(55, 62%, 82%)
CMYKcmyk(0%, 5.2%, 62.4%, 17.6%)
CIE-LABlab(79.11, -10.63, 59.59)
CIE-LCHlch(79.11, 60.53, 100.11°)
OKLaboklab(81.62% -0.034 0.1357)
OKLCHoklch(81.62% 0.14 104.1)
XYZxyz(48.4148, 55.1148, 15.4836)
Luminance0.5511 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D2C74F #4F5AD2
analogous
#D2864F #D2C74F #9CD24F
triadic
#D2C74F #4FD2C7 #C74FD2
tetradic
#D2C74F #4FD286 #4F5AD2 #D24F9C
square
#D2C74F #4FD286 #4F5AD2 #D24F9C
split-complementary
#D2C74F #4F9CD2 #864FD2
monochromatic
#857C22 #B5AA2E #D2C74F #DED780 #EBE6B0

Accessibility & contrast

On white

1.75
#D2C74F on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

12.02
#D2C74F on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D2C74F
12.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D2C74F#FFFFFF#000000##000000
##D2C74F1.001.7512.0212.02
#FFFFFF1.751.0021.0021.00
#00000012.0221.001.001.00
##00000012.0221.001.001.00

Color blindness preview

Protanopia (red-blind)
#D8C141
Deuteranopia (green-blind)
#DBC756
Tritanopia (blue-blind)
#E1BAAE
Achromatopsia (no color)
#C4C4C4

Design tokens & code

CSS
--color: #d2c74f;
/* rgb */ color: rgb(210, 199, 79);
/* oklch */ color: oklch(81.6% 0.140 104.1);
Tailwind
colors: {
  custom: {
    50: '#e3d785',
    500: '#d2c74f',
    950: '#000000',
  },
}
SCSS
$custom: #d2c74f;
$custom-light: #e3d785;
$custom-dark: #000000;
JSON
{
  "hex": "#d2c74f",
  "rgb": {
    "r": 210,
    "g": 199,
    "b": 79
  },
  "hsl": {
    "h": 54.962,
    "s": 59.276,
    "l": 56.667
  },
  "oklch": {
    "l": 0.81623,
    "c": 0.13994,
    "h": 104.1
  },
  "luminance": 0.55113
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #D2C74F

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

Preview Lab → · Contrast checker → · Palette generator →

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