#D7CD2E#D7CD2E

#D7CD2E is a very light, vivid yellow. Relative luminance 0.583; OKLCH L 83.1% C 0.165 H 105.7°. Best body text is #000000 at 12.66:1 contrast (WCAG AA passes).

Color values

HEX#D7CD2E
RGBrgb(215, 205, 46)
HSLhsl(56, 68%, 51%)
HSVhsv(56, 79%, 84%)
CMYKcmyk(0%, 4.7%, 78.6%, 15.7%)
CIE-LABlab(80.91, -13.15, 73.41)
CIE-LCHlch(80.91, 74.58, 100.15°)
OKLaboklab(83.09% -0.0446 0.1592)
OKLCHoklch(83.09% 0.165 105.7)
XYZxyz(50.3510, 58.3089, 11.1868)
Luminance0.5831 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D7CD2E #2E38D7
analogous
#D7782E #D7CD2E #8CD72E
triadic
#D7CD2E #2ED7CD #CD2ED7
tetradic
#D7CD2E #2ED778 #2E38D7 #D72E8C
square
#D7CD2E #2ED778 #2E38D7 #D72E8C
split-complementary
#D7CD2E #2E8CD7 #782ED7
monochromatic
#746F16 #A8A020 #D7CD2E #E1D961 #EBE695

Accessibility & contrast

On white

1.66
#D7CD2E on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

12.66
#D7CD2E on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D7CD2E
12.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D7CD2E#FFFFFF#000000##000000
##D7CD2E1.001.6612.6612.66
#FFFFFF1.661.0021.0021.00
#00000012.6621.001.001.00
##00000012.6621.001.001.00

Color blindness preview

Protanopia (red-blind)
#DFC500
Deuteranopia (green-blind)
#E3CC3C
Tritanopia (blue-blind)
#E7BFB0
Achromatopsia (no color)
#C9C9C9

Design tokens & code

CSS
--color: #d7cd2e;
/* rgb */ color: rgb(215, 205, 46);
/* oklch */ color: oklch(83.1% 0.165 105.7);
Tailwind
colors: {
  custom: {
    50: '#e8db75',
    500: '#d7cd2e',
    950: '#000000',
  },
}
SCSS
$custom: #d7cd2e;
$custom-light: #e8db75;
$custom-dark: #000000;
JSON
{
  "hex": "#d7cd2e",
  "rgb": {
    "r": 215,
    "g": 205,
    "b": 46
  },
  "hsl": {
    "h": 56.45,
    "s": 67.871,
    "l": 51.176
  },
  "oklch": {
    "l": 0.83094,
    "c": 0.16537,
    "h": 105.7
  },
  "luminance": 0.58307
}

Semantic roles & 50–950 ramp

primary
#D7CD2E
secondary
#2C317D
accent
#47EB3D
background
#FFFEFB
surface
#FEFBF1
border
#D6D4CB
text
#171409
muted
#85837D

Preview Lab

Preview with #D7CD2E

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

Preview Lab → · Contrast checker → · Palette generator →

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