#D4B241#D4B241

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

Color values

HEX#D4B241
RGBrgb(212, 178, 65)
HSLhsl(46, 63%, 54%)
HSVhsv(46, 69%, 83%)
CMYKcmyk(0%, 16%, 69.3%, 16.9%)
CIE-LABlab(73.69, 0.28, 59.82)
CIE-LCHlch(73.69, 59.82, 89.73°)
OKLaboklab(77.34% -0.0046 0.134)
OKLCHoklch(77.34% 0.134 92)
XYZxyz(44.0282, 46.2220, 11.6027)
Luminance0.4622 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D4B241 #4163D4
analogous
#D46841 #D4B241 #ADD441
triadic
#D4B241 #41D4B2 #B241D4
tetradic
#D4B241 #41D468 #4163D4 #D441AD
square
#D4B241 #41D468 #4163D4 #D441AD
split-complementary
#D4B241 #41ADD4 #6841D4
monochromatic
#7E681D #B09028 #D4B241 #DFC673 #EBDAA5

Accessibility & contrast

On white

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

On black

10.24
#D4B241 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D4B241
10.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D4B241#FFFFFF#000000##000000
##D4B2411.002.0510.2410.24
#FFFFFF2.051.0021.0021.00
#00000010.2421.001.001.00
##00000010.2421.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #d4b241;
/* rgb */ color: rgb(212, 178, 65);
/* oklch */ color: oklch(77.3% 0.134 92.0);
Tailwind
colors: {
  custom: {
    50: '#e5c87c',
    500: '#d4b241',
    950: '#000000',
  },
}
SCSS
$custom: #d4b241;
$custom-light: #e5c87c;
$custom-dark: #000000;
JSON
{
  "hex": "#d4b241",
  "rgb": {
    "r": 212,
    "g": 178,
    "b": 65
  },
  "hsl": {
    "h": 46.122,
    "s": 63.09,
    "l": 54.314
  },
  "oklch": {
    "l": 0.77338,
    "c": 0.13403,
    "h": 92
  },
  "luminance": 0.46219
}

Semantic roles & 50–950 ramp

primary
#D4B241
secondary
#99A8D8
accent
#68E642
background
#FEFCF7
surface
#FDF8EE
border
#D5D1C9
text
#16130A
muted
#84827C

Preview Lab

Preview with #D4B241

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

Preview Lab → · Contrast checker → · Palette generator →

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