#D7CA2E#D7CA2E

#D7CA2E is a very light, vivid yellow. Relative luminance 0.569; OKLCH L 82.5% C 0.163 H 104.4°. Best body text is #000000 at 12.38:1 contrast (WCAG AA passes).

Color values

HEX#D7CA2E
RGBrgb(215, 202, 46)
HSLhsl(55, 68%, 51%)
HSVhsv(55, 79%, 84%)
CMYKcmyk(0%, 6%, 78.6%, 15.7%)
CIE-LABlab(80.12, -11.64, 72.71)
CIE-LCHlch(80.12, 73.64, 99.09°)
OKLaboklab(82.46% -0.0404 0.1577)
OKLCHoklch(82.46% 0.163 104.4)
XYZxyz(49.6403, 56.8875, 10.9498)
Luminance0.5688 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D7CA2E #2E3BD7
analogous
#D7752E #D7CA2E #8FD72E
triadic
#D7CA2E #2ED7CA #CA2ED7
tetradic
#D7CA2E #2ED775 #2E3BD7 #D72E8F
square
#D7CA2E #2ED775 #2E3BD7 #D72E8F
split-complementary
#D7CA2E #2E8FD7 #752ED7
monochromatic
#746D16 #A89D20 #D7CA2E #E1D761 #EBE495

Accessibility & contrast

On white

1.70
#D7CA2E on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

12.38
#D7CA2E on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D7CA2E
12.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D7CA2E#FFFFFF#000000##000000
##D7CA2E1.001.7012.3812.38
#FFFFFF1.701.0021.0021.00
#00000012.3821.001.001.00
##00000012.3821.001.001.00

Color blindness preview

Protanopia (red-blind)
#DDC300
Deuteranopia (green-blind)
#E1CA3B
Tritanopia (blue-blind)
#E7BCAD
Achromatopsia (no color)
#C7C7C7

Design tokens & code

CSS
--color: #d7ca2e;
/* rgb */ color: rgb(215, 202, 46);
/* oklch */ color: oklch(82.5% 0.163 104.4);
Tailwind
colors: {
  custom: {
    50: '#e8d975',
    500: '#d7ca2e',
    950: '#000000',
  },
}
SCSS
$custom: #d7ca2e;
$custom-light: #e8d975;
$custom-dark: #000000;
JSON
{
  "hex": "#d7ca2e",
  "rgb": {
    "r": 215,
    "g": 202,
    "b": 46
  },
  "hsl": {
    "h": 55.385,
    "s": 67.871,
    "l": 51.176
  },
  "oklch": {
    "l": 0.82461,
    "c": 0.1628,
    "h": 104.4
  },
  "luminance": 0.56885
}

Semantic roles & 50–950 ramp

primary
#D7CA2E
secondary
#2C337D
accent
#4AEB3D
background
#FFFEFB
surface
#FEFBF1
border
#D6D4CB
text
#171409
muted
#85837D

Preview Lab

Preview with #D7CA2E

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

Preview Lab → · Contrast checker → · Palette generator →

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