#D5C74F#D5C74F

#D5C74F is a light, vivid yellow. Relative luminance 0.556; OKLCH L 81.9% C 0.140 H 102.7°. Best body text is #000000 at 12.11:1 contrast (WCAG AA passes).

Color values

HEX#D5C74F
RGBrgb(213, 199, 79)
HSLhsl(54, 61%, 57%)
HSVhsv(54, 63%, 84%)
CMYKcmyk(0%, 6.6%, 62.9%, 16.5%)
CIE-LABlab(79.36, -9.37, 59.94)
CIE-LCHlch(79.36, 60.66, 98.89°)
OKLaboklab(81.89% -0.0306 0.1364)
OKLCHoklch(81.89% 0.14 102.7)
XYZxyz(49.2772, 55.5594, 15.5240)
Luminance0.5556 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D5C74F #4F5DD5
analogous
#D5844F #D5C74F #A0D54F
triadic
#D5C74F #4FD5C7 #C74FD5
tetradic
#D5C74F #4FD584 #4F5DD5 #D54FA0
square
#D5C74F #4FD584 #4F5DD5 #D54FA0
split-complementary
#D5C74F #4FA0D5 #844FD5
monochromatic
#897E21 #BAAC2C #D5C74F #E1D780 #EDE6B2

Accessibility & contrast

On white

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

On black

12.11
#D5C74F on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D5C74F
12.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D5C74F#FFFFFF#000000##000000
##D5C74F1.001.7312.1112.11
#FFFFFF1.731.0021.0021.00
#00000012.1121.001.001.00
##00000012.1121.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #d5c74f;
/* rgb */ color: rgb(213, 199, 79);
/* oklch */ color: oklch(81.9% 0.140 102.7);
Tailwind
colors: {
  custom: {
    50: '#e5d786',
    500: '#d5c74f',
    950: '#000000',
  },
}
SCSS
$custom: #d5c74f;
$custom-light: #e5d786;
$custom-dark: #000000;
JSON
{
  "hex": "#d5c74f",
  "rgb": {
    "r": 213,
    "g": 199,
    "b": 79
  },
  "hsl": {
    "h": 53.731,
    "s": 61.468,
    "l": 57.255
  },
  "oklch": {
    "l": 0.81887,
    "c": 0.1398,
    "h": 102.7
  },
  "luminance": 0.55557
}

Semantic roles & 50–950 ramp

primary
#D5C74F
secondary
#39428F
accent
#54E543
background
#FFFEFB
surface
#FEFBF2
border
#D6D4CC
text
#16140B
muted
#85837E

Preview Lab

Preview with #D5C74F

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

Preview Lab → · Contrast checker → · Palette generator →

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