#D2BF40#D2BF40

#D2BF40 is a light, vivid yellow. Relative luminance 0.513; OKLCH L 79.8% C 0.144 H 100.6°. Best body text is #000000 at 11.27:1 contrast (WCAG AA passes).

Color values

HEX#D2BF40
RGBrgb(210, 191, 64)
HSLhsl(52, 62%, 54%)
HSVhsv(52, 70%, 82%)
CMYKcmyk(0%, 9%, 69.5%, 17.6%)
CIE-LABlab(76.88, -7.40, 63.39)
CIE-LCHlch(76.88, 63.82, 96.66°)
OKLaboklab(79.82% -0.0265 0.1414)
OKLCHoklch(79.82% 0.144 100.6)
XYZxyz(46.1366, 51.3355, 12.3280)
Luminance0.5133 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D2BF40 #4053D2
analogous
#D27640 #D2BF40 #9CD240
triadic
#D2BF40 #40D2BF #BF40D2
tetradic
#D2BF40 #40D276 #4053D2 #D2409C
square
#D2BF40 #40D276 #4053D2 #D2409C
split-complementary
#D2BF40 #409CD2 #7640D2
monochromatic
#7B6E1D #AC9B29 #D2BF40 #DED072 #E9E0A3

Accessibility & contrast

On white

1.86
#D2BF40 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

11.27
#D2BF40 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D2BF40
11.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D2BF40#FFFFFF#000000##000000
##D2BF401.001.8611.2711.27
#FFFFFF1.861.0021.0021.00
#00000011.2721.001.001.00
##00000011.2721.001.001.00

Color blindness preview

Protanopia (red-blind)
#D1BA2D
Deuteranopia (green-blind)
#D6C148
Tritanopia (blue-blind)
#E2B1A6
Achromatopsia (no color)
#BEBEBE

Design tokens & code

CSS
--color: #d2bf40;
/* rgb */ color: rgb(210, 191, 64);
/* oklch */ color: oklch(79.8% 0.144 100.6);
Tailwind
colors: {
  custom: {
    50: '#e3d27c',
    500: '#d2bf40',
    950: '#000000',
  },
}
SCSS
$custom: #d2bf40;
$custom-light: #e3d27c;
$custom-dark: #000000;
JSON
{
  "hex": "#d2bf40",
  "rgb": {
    "r": 210,
    "g": 191,
    "b": 64
  },
  "hsl": {
    "h": 52.192,
    "s": 61.864,
    "l": 53.725
  },
  "oklch": {
    "l": 0.79819,
    "c": 0.14385,
    "h": 100.6
  },
  "luminance": 0.51333
}

Semantic roles & 50–950 ramp

primary
#D2BF40
secondary
#343E83
accent
#58E543
background
#FFFEFB
surface
#FEFBF2
border
#D6D4CC
text
#16140A
muted
#85837D

Preview Lab

Preview with #D2BF40

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

Preview Lab → · Contrast checker → · Palette generator →

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