#D4B240#D4B240

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

Color values

HEX#D4B240
RGBrgb(212, 178, 64)
HSLhsl(46, 63%, 54%)
HSVhsv(46, 70%, 83%)
CMYKcmyk(0%, 16%, 69.8%, 16.9%)
CIE-LABlab(73.68, 0.23, 60.22)
CIE-LCHlch(73.68, 60.22, 89.78°)
OKLaboklab(77.33% -0.0048 0.1346)
OKLCHoklch(77.33% 0.135 92.1)
XYZxyz(43.9995, 46.2105, 11.4515)
Luminance0.4621 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D4B240 #4062D4
analogous
#D46840 #D4B240 #ACD440
triadic
#D4B240 #40D4B2 #B240D4
tetradic
#D4B240 #40D468 #4062D4 #D440AC
square
#D4B240 #40D468 #4062D4 #D440AC
split-complementary
#D4B240 #40ACD4 #6840D4
monochromatic
#7D671C #AF9027 #D4B240 #DFC672 #EADAA4

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##D4B240#FFFFFF#000000##000000
##D4B2401.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)
#C5AF30
Deuteranopia (green-blind)
#CDB946
Tritanopia (blue-blind)
#E5A49B
Achromatopsia (no color)
#B5B5B5

Design tokens & code

CSS
--color: #d4b240;
/* rgb */ color: rgb(212, 178, 64);
/* oklch */ color: oklch(77.3% 0.135 92.1);
Tailwind
colors: {
  custom: {
    50: '#e5c87b',
    500: '#d4b240',
    950: '#000000',
  },
}
SCSS
$custom: #d4b240;
$custom-light: #e5c87b;
$custom-dark: #000000;
JSON
{
  "hex": "#d4b240",
  "rgb": {
    "r": 212,
    "g": 178,
    "b": 64
  },
  "hsl": {
    "h": 46.216,
    "s": 63.248,
    "l": 54.118
  },
  "oklch": {
    "l": 0.77329,
    "c": 0.13471,
    "h": 92.1
  },
  "luminance": 0.46208
}

Semantic roles & 50–950 ramp

primary
#D4B240
secondary
#98A7D7
accent
#67E642
background
#FEFCF7
surface
#FDF8EE
border
#D5D1C9
text
#16130A
muted
#84827C

Preview Lab

Preview with #D4B240

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

Preview Lab → · Contrast checker → · Palette generator →

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