#D7CA51#D7CA51

#D7CA51 is a very light, vivid yellow. Relative luminance 0.573; OKLCH L 82.7% C 0.141 H 103.2°. Best body text is #000000 at 12.46:1 contrast (WCAG AA passes).

Color values

HEX#D7CA51
RGBrgb(215, 202, 81)
HSLhsl(54, 63%, 58%)
HSVhsv(54, 62%, 84%)
CMYKcmyk(0%, 6%, 62.3%, 15.7%)
CIE-LABlab(80.34, -9.93, 60.18)
CIE-LCHlch(80.34, 61.00, 99.37°)
OKLaboklab(82.71% -0.0321 0.1372)
OKLCHoklch(82.71% 0.141 103.2)
XYZxyz(50.6320, 57.2841, 16.1729)
Luminance0.5728 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D7CA51 #515ED7
analogous
#D78751 #D7CA51 #A1D751
triadic
#D7CA51 #51D7CA #CA51D7
tetradic
#D7CA51 #51D787 #515ED7 #D751A1
square
#D7CA51 #51D787 #515ED7 #D751A1
split-complementary
#D7CA51 #51A1D7 #8751D7
monochromatic
#8D8320 #BFB12C #D7CA51 #E2D983 #EEE8B5

Accessibility & contrast

On white

1.69
#D7CA51 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

12.46
#D7CA51 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D7CA51
12.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D7CA51#FFFFFF#000000##000000
##D7CA511.001.6912.4612.46
#FFFFFF1.691.0021.0021.00
#00000012.4621.001.001.00
##00000012.4621.001.001.00

Color blindness preview

Protanopia (red-blind)
#DBC443
Deuteranopia (green-blind)
#DFCA58
Tritanopia (blue-blind)
#E6BDB0
Achromatopsia (no color)
#C7C7C7

Design tokens & code

CSS
--color: #d7ca51;
/* rgb */ color: rgb(215, 202, 81);
/* oklch */ color: oklch(82.7% 0.141 103.2);
Tailwind
colors: {
  custom: {
    50: '#e6d987',
    500: '#d7ca51',
    950: '#000000',
  },
}
SCSS
$custom: #d7ca51;
$custom-light: #e6d987;
$custom-dark: #000000;
JSON
{
  "hex": "#d7ca51",
  "rgb": {
    "r": 215,
    "g": 202,
    "b": 81
  },
  "hsl": {
    "h": 54.179,
    "s": 62.617,
    "l": 58.039
  },
  "oklch": {
    "l": 0.8271,
    "c": 0.14088,
    "h": 103.2
  },
  "luminance": 0.57282
}

Semantic roles & 50–950 ramp

primary
#D7CA51
secondary
#394293
accent
#52E642
background
#FFFEFC
surface
#FEFBF3
border
#D6D4CD
text
#16140C
muted
#85837F

Preview Lab

Preview with #D7CA51

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

Preview Lab → · Contrast checker → · Palette generator →

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