#D2B840#D2B840

#D2B840 is a light, vivid yellow. Relative luminance 0.484; OKLCH L 78.4% C 0.138 H 96.7°. Best body text is #000000 at 10.67:1 contrast (WCAG AA passes).

Color values

HEX#D2B840
RGBrgb(210, 184, 64)
HSLhsl(49, 62%, 54%)
HSVhsv(49, 70%, 82%)
CMYKcmyk(0%, 12.4%, 69.5%, 17.6%)
CIE-LABlab(75.05, -3.78, 61.54)
CIE-LCHlch(75.05, 61.66, 93.51°)
OKLaboklab(78.37% -0.0162 0.1375)
OKLCHoklch(78.37% 0.138 96.7)
XYZxyz(44.6464, 48.3551, 11.8313)
Luminance0.4835 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D2B840 #405AD2
analogous
#D26F40 #D2B840 #A3D240
triadic
#D2B840 #40D2B8 #B840D2
tetradic
#D2B840 #40D26F #405AD2 #D240A3
square
#D2B840 #40D26F #405AD2 #D240A3
split-complementary
#D2B840 #40A3D2 #6F40D2
monochromatic
#7B6A1D #AC9529 #D2B840 #DECA72 #E9DDA3

Accessibility & contrast

On white

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

On black

10.67
#D2B840 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D2B840
10.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D2B840#FFFFFF#000000##000000
##D2B8401.001.9710.6710.67
#FFFFFF1.971.0021.0021.00
#00000010.6721.001.001.00
##00000010.6721.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #d2b840;
/* rgb */ color: rgb(210, 184, 64);
/* oklch */ color: oklch(78.4% 0.138 96.7);
Tailwind
colors: {
  custom: {
    50: '#e4cd7c',
    500: '#d2b840',
    950: '#000000',
  },
}
SCSS
$custom: #d2b840;
$custom-light: #e4cd7c;
$custom-dark: #000000;
JSON
{
  "hex": "#d2b840",
  "rgb": {
    "r": 210,
    "g": 184,
    "b": 64
  },
  "hsl": {
    "h": 49.315,
    "s": 61.864,
    "l": 53.725
  },
  "oklch": {
    "l": 0.78366,
    "c": 0.13844,
    "h": 96.7
  },
  "luminance": 0.48353
}

Semantic roles & 50–950 ramp

primary
#D2B840
secondary
#98A3D6
accent
#60E543
background
#FEFCF7
surface
#FDF8EE
border
#D5D1C9
text
#16130A
muted
#84827C

Preview Lab

Preview with #D2B840

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

Preview Lab → · Contrast checker → · Palette generator →

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