#D2B451#D2B451

#D2B451 is a light, vivid yellow. Relative luminance 0.469; OKLCH L 77.7% C 0.123 H 92.5°. Best body text is #000000 at 10.39:1 contrast (WCAG AA passes).

Color values

HEX#D2B451
RGBrgb(210, 180, 81)
HSLhsl(46, 59%, 57%)
HSVhsv(46, 61%, 82%)
CMYKcmyk(0%, 14.3%, 61.4%, 17.6%)
CIE-LABlab(74.15, -0.67, 53.29)
CIE-LCHlch(74.15, 53.29, 90.72°)
OKLaboklab(77.7% -0.0053 0.1226)
OKLCHoklch(77.7% 0.123 92.5)
XYZxyz(44.3868, 46.9405, 14.5054)
Luminance0.4694 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D2B451 #516FD2
analogous
#D27451 #D2B451 #AFD251
triadic
#D2B451 #51D2B4 #B451D2
tetradic
#D2B451 #51D274 #516FD2 #D251AF
square
#D2B451 #51D274 #516FD2 #D251AF
split-complementary
#D2B451 #51AFD2 #7451D2
monochromatic
#866F23 #B7972F #D2B451 #DFC982 #EBDEB2

Accessibility & contrast

On white

2.02
#D2B451 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

10.39
#D2B451 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D2B451
10.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D2B451#FFFFFF#000000##000000
##D2B4511.002.0210.3910.39
#FFFFFF2.021.0021.0021.00
#00000010.3921.001.001.00
##00000010.3921.001.001.00

Color blindness preview

Protanopia (red-blind)
#C6B146
Deuteranopia (green-blind)
#CDBA55
Tritanopia (blue-blind)
#E2A79E
Achromatopsia (no color)
#B6B6B6

Design tokens & code

CSS
--color: #d2b451;
/* rgb */ color: rgb(210, 180, 81);
/* oklch */ color: oklch(77.7% 0.123 92.5);
Tailwind
colors: {
  custom: {
    50: '#e3ca85',
    500: '#d2b451',
    950: '#000000',
  },
}
SCSS
$custom: #d2b451;
$custom-light: #e3ca85;
$custom-dark: #000000;
JSON
{
  "hex": "#d2b451",
  "rgb": {
    "r": 210,
    "g": 180,
    "b": 81
  },
  "hsl": {
    "h": 46.047,
    "s": 58.904,
    "l": 57.059
  },
  "oklch": {
    "l": 0.77702,
    "c": 0.12273,
    "h": 92.5
  },
  "luminance": 0.46938
}

Semantic roles & 50–950 ramp

primary
#D2B451
secondary
#A5B1DA
accent
#6AE246
background
#FEFCF8
surface
#FDF8EF
border
#D5D1CA
text
#16130B
muted
#84827C

Preview Lab

Preview with #D2B451

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

Preview Lab → · Contrast checker → · Palette generator →

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