#D1C74D#D1C74D

#D1C74D is a light, vivid yellow. Relative luminance 0.549; OKLCH L 81.5% C 0.142 H 104.6°. Best body text is #000000 at 11.99:1 contrast (WCAG AA passes).

Color values

HEX#D1C74D
RGBrgb(209, 199, 77)
HSLhsl(55, 59%, 56%)
HSVhsv(55, 63%, 82%)
CMYKcmyk(0%, 4.8%, 63.2%, 18%)
CIE-LABlab(79.01, -11.18, 60.30)
CIE-LCHlch(79.01, 61.33, 100.50°)
OKLaboklab(81.52% -0.0357 0.137)
OKLCHoklch(81.52% 0.142 104.6)
XYZxyz(48.0592, 54.9397, 15.0926)
Luminance0.5494 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D1C74D #4D57D1
analogous
#D1854D #D1C74D #99D14D
triadic
#D1C74D #4DD1C7 #C74DD1
tetradic
#D1C74D #4DD185 #4D57D1 #D14D99
square
#D1C74D #4DD185 #4D57D1 #D14D99
split-complementary
#D1C74D #4D99D1 #854DD1
monochromatic
#827B22 #B3A92E #D1C74D #DED67E #EAE6AE

Accessibility & contrast

On white

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

On black

11.99
#D1C74D on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D1C74D
11.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D1C74D#FFFFFF#000000##000000
##D1C74D1.001.7511.9911.99
#FFFFFF1.751.0021.0021.00
#00000011.9921.001.001.00
##00000011.9921.001.001.00

Color blindness preview

Protanopia (red-blind)
#D7C03E
Deuteranopia (green-blind)
#DBC654
Tritanopia (blue-blind)
#E0BAAD
Achromatopsia (no color)
#C4C4C4

Design tokens & code

CSS
--color: #d1c74d;
/* rgb */ color: rgb(209, 199, 77);
/* oklch */ color: oklch(81.5% 0.142 104.6);
Tailwind
colors: {
  custom: {
    50: '#e2d784',
    500: '#d1c74d',
    950: '#000000',
  },
}
SCSS
$custom: #d1c74d;
$custom-light: #e2d784;
$custom-dark: #000000;
JSON
{
  "hex": "#d1c74d",
  "rgb": {
    "r": 209,
    "g": 199,
    "b": 77
  },
  "hsl": {
    "h": 55.455,
    "s": 58.929,
    "l": 56.078
  },
  "oklch": {
    "l": 0.81518,
    "c": 0.14157,
    "h": 104.6
  },
  "luminance": 0.54938
}

Semantic roles & 50–950 ramp

primary
#D1C74D
secondary
#393F89
accent
#52E246
background
#FEFEFB
surface
#FDFBF2
border
#D5D4CC
text
#16140B
muted
#84837E

Preview Lab

Preview with #D1C74D

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

Preview Lab → · Contrast checker → · Palette generator →

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