#D2C835#D2C835

#D2C835 is a light, vivid yellow. Relative luminance 0.553; OKLCH L 81.6% C 0.158 H 105.4°. Best body text is #000000 at 12.05:1 contrast (WCAG AA passes).

Color values

HEX#D2C835
RGBrgb(210, 200, 53)
HSLhsl(56, 64%, 52%)
HSVhsv(56, 75%, 82%)
CMYKcmyk(0%, 4.8%, 74.8%, 17.6%)
CIE-LABlab(79.20, -12.49, 69.56)
CIE-LCHlch(79.20, 70.67, 100.18°)
OKLaboklab(81.64% -0.042 0.1525)
OKLCHoklch(81.64% 0.158 105.4)
XYZxyz(47.8773, 55.2691, 11.5135)
Luminance0.5527 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D2C835 #353FD2
analogous
#D27A35 #D2C835 #8ED235
triadic
#D2C835 #35D2C8 #C835D2
tetradic
#D2C835 #35D27A #353FD2 #D2358E
square
#D2C835 #35D27A #353FD2 #D2358E
split-complementary
#D2C835 #358ED2 #7A35D2
monochromatic
#736D1A #A59D25 #D2C835 #DDD667 #E8E399

Accessibility & contrast

On white

1.74
#D2C835 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

12.05
#D2C835 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D2C835
12.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D2C835#FFFFFF#000000##000000
##D2C8351.001.7412.0512.05
#FFFFFF1.741.0021.0021.00
#00000012.0521.001.001.00
##00000012.0521.001.001.00

Color blindness preview

Protanopia (red-blind)
#DAC114
Deuteranopia (green-blind)
#DDC740
Tritanopia (blue-blind)
#E2BAAC
Achromatopsia (no color)
#C4C4C4

Design tokens & code

CSS
--color: #d2c835;
/* rgb */ color: rgb(210, 200, 53);
/* oklch */ color: oklch(81.6% 0.158 105.4);
Tailwind
colors: {
  custom: {
    50: '#e4d877',
    500: '#d2c835',
    950: '#000000',
  },
}
SCSS
$custom: #d2c835;
$custom-light: #e4d877;
$custom-dark: #000000;
JSON
{
  "hex": "#d2c835",
  "rgb": {
    "r": 210,
    "g": 200,
    "b": 53
  },
  "hsl": {
    "h": 56.178,
    "s": 63.563,
    "l": 51.569
  },
  "oklch": {
    "l": 0.81638,
    "c": 0.15814,
    "h": 105.4
  },
  "luminance": 0.55267
}

Semantic roles & 50–950 ramp

primary
#D2C835
secondary
#30347C
accent
#4CE741
background
#FFFEFB
surface
#FEFBF1
border
#D6D4CB
text
#16140A
muted
#85837D

Preview Lab

Preview with #D2C835

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

Preview Lab → · Contrast checker → · Palette generator →

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