#D4B242#D4B242

#D4B242 is a light, vivid yellow. Relative luminance 0.462; OKLCH L 77.3% C 0.133 H 91.9°. Best body text is #000000 at 10.25:1 contrast (WCAG AA passes).

Color values

HEX#D4B242
RGBrgb(212, 178, 66)
HSLhsl(46, 63%, 55%)
HSVhsv(46, 69%, 83%)
CMYKcmyk(0%, 16%, 68.9%, 16.9%)
CIE-LABlab(73.70, 0.33, 59.41)
CIE-LCHlch(73.70, 59.41, 89.68°)
OKLaboklab(77.35% -0.0043 0.1333)
OKLCHoklch(77.35% 0.133 91.9)
XYZxyz(44.0574, 46.2337, 11.7566)
Luminance0.4623 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D4B242 #4264D4
analogous
#D46942 #D4B242 #ADD442
triadic
#D4B242 #42D4B2 #B242D4
tetradic
#D4B242 #42D469 #4264D4 #D442AD
square
#D4B242 #42D469 #4264D4 #D442AD
split-complementary
#D4B242 #42ADD4 #6942D4
monochromatic
#7F681D #B19128 #D4B242 #DFC674 #EBDBA6

Accessibility & contrast

On white

2.05
#D4B242 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

10.25
#D4B242 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D4B242
10.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D4B242#FFFFFF#000000##000000
##D4B2421.002.0510.2510.25
#FFFFFF2.051.0021.0021.00
#00000010.2521.001.001.00
##00000010.2521.001.001.00

Color blindness preview

Protanopia (red-blind)
#C5AF33
Deuteranopia (green-blind)
#CDB948
Tritanopia (blue-blind)
#E5A49B
Achromatopsia (no color)
#B5B5B5

Design tokens & code

CSS
--color: #d4b242;
/* rgb */ color: rgb(212, 178, 66);
/* oklch */ color: oklch(77.3% 0.133 91.9);
Tailwind
colors: {
  custom: {
    50: '#e5c87c',
    500: '#d4b242',
    950: '#000000',
  },
}
SCSS
$custom: #d4b242;
$custom-light: #e5c87c;
$custom-dark: #000000;
JSON
{
  "hex": "#d4b242",
  "rgb": {
    "r": 212,
    "g": 178,
    "b": 66
  },
  "hsl": {
    "h": 46.027,
    "s": 62.931,
    "l": 54.51
  },
  "oklch": {
    "l": 0.77346,
    "c": 0.13334,
    "h": 91.9
  },
  "luminance": 0.46231
}

Semantic roles & 50–950 ramp

primary
#D4B242
secondary
#9AA8D8
accent
#68E642
background
#FEFCF7
surface
#FDF8EE
border
#D5D1C9
text
#16130A
muted
#84827C

Preview Lab

Preview with #D4B242

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

Preview Lab → · Contrast checker → · Palette generator →

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