#D0B940#D0B940

#D0B940 is a light, vivid yellow. Relative luminance 0.485; OKLCH L 78.4% C 0.139 H 98.3°. Best body text is #000000 at 10.70:1 contrast (WCAG AA passes).

Color values

HEX#D0B940
RGBrgb(208, 185, 64)
HSLhsl(50, 61%, 53%)
HSVhsv(50, 69%, 82%)
CMYKcmyk(0%, 11.1%, 69.2%, 18.4%)
CIE-LABlab(75.13, -5.15, 61.56)
CIE-LCHlch(75.13, 61.78, 94.79°)
OKLaboklab(78.39% -0.02 0.1376)
OKLCHoklch(78.39% 0.139 98.3)
XYZxyz(44.2889, 48.4801, 11.8743)
Luminance0.4848 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D0B940 #4057D0
analogous
#D07140 #D0B940 #9FD040
triadic
#D0B940 #40D0B9 #B940D0
tetradic
#D0B940 #40D071 #4057D0 #D0409F
square
#D0B940 #40D071 #4057D0 #D0409F
split-complementary
#D0B940 #409FD0 #7140D0
monochromatic
#786A1E #A9952A #D0B940 #DCCB71 #E8DDA2

Accessibility & contrast

On white

1.96
#D0B940 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

10.70
#D0B940 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D0B940
10.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D0B940#FFFFFF#000000##000000
##D0B9401.001.9610.7010.70
#FFFFFF1.961.0021.0021.00
#00000010.7021.001.001.00
##00000010.7021.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #d0b940;
/* rgb */ color: rgb(208, 185, 64);
/* oklch */ color: oklch(78.4% 0.139 98.3);
Tailwind
colors: {
  custom: {
    50: '#e2cd7c',
    500: '#d0b940',
    950: '#000000',
  },
}
SCSS
$custom: #d0b940;
$custom-light: #e2cd7c;
$custom-dark: #000000;
JSON
{
  "hex": "#d0b940",
  "rgb": {
    "r": 208,
    "g": 185,
    "b": 64
  },
  "hsl": {
    "h": 50.417,
    "s": 60.504,
    "l": 53.333
  },
  "oklch": {
    "l": 0.78385,
    "c": 0.13905,
    "h": 98.3
  },
  "luminance": 0.48478
}

Semantic roles & 50–950 ramp

primary
#D0B940
secondary
#97A1D5
accent
#5EE444
background
#FEFCF7
surface
#FDF8EE
border
#D5D1C9
text
#16130A
muted
#84827C

Preview Lab

Preview with #D0B940

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

Preview Lab → · Contrast checker → · Palette generator →

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