#D7CA5F#D7CA5F

#D7CA5F is a very light, vivid yellow. Relative luminance 0.575; OKLCH L 82.9% C 0.129 H 102.4°. Best body text is #000000 at 12.50:1 contrast (WCAG AA passes).

Color values

HEX#D7CA5F
RGBrgb(215, 202, 95)
HSLhsl(54, 60%, 61%)
HSVhsv(54, 56%, 84%)
CMYKcmyk(0%, 6%, 55.8%, 15.7%)
CIE-LABlab(80.47, -8.95, 54.12)
CIE-LCHlch(80.47, 54.85, 99.39°)
OKLaboklab(82.86% -0.0278 0.126)
OKLCHoklch(82.86% 0.129 102.4)
XYZxyz(51.2121, 57.5162, 19.2284)
Luminance0.5751 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D7CA5F #5F6CD7
analogous
#D78E5F #D7CA5F #A8D75F
triadic
#D7CA5F #5FD7CA #CA5FD7
tetradic
#D7CA5F #5FD78E #5F6CD7 #D75FA8
square
#D7CA5F #5FD78E #5F6CD7 #D75FA8
split-complementary
#D7CA5F #5FA8D7 #8E5FD7
monochromatic
#968A26 #C7B732 #D7CA5F #E3DA90 #EFEAC1

Accessibility & contrast

On white

1.68
#D7CA5F on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

12.50
#D7CA5F on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D7CA5F
12.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D7CA5F#FFFFFF#000000##000000
##D7CA5F1.001.6812.5012.50
#FFFFFF1.681.0021.0021.00
#00000012.5021.001.001.00
##00000012.5021.001.001.00

Color blindness preview

Protanopia (red-blind)
#DAC454
Deuteranopia (green-blind)
#DECA64
Tritanopia (blue-blind)
#E5BEB2
Achromatopsia (no color)
#C8C8C8

Design tokens & code

CSS
--color: #d7ca5f;
/* rgb */ color: rgb(215, 202, 95);
/* oklch */ color: oklch(82.9% 0.129 102.4);
Tailwind
colors: {
  custom: {
    50: '#e6d990',
    500: '#d7ca5f',
    950: '#000000',
  },
}
SCSS
$custom: #d7ca5f;
$custom-light: #e6d990;
$custom-dark: #000000;
JSON
{
  "hex": "#d7ca5f",
  "rgb": {
    "r": 215,
    "g": 202,
    "b": 95
  },
  "hsl": {
    "h": 53.5,
    "s": 60,
    "l": 60.784
  },
  "oklch": {
    "l": 0.82855,
    "c": 0.12902,
    "h": 102.4
  },
  "luminance": 0.57514
}

Semantic roles & 50–950 ramp

primary
#D7CA5F
secondary
#3F499B
accent
#30C81E
background
#FEFEFC
surface
#FDFBF4
border
#D5D4CE
text
#16140D
muted
#84837F

Preview Lab

Preview with #D7CA5F

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

Preview Lab → · Contrast checker → · Palette generator →

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