#D1B240#D1B240

#D1B240 is a light, vivid yellow. Relative luminance 0.458; OKLCH L 77.0% C 0.134 H 93.6°. Best body text is #000000 at 10.15:1 contrast (WCAG AA passes).

Color values

HEX#D1B240
RGBrgb(209, 178, 64)
HSLhsl(47, 61%, 54%)
HSVhsv(47, 69%, 82%)
CMYKcmyk(0%, 14.8%, 69.4%, 18%)
CIE-LABlab(73.40, -1.06, 59.83)
CIE-LCHlch(73.40, 59.84, 91.02°)
OKLaboklab(77.04% -0.0084 0.1339)
OKLCHoklch(77.04% 0.134 93.6)
XYZxyz(43.1425, 45.7687, 11.4113)
Luminance0.4577 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D1B240 #405FD1
analogous
#D16940 #D1B240 #A8D140
triadic
#D1B240 #40D1B2 #B240D1
tetradic
#D1B240 #40D169 #405FD1 #D140A8
square
#D1B240 #40D169 #405FD1 #D140A8
split-complementary
#D1B240 #40A8D1 #6940D1
monochromatic
#79661D #AB8F29 #D1B240 #DDC671 #E9DAA3

Accessibility & contrast

On white

2.07
#D1B240 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

10.15
#D1B240 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D1B240
10.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D1B240#FFFFFF#000000##000000
##D1B2401.002.0710.1510.15
#FFFFFF2.071.0021.0021.00
#00000010.1521.001.001.00
##00000010.1521.001.001.00

Color blindness preview

Protanopia (red-blind)
#C5AF30
Deuteranopia (green-blind)
#CCB846
Tritanopia (blue-blind)
#E2A49B
Achromatopsia (no color)
#B4B4B4

Design tokens & code

CSS
--color: #d1b240;
/* rgb */ color: rgb(209, 178, 64);
/* oklch */ color: oklch(77.0% 0.134 93.6);
Tailwind
colors: {
  custom: {
    50: '#e3c87b',
    500: '#d1b240',
    950: '#000000',
  },
}
SCSS
$custom: #d1b240;
$custom-light: #e3c87b;
$custom-dark: #000000;
JSON
{
  "hex": "#d1b240",
  "rgb": {
    "r": 209,
    "g": 178,
    "b": 64
  },
  "hsl": {
    "h": 47.172,
    "s": 61.181,
    "l": 53.529
  },
  "oklch": {
    "l": 0.77036,
    "c": 0.13418,
    "h": 93.6
  },
  "luminance": 0.45766
}

Semantic roles & 50–950 ramp

primary
#D1B240
secondary
#97A5D5
accent
#66E444
background
#FEFCF7
surface
#FDF8EE
border
#D5D1C9
text
#16130A
muted
#84827C

Preview Lab

Preview with #D1B240

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

Preview Lab → · Contrast checker → · Palette generator →

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