#D4C238#D4C238

#D4C238 is a light, vivid yellow. Relative luminance 0.529; OKLCH L 80.6% C 0.151 H 101.6°. Best body text is #000000 at 11.57:1 contrast (WCAG AA passes).

Color values

HEX#D4C238
RGBrgb(212, 194, 56)
HSLhsl(53, 64%, 53%)
HSVhsv(53, 74%, 83%)
CMYKcmyk(0%, 8.5%, 73.6%, 16.9%)
CIE-LABlab(77.80, -8.46, 67.29)
CIE-LCHlch(77.80, 67.82, 97.17°)
OKLaboklab(80.57% -0.0304 0.1481)
OKLCHoklch(80.57% 0.151 101.6)
XYZxyz(47.1592, 52.8683, 11.4612)
Luminance0.5287 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D4C238 #384AD4
analogous
#D47438 #D4C238 #98D438
triadic
#D4C238 #38D4C2 #C238D4
tetradic
#D4C238 #38D474 #384AD4 #D43898
square
#D4C238 #38D474 #384AD4 #D43898
split-complementary
#D4C238 #3898D4 #7438D4
monochromatic
#786D1A #AA9B25 #D4C238 #DFD16A #EAE19D

Accessibility & contrast

On white

1.81
#D4C238 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

11.57
#D4C238 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D4C238
11.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D4C238#FFFFFF#000000##000000
##D4C2381.001.8111.5711.57
#FFFFFF1.811.0021.0021.00
#00000011.5721.001.001.00
##00000011.5721.001.001.00

Color blindness preview

Protanopia (red-blind)
#D4BC1E
Deuteranopia (green-blind)
#D9C442
Tritanopia (blue-blind)
#E4B4A7
Achromatopsia (no color)
#C0C0C0

Design tokens & code

CSS
--color: #d4c238;
/* rgb */ color: rgb(212, 194, 56);
/* oklch */ color: oklch(80.6% 0.151 101.6);
Tailwind
colors: {
  custom: {
    50: '#e5d478',
    500: '#d4c238',
    950: '#000000',
  },
}
SCSS
$custom: #d4c238;
$custom-light: #e5d478;
$custom-dark: #000000;
JSON
{
  "hex": "#d4c238",
  "rgb": {
    "r": 212,
    "g": 194,
    "b": 56
  },
  "hsl": {
    "h": 53.077,
    "s": 64.463,
    "l": 52.549
  },
  "oklch": {
    "l": 0.80571,
    "c": 0.15123,
    "h": 101.6
  },
  "luminance": 0.52866
}

Semantic roles & 50–950 ramp

primary
#D4C238
secondary
#303A80
accent
#54E740
background
#FFFEFB
surface
#FEFBF1
border
#D6D4CB
text
#16140A
muted
#85837D

Preview Lab

Preview with #D4C238

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

Preview Lab → · Contrast checker → · Palette generator →

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