#D4B740#D4B740

#D4B740 is a light, vivid yellow. Relative luminance 0.482; OKLCH L 78.3% C 0.138 H 95.1°. Best body text is #000000 at 10.65:1 contrast (WCAG AA passes).

Color values

HEX#D4B740
RGBrgb(212, 183, 64)
HSLhsl(48, 63%, 54%)
HSVhsv(48, 70%, 83%)
CMYKcmyk(0%, 13.7%, 69.8%, 16.9%)
CIE-LABlab(74.97, -2.40, 61.53)
CIE-LCHlch(74.97, 61.57, 92.23°)
OKLaboklab(78.35% -0.0124 0.1374)
OKLCHoklch(78.35% 0.138 95.1)
XYZxyz(45.0125, 48.2366, 11.7892)
Luminance0.4823 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D4B740 #405DD4
analogous
#D46D40 #D4B740 #A7D440
triadic
#D4B740 #40D4B7 #B740D4
tetradic
#D4B740 #40D46D #405DD4 #D440A7
square
#D4B740 #40D46D #405DD4 #D440A7
split-complementary
#D4B740 #40A7D4 #6D40D4
monochromatic
#7D6A1C #AF9527 #D4B740 #DFCA72 #EADDA4

Accessibility & contrast

On white

1.97
#D4B740 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

10.65
#D4B740 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D4B740
10.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D4B740#FFFFFF#000000##000000
##D4B7401.001.9710.6510.65
#FFFFFF1.971.0021.0021.00
#00000010.6521.001.001.00
##00000010.6521.001.001.00

Color blindness preview

Protanopia (red-blind)
#CAB32F
Deuteranopia (green-blind)
#D1BC47
Tritanopia (blue-blind)
#E5A99F
Achromatopsia (no color)
#B9B9B9

Design tokens & code

CSS
--color: #d4b740;
/* rgb */ color: rgb(212, 183, 64);
/* oklch */ color: oklch(78.3% 0.138 95.1);
Tailwind
colors: {
  custom: {
    50: '#e5cc7c',
    500: '#d4b740',
    950: '#000000',
  },
}
SCSS
$custom: #d4b740;
$custom-light: #e5cc7c;
$custom-dark: #000000;
JSON
{
  "hex": "#d4b740",
  "rgb": {
    "r": 212,
    "g": 183,
    "b": 64
  },
  "hsl": {
    "h": 48.243,
    "s": 63.248,
    "l": 54.118
  },
  "oklch": {
    "l": 0.7835,
    "c": 0.13795,
    "h": 95.1
  },
  "luminance": 0.48234
}

Semantic roles & 50–950 ramp

primary
#D4B740
secondary
#98A5D7
accent
#62E642
background
#FEFCF7
surface
#FDF8EE
border
#D5D1C9
text
#16130A
muted
#84827C

Preview Lab

Preview with #D4B740

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

Preview Lab → · Contrast checker → · Palette generator →

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