#D7CC2E#D7CC2E

#D7CC2E is a very light, vivid yellow. Relative luminance 0.578; OKLCH L 82.9% C 0.165 H 105.2°. Best body text is #000000 at 12.57:1 contrast (WCAG AA passes).

Color values

HEX#D7CC2E
RGBrgb(215, 204, 46)
HSLhsl(56, 68%, 51%)
HSVhsv(56, 79%, 84%)
CMYKcmyk(0%, 5.1%, 78.6%, 15.7%)
CIE-LABlab(80.65, -12.64, 73.18)
CIE-LCHlch(80.65, 74.26, 99.80°)
OKLaboklab(82.88% -0.0432 0.1587)
OKLCHoklch(82.88% 0.165 105.2)
XYZxyz(50.1126, 57.8321, 11.1073)
Luminance0.5783 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D7CC2E #2E39D7
analogous
#D7772E #D7CC2E #8DD72E
triadic
#D7CC2E #2ED7CC #CC2ED7
tetradic
#D7CC2E #2ED777 #2E39D7 #D72E8D
square
#D7CC2E #2ED777 #2E39D7 #D72E8D
split-complementary
#D7CC2E #2E8DD7 #772ED7
monochromatic
#746E16 #A89F20 #D7CC2E #E1D961 #EBE595

Accessibility & contrast

On white

1.67
#D7CC2E on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

12.57
#D7CC2E on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D7CC2E
12.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D7CC2E#FFFFFF#000000##000000
##D7CC2E1.001.6712.5712.57
#FFFFFF1.671.0021.0021.00
#00000012.5721.001.001.00
##00000012.5721.001.001.00

Color blindness preview

Protanopia (red-blind)
#DEC500
Deuteranopia (green-blind)
#E2CB3B
Tritanopia (blue-blind)
#E7BEAF
Achromatopsia (no color)
#C8C8C8

Design tokens & code

CSS
--color: #d7cc2e;
/* rgb */ color: rgb(215, 204, 46);
/* oklch */ color: oklch(82.9% 0.165 105.2);
Tailwind
colors: {
  custom: {
    50: '#e8db75',
    500: '#d7cc2e',
    950: '#000000',
  },
}
SCSS
$custom: #d7cc2e;
$custom-light: #e8db75;
$custom-dark: #000000;
JSON
{
  "hex": "#d7cc2e",
  "rgb": {
    "r": 215,
    "g": 204,
    "b": 46
  },
  "hsl": {
    "h": 56.095,
    "s": 67.871,
    "l": 51.176
  },
  "oklch": {
    "l": 0.82883,
    "c": 0.1645,
    "h": 105.2
  },
  "luminance": 0.5783
}

Semantic roles & 50–950 ramp

primary
#D7CC2E
secondary
#2C327D
accent
#48EB3D
background
#FFFEFB
surface
#FEFBF1
border
#D6D4CB
text
#171409
muted
#85837D

Preview Lab

Preview with #D7CC2E

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

Preview Lab → · Contrast checker → · Palette generator →

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