#D4CF51#D4CF51

#D4CF51 is a very light, vivid yellow. Relative luminance 0.592; OKLCH L 83.5% C 0.146 H 107.0°. Best body text is #000000 at 12.84:1 contrast (WCAG AA passes).

Color values

HEX#D4CF51
RGBrgb(212, 207, 81)
HSLhsl(58, 60%, 57%)
HSVhsv(58, 62%, 83%)
CMYKcmyk(0%, 2.4%, 61.8%, 16.9%)
CIE-LABlab(81.41, -13.71, 61.26)
CIE-LCHlch(81.41, 62.77, 102.61°)
OKLaboklab(83.5% -0.0427 0.1395)
OKLCHoklch(83.5% 0.146 107)
XYZxyz(50.9511, 59.2184, 16.5294)
Luminance0.5922 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D4CF51 #5156D4
analogous
#D48E51 #D4CF51 #97D451
triadic
#D4CF51 #51D4CF #CF51D4
tetradic
#D4CF51 #51D48E #5156D4 #D45197
square
#D4CF51 #51D48E #5156D4 #D45197
split-complementary
#D4CF51 #5197D4 #8E51D4
monochromatic
#898522 #BAB52E #D4CF51 #E0DD82 #ECEAB3

Accessibility & contrast

On white

1.64
#D4CF51 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

12.84
#D4CF51 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D4CF51
12.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D4CF51#FFFFFF#000000##000000
##D4CF511.001.6412.8412.84
#FFFFFF1.641.0021.0021.00
#00000012.8421.001.001.00
##00000012.8421.001.001.00

Color blindness preview

Protanopia (red-blind)
#DFC742
Deuteranopia (green-blind)
#E2CD58
Tritanopia (blue-blind)
#E2C2B5
Achromatopsia (no color)
#CACACA

Design tokens & code

CSS
--color: #d4cf51;
/* rgb */ color: rgb(212, 207, 81);
/* oklch */ color: oklch(83.5% 0.146 107.0);
Tailwind
colors: {
  custom: {
    50: '#e4dd87',
    500: '#d4cf51',
    950: '#000000',
  },
}
SCSS
$custom: #d4cf51;
$custom-light: #e4dd87;
$custom-dark: #000000;
JSON
{
  "hex": "#d4cf51",
  "rgb": {
    "r": 212,
    "g": 207,
    "b": 81
  },
  "hsl": {
    "h": 57.71,
    "s": 60.369,
    "l": 57.451
  },
  "oklch": {
    "l": 0.83503,
    "c": 0.1459,
    "h": 107
  },
  "luminance": 0.59217
}

Semantic roles & 50–950 ramp

primary
#D4CF51
secondary
#3A3D8F
accent
#4AE444
background
#FEFEFC
surface
#FDFCF4
border
#D5D5CE
text
#16150C
muted
#84847F

Preview Lab

Preview with #D4CF51

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

Preview Lab → · Contrast checker → · Palette generator →

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