#D4C757#D4C757

#D4C757 is a light, vivid yellow. Relative luminance 0.555; OKLCH L 81.9% C 0.133 H 102.7°. Best body text is #000000 at 12.11:1 contrast (WCAG AA passes).

Color values

HEX#D4C757
RGBrgb(212, 199, 87)
HSLhsl(54, 59%, 59%)
HSVhsv(54, 59%, 83%)
CMYKcmyk(0%, 6.1%, 59%, 16.9%)
CIE-LABlab(79.35, -9.26, 56.41)
CIE-LCHlch(79.35, 57.16, 99.32°)
OKLaboklab(81.88% -0.0293 0.13)
OKLCHoklch(81.88% 0.133 102.7)
XYZxyz(49.2969, 55.5338, 17.1374)
Luminance0.5553 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D4C757 #5764D4
analogous
#D48857 #D4C757 #A2D457
triadic
#D4C757 #57D4C7 #C757D4
tetradic
#D4C757 #57D488 #5764D4 #D457A2
square
#D4C757 #57D488 #5764D4 #D457A2
split-complementary
#D4C757 #57A2D4 #8857D4
monochromatic
#8D8224 #BDAF30 #D4C757 #E0D788 #EDE7B8

Accessibility & contrast

On white

1.73
#D4C757 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

12.11
#D4C757 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D4C757
12.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D4C757#FFFFFF#000000##000000
##D4C7571.001.7312.1112.11
#FFFFFF1.731.0021.0021.00
#00000012.1121.001.001.00
##00000012.1121.001.001.00

Color blindness preview

Protanopia (red-blind)
#D7C14B
Deuteranopia (green-blind)
#DBC75D
Tritanopia (blue-blind)
#E3BBAF
Achromatopsia (no color)
#C5C5C5

Design tokens & code

CSS
--color: #d4c757;
/* rgb */ color: rgb(212, 199, 87);
/* oklch */ color: oklch(81.9% 0.133 102.7);
Tailwind
colors: {
  custom: {
    50: '#e4d78a',
    500: '#d4c757',
    950: '#000000',
  },
}
SCSS
$custom: #d4c757;
$custom-light: #e4d78a;
$custom-dark: #000000;
JSON
{
  "hex": "#d4c757",
  "rgb": {
    "r": 212,
    "g": 199,
    "b": 87
  },
  "hsl": {
    "h": 53.76,
    "s": 59.242,
    "l": 58.627
  },
  "oklch": {
    "l": 0.81878,
    "c": 0.13329,
    "h": 102.7
  },
  "luminance": 0.55532
}

Semantic roles & 50–950 ramp

primary
#D4C757
secondary
#3D4693
accent
#56E245
background
#FEFEFC
surface
#FDFBF4
border
#D5D4CE
text
#16140C
muted
#84837F

Preview Lab

Preview with #D4C757

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

Preview Lab → · Contrast checker → · Palette generator →

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