#D2C751#D2C751

#D2C751 is a light, vivid yellow. Relative luminance 0.551; OKLCH L 81.6% C 0.138 H 104.0°. Best body text is #000000 at 12.03:1 contrast (WCAG AA passes).

Color values

HEX#D2C751
RGBrgb(210, 199, 81)
HSLhsl(55, 59%, 57%)
HSVhsv(55, 61%, 82%)
CMYKcmyk(0%, 5.2%, 61.4%, 17.6%)
CIE-LABlab(79.12, -10.50, 58.75)
CIE-LCHlch(79.12, 59.68, 100.13°)
OKLaboklab(81.64% -0.0334 0.1342)
OKLCHoklch(81.64% 0.138 104)
XYZxyz(48.4887, 55.1443, 15.8727)
Luminance0.5514 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D2C751 #515CD2
analogous
#D28751 #D2C751 #9CD251
triadic
#D2C751 #51D2C7 #C751D2
tetradic
#D2C751 #51D287 #515CD2 #D2519C
square
#D2C751 #51D287 #515CD2 #D2519C
split-complementary
#D2C751 #519CD2 #8751D2
monochromatic
#867D23 #B7AB2F #D2C751 #DFD782 #EBE6B2

Accessibility & contrast

On white

1.75
#D2C751 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

12.03
#D2C751 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D2C751
12.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D2C751#FFFFFF#000000##000000
##D2C7511.001.7512.0312.03
#FFFFFF1.751.0021.0021.00
#00000012.0321.001.001.00
##00000012.0321.001.001.00

Color blindness preview

Protanopia (red-blind)
#D7C143
Deuteranopia (green-blind)
#DBC758
Tritanopia (blue-blind)
#E1BAAE
Achromatopsia (no color)
#C4C4C4

Design tokens & code

CSS
--color: #d2c751;
/* rgb */ color: rgb(210, 199, 81);
/* oklch */ color: oklch(81.6% 0.138 104.0);
Tailwind
colors: {
  custom: {
    50: '#e3d787',
    500: '#d2c751',
    950: '#000000',
  },
}
SCSS
$custom: #d2c751;
$custom-light: #e3d787;
$custom-dark: #000000;
JSON
{
  "hex": "#d2c751",
  "rgb": {
    "r": 210,
    "g": 199,
    "b": 81
  },
  "hsl": {
    "h": 54.884,
    "s": 58.904,
    "l": 57.059
  },
  "oklch": {
    "l": 0.81642,
    "c": 0.13834,
    "h": 104
  },
  "luminance": 0.55143
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #D2C751

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

Preview Lab → · Contrast checker → · Palette generator →

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