#D4C438#D4C438

#D4C438 is a light, vivid yellow. Relative luminance 0.538; OKLCH L 81.0% C 0.153 H 102.6°. Best body text is #000000 at 11.75:1 contrast (WCAG AA passes).

Color values

HEX#D4C438
RGBrgb(212, 196, 56)
HSLhsl(54, 64%, 53%)
HSVhsv(54, 74%, 83%)
CMYKcmyk(0%, 7.5%, 73.6%, 16.9%)
CIE-LABlab(78.32, -9.49, 67.79)
CIE-LCHlch(78.32, 68.45, 97.97°)
OKLaboklab(80.99% -0.0333 0.1492)
OKLCHoklch(80.99% 0.153 102.6)
XYZxyz(47.6073, 53.7645, 11.6105)
Luminance0.5376 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D4C438 #3848D4
analogous
#D47638 #D4C438 #96D438
triadic
#D4C438 #38D4C4 #C438D4
tetradic
#D4C438 #38D476 #3848D4 #D43896
square
#D4C438 #38D476 #3848D4 #D43896
split-complementary
#D4C438 #3896D4 #7638D4
monochromatic
#786E1A #AA9C25 #D4C438 #DFD36A #EAE29D

Accessibility & contrast

On white

1.79
#D4C438 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

11.75
#D4C438 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D4C438
11.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D4C438#FFFFFF#000000##000000
##D4C4381.001.7911.7511.75
#FFFFFF1.791.0021.0021.00
#00000011.7521.001.001.00
##00000011.7521.001.001.00

Color blindness preview

Protanopia (red-blind)
#D6BE1D
Deuteranopia (green-blind)
#DBC542
Tritanopia (blue-blind)
#E4B6A9
Achromatopsia (no color)
#C2C2C2

Design tokens & code

CSS
--color: #d4c438;
/* rgb */ color: rgb(212, 196, 56);
/* oklch */ color: oklch(81.0% 0.153 102.6);
Tailwind
colors: {
  custom: {
    50: '#e5d579',
    500: '#d4c438',
    950: '#000000',
  },
}
SCSS
$custom: #d4c438;
$custom-light: #e5d579;
$custom-dark: #000000;
JSON
{
  "hex": "#d4c438",
  "rgb": {
    "r": 212,
    "g": 196,
    "b": 56
  },
  "hsl": {
    "h": 53.846,
    "s": 64.463,
    "l": 52.549
  },
  "oklch": {
    "l": 0.8099,
    "c": 0.15287,
    "h": 102.6
  },
  "luminance": 0.53762
}

Semantic roles & 50–950 ramp

primary
#D4C438
secondary
#303980
accent
#51E740
background
#FFFEFB
surface
#FEFBF2
border
#D6D4CC
text
#16140A
muted
#85837D

Preview Lab

Preview with #D4C438

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

Preview Lab → · Contrast checker → · Palette generator →

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