#D2C651#D2C651

#D2C651 is a light, vivid yellow. Relative luminance 0.547; OKLCH L 81.4% C 0.137 H 103.5°. Best body text is #000000 at 11.94:1 contrast (WCAG AA passes).

Color values

HEX#D2C651
RGBrgb(210, 198, 81)
HSLhsl(54, 59%, 57%)
HSVhsv(54, 61%, 82%)
CMYKcmyk(0%, 5.7%, 61.4%, 17.6%)
CIE-LABlab(78.86, -9.99, 58.46)
CIE-LCHlch(78.86, 59.31, 99.70°)
OKLaboklab(81.43% -0.032 0.1336)
OKLCHoklch(81.43% 0.137 103.5)
XYZxyz(48.2594, 54.6857, 15.7963)
Luminance0.5468 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D2C651 #515DD2
analogous
#D28651 #D2C651 #9DD251
triadic
#D2C651 #51D2C6 #C651D2
tetradic
#D2C651 #51D286 #515DD2 #D2519D
square
#D2C651 #51D286 #515DD2 #D2519D
split-complementary
#D2C651 #519DD2 #8651D2
monochromatic
#867D23 #B7AA2F #D2C651 #DFD682 #EBE6B2

Accessibility & contrast

On white

1.76
#D2C651 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

11.94
#D2C651 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D2C651
11.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D2C651#FFFFFF#000000##000000
##D2C6511.001.7611.9411.94
#FFFFFF1.761.0021.0021.00
#00000011.9421.001.001.00
##00000011.9421.001.001.00

Color blindness preview

Protanopia (red-blind)
#D6C043
Deuteranopia (green-blind)
#DAC657
Tritanopia (blue-blind)
#E1B9AD
Achromatopsia (no color)
#C3C3C3

Design tokens & code

CSS
--color: #d2c651;
/* rgb */ color: rgb(210, 198, 81);
/* oklch */ color: oklch(81.4% 0.137 103.5);
Tailwind
colors: {
  custom: {
    50: '#e3d787',
    500: '#d2c651',
    950: '#000000',
  },
}
SCSS
$custom: #d2c651;
$custom-light: #e3d787;
$custom-dark: #000000;
JSON
{
  "hex": "#d2c651",
  "rgb": {
    "r": 210,
    "g": 198,
    "b": 81
  },
  "hsl": {
    "h": 54.419,
    "s": 58.904,
    "l": 57.059
  },
  "oklch": {
    "l": 0.81432,
    "c": 0.13741,
    "h": 103.5
  },
  "luminance": 0.54684
}

Semantic roles & 50–950 ramp

primary
#D2C651
secondary
#3B428D
accent
#54E246
background
#FEFEFC
surface
#FDFBF3
border
#D5D4CD
text
#16140C
muted
#84837F

Preview Lab

Preview with #D2C651

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

Preview Lab → · Contrast checker → · Palette generator →

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