#D2B140#D2B140

#D2B140 is a light, vivid yellow. Relative luminance 0.455; OKLCH L 76.9% C 0.134 H 92.4°. Best body text is #000000 at 10.10:1 contrast (WCAG AA passes).

Color values

HEX#D2B140
RGBrgb(210, 177, 64)
HSLhsl(46, 62%, 54%)
HSVhsv(46, 70%, 82%)
CMYKcmyk(0%, 15.7%, 69.5%, 17.6%)
CIE-LABlab(73.23, -0.11, 59.70)
CIE-LCHlch(73.23, 59.70, 90.10°)
OKLaboklab(76.93% -0.0057 0.1336)
OKLCHoklch(76.93% 0.134 92.4)
XYZxyz(43.2282, 45.5186, 11.3586)
Luminance0.4552 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D2B140 #4061D2
analogous
#D26840 #D2B140 #AAD240
triadic
#D2B140 #40D2B1 #B140D2
tetradic
#D2B140 #40D268 #4061D2 #D240AA
square
#D2B140 #40D268 #4061D2 #D240AA
split-complementary
#D2B140 #40AAD2 #6840D2
monochromatic
#7B651D #AC8E29 #D2B140 #DEC572 #E9D9A3

Accessibility & contrast

On white

2.08
#D2B140 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

10.10
#D2B140 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D2B140
10.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D2B140#FFFFFF#000000##000000
##D2B1401.002.0810.1010.10
#FFFFFF2.081.0021.0021.00
#00000010.1021.001.001.00
##00000010.1021.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #d2b140;
/* rgb */ color: rgb(210, 177, 64);
/* oklch */ color: oklch(76.9% 0.134 92.4);
Tailwind
colors: {
  custom: {
    50: '#e4c87b',
    500: '#d2b140',
    950: '#000000',
  },
}
SCSS
$custom: #d2b140;
$custom-light: #e4c87b;
$custom-dark: #000000;
JSON
{
  "hex": "#d2b140",
  "rgb": {
    "r": 210,
    "g": 177,
    "b": 64
  },
  "hsl": {
    "h": 46.438,
    "s": 61.864,
    "l": 53.725
  },
  "oklch": {
    "l": 0.7693,
    "c": 0.13371,
    "h": 92.4
  },
  "luminance": 0.45516
}

Semantic roles & 50–950 ramp

primary
#D2B140
secondary
#98A6D6
accent
#67E543
background
#FEFCF7
surface
#FDF8EE
border
#D5D1C9
text
#16130A
muted
#84827C

Preview Lab

Preview with #D2B140

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

Preview Lab → · Contrast checker → · Palette generator →

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