#D2B340#D2B340

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

Color values

HEX#D2B340
RGBrgb(210, 179, 64)
HSLhsl(47, 62%, 54%)
HSVhsv(47, 70%, 82%)
CMYKcmyk(0%, 14.8%, 69.5%, 17.6%)
CIE-LABlab(73.75, -1.16, 60.23)
CIE-LCHlch(73.75, 60.24, 91.10°)
OKLaboklab(77.34% -0.0087 0.1347)
OKLCHoklch(77.34% 0.135 93.7)
XYZxyz(43.6261, 46.3144, 11.4912)
Luminance0.4631 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D2B340 #405FD2
analogous
#D26A40 #D2B340 #A8D240
triadic
#D2B340 #40D2B3 #B340D2
tetradic
#D2B340 #40D26A #405FD2 #D240A8
square
#D2B340 #40D26A #405FD2 #D240A8
split-complementary
#D2B340 #40A8D2 #6A40D2
monochromatic
#7B671D #AC9029 #D2B340 #DEC772 #E9DAA3

Accessibility & contrast

On white

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

On black

10.26
#D2B340 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D2B340
10.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D2B340#FFFFFF#000000##000000
##D2B3401.002.0510.2610.26
#FFFFFF2.051.0021.0021.00
#00000010.2621.001.001.00
##00000010.2621.001.001.00

Color blindness preview

Protanopia (red-blind)
#C6B030
Deuteranopia (green-blind)
#CDB946
Tritanopia (blue-blind)
#E3A59C
Achromatopsia (no color)
#B5B5B5

Design tokens & code

CSS
--color: #d2b340;
/* rgb */ color: rgb(210, 179, 64);
/* oklch */ color: oklch(77.3% 0.135 93.7);
Tailwind
colors: {
  custom: {
    50: '#e4c97b',
    500: '#d2b340',
    950: '#000000',
  },
}
SCSS
$custom: #d2b340;
$custom-light: #e4c97b;
$custom-dark: #000000;
JSON
{
  "hex": "#d2b340",
  "rgb": {
    "r": 210,
    "g": 179,
    "b": 64
  },
  "hsl": {
    "h": 47.26,
    "s": 61.864,
    "l": 53.725
  },
  "oklch": {
    "l": 0.77338,
    "c": 0.13499,
    "h": 93.7
  },
  "luminance": 0.46312
}

Semantic roles & 50–950 ramp

primary
#D2B340
secondary
#98A5D6
accent
#65E543
background
#FEFCF7
surface
#FDF8EE
border
#D5D1C9
text
#16130A
muted
#84827C

Preview Lab

Preview with #D2B340

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

Preview Lab → · Contrast checker → · Palette generator →

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