#D4C258#D4C258

#D4C258 is a light, vivid yellow. Relative luminance 0.533; OKLCH L 80.8% C 0.128 H 99.8°. Best body text is #000000 at 11.66:1 contrast (WCAG AA passes).

Color values

HEX#D4C258
RGBrgb(212, 194, 88)
HSLhsl(51, 59%, 59%)
HSVhsv(51, 58%, 83%)
CMYKcmyk(0%, 8.5%, 58.5%, 16.9%)
CIE-LABlab(78.04, -6.62, 54.50)
CIE-LCHlch(78.04, 54.90, 96.93°)
OKLaboklab(80.85% -0.0217 0.1261)
OKLCHoklch(80.85% 0.128 99.8)
XYZxyz(48.2064, 53.2872, 16.9768)
Luminance0.5329 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D4C258 #586AD4
analogous
#D48458 #D4C258 #A8D458
triadic
#D4C258 #58D4C2 #C258D4
tetradic
#D4C258 #58D484 #586AD4 #D458A8
square
#D4C258 #58D484 #586AD4 #D458A8
split-complementary
#D4C258 #58A8D4 #8458D4
monochromatic
#8D7E24 #BEA931 #D4C258 #E1D489 #EDE6B9

Accessibility & contrast

On white

1.80
#D4C258 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

11.66
#D4C258 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D4C258
11.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D4C258#FFFFFF#000000##000000
##D4C2581.001.8011.6611.66
#FFFFFF1.801.0021.0021.00
#00000011.6621.001.001.00
##00000011.6621.001.001.00

Color blindness preview

Protanopia (red-blind)
#D3BD4D
Deuteranopia (green-blind)
#D8C45D
Tritanopia (blue-blind)
#E3B6AB
Achromatopsia (no color)
#C1C1C1

Design tokens & code

CSS
--color: #d4c258;
/* rgb */ color: rgb(212, 194, 88);
/* oklch */ color: oklch(80.8% 0.128 99.8);
Tailwind
colors: {
  custom: {
    50: '#e4d48b',
    500: '#d4c258',
    950: '#000000',
  },
}
SCSS
$custom: #d4c258;
$custom-light: #e4d48b;
$custom-dark: #000000;
JSON
{
  "hex": "#d4c258",
  "rgb": {
    "r": 212,
    "g": 194,
    "b": 88
  },
  "hsl": {
    "h": 51.29,
    "s": 59.048,
    "l": 58.824
  },
  "oklch": {
    "l": 0.80847,
    "c": 0.12791,
    "h": 99.8
  },
  "luminance": 0.53285
}

Semantic roles & 50–950 ramp

primary
#D4C258
secondary
#3D4A93
accent
#5CE246
background
#FEFEFC
surface
#FDFBF4
border
#D5D4CE
text
#16140C
muted
#84837F

Preview Lab

Preview with #D4C258

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

Preview Lab → · Contrast checker → · Palette generator →

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