#D4C25F#D4C25F

#D4C25F is a light, vivid yellow. Relative luminance 0.534; OKLCH L 80.9% C 0.122 H 99.2°. Best body text is #000000 at 11.68:1 contrast (WCAG AA passes).

Color values

HEX#D4C25F
RGBrgb(212, 194, 95)
HSLhsl(51, 58%, 60%)
HSVhsv(51, 55%, 83%)
CMYKcmyk(0%, 8.5%, 55.2%, 16.9%)
CIE-LABlab(78.12, -6.09, 51.34)
CIE-LCHlch(78.12, 51.70, 96.77°)
OKLaboklab(80.93% -0.0194 0.1201)
OKLCHoklch(80.93% 0.122 99.2)
XYZxyz(48.5104, 53.4088, 18.5779)
Luminance0.5341 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D4C25F #5F71D4
analogous
#D4875F #D4C25F #ACD45F
triadic
#D4C25F #5FD4C2 #C25FD4
tetradic
#D4C25F #5FD487 #5F71D4 #D45FAC
square
#D4C25F #5FD487 #5F71D4 #D45FAC
split-complementary
#D4C25F #5FACD4 #875FD4
monochromatic
#918127 #C2AC34 #D4C25F #E1D48F #EEE7BF

Accessibility & contrast

On white

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

On black

11.68
#D4C25F on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D4C25F
11.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D4C25F#FFFFFF#000000##000000
##D4C25F1.001.8011.6811.68
#FFFFFF1.801.0021.0021.00
#00000011.6821.001.001.00
##00000011.6821.001.001.00

Color blindness preview

Protanopia (red-blind)
#D2BD55
Deuteranopia (green-blind)
#D7C464
Tritanopia (blue-blind)
#E3B6AC
Achromatopsia (no color)
#C1C1C1

Design tokens & code

CSS
--color: #d4c25f;
/* rgb */ color: rgb(212, 194, 95);
/* oklch */ color: oklch(80.9% 0.122 99.2);
Tailwind
colors: {
  custom: {
    50: '#e4d48f',
    500: '#d4c25f',
    950: '#000000',
  },
}
SCSS
$custom: #d4c25f;
$custom-light: #e4d48f;
$custom-dark: #000000;
JSON
{
  "hex": "#d4c25f",
  "rgb": {
    "r": 212,
    "g": 194,
    "b": 95
  },
  "hsl": {
    "h": 50.769,
    "s": 57.635,
    "l": 60.196
  },
  "oklch": {
    "l": 0.80926,
    "c": 0.12162,
    "h": 99.2
  },
  "luminance": 0.53407
}

Semantic roles & 50–950 ramp

primary
#D4C25F
secondary
#404E97
accent
#3AC520
background
#FEFEFC
surface
#FDFBF4
border
#D5D4CE
text
#16140D
muted
#84837F

Preview Lab

Preview with #D4C25F

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

Preview Lab → · Contrast checker → · Palette generator →

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