#D4C338#D4C338

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

Color values

HEX#D4C338
RGBrgb(212, 195, 56)
HSLhsl(53, 64%, 53%)
HSVhsv(53, 74%, 83%)
CMYKcmyk(0%, 8%, 73.6%, 16.9%)
CIE-LABlab(78.06, -8.98, 67.54)
CIE-LCHlch(78.06, 68.13, 97.57°)
OKLaboklab(80.78% -0.0319 0.1487)
OKLCHoklch(80.78% 0.152 102.1)
XYZxyz(47.3825, 53.3149, 11.5356)
Luminance0.5331 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D4C338 #3849D4
analogous
#D47538 #D4C338 #97D438
triadic
#D4C338 #38D4C3 #C338D4
tetradic
#D4C338 #38D475 #3849D4 #D43897
square
#D4C338 #38D475 #3849D4 #D43897
split-complementary
#D4C338 #3897D4 #7538D4
monochromatic
#786E1A #AA9C25 #D4C338 #DFD26A #EAE19D

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##D4C338#FFFFFF#000000##000000
##D4C3381.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)
#D5BD1E
Deuteranopia (green-blind)
#DAC442
Tritanopia (blue-blind)
#E4B5A8
Achromatopsia (no color)
#C1C1C1

Design tokens & code

CSS
--color: #d4c338;
/* rgb */ color: rgb(212, 195, 56);
/* oklch */ color: oklch(80.8% 0.152 102.1);
Tailwind
colors: {
  custom: {
    50: '#e5d478',
    500: '#d4c338',
    950: '#000000',
  },
}
SCSS
$custom: #d4c338;
$custom-light: #e5d478;
$custom-dark: #000000;
JSON
{
  "hex": "#d4c338",
  "rgb": {
    "r": 212,
    "g": 195,
    "b": 56
  },
  "hsl": {
    "h": 53.462,
    "s": 64.463,
    "l": 52.549
  },
  "oklch": {
    "l": 0.80781,
    "c": 0.15204,
    "h": 102.1
  },
  "luminance": 0.53313
}

Semantic roles & 50–950 ramp

primary
#D4C338
secondary
#303980
accent
#53E740
background
#FFFEFB
surface
#FEFBF1
border
#D6D4CB
text
#16140A
muted
#85837D

Preview Lab

Preview with #D4C338

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

Preview Lab → · Contrast checker → · Palette generator →

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