#D2C535#D2C535

#D2C535 is a light, vivid yellow. Relative luminance 0.539; OKLCH L 81.0% C 0.156 H 104.0°. Best body text is #000000 at 11.78:1 contrast (WCAG AA passes).

Color values

HEX#D2C535
RGBrgb(210, 197, 53)
HSLhsl(55, 64%, 52%)
HSVhsv(55, 75%, 82%)
CMYKcmyk(0%, 6.2%, 74.8%, 17.6%)
CIE-LABlab(78.40, -10.98, 68.81)
CIE-LCHlch(78.40, 69.68, 99.06°)
OKLaboklab(81% -0.0377 0.1509)
OKLCHoklch(81% 0.156 104)
XYZxyz(47.1893, 53.8931, 11.2842)
Luminance0.5389 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D2C535 #3542D2
analogous
#D27735 #D2C535 #91D235
triadic
#D2C535 #35D2C5 #C535D2
tetradic
#D2C535 #35D277 #3542D2 #D23591
square
#D2C535 #35D277 #3542D2 #D23591
split-complementary
#D2C535 #3591D2 #7735D2
monochromatic
#736C1A #A59A25 #D2C535 #DDD367 #E8E299

Accessibility & contrast

On white

1.78
#D2C535 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

11.78
#D2C535 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D2C535
11.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D2C535#FFFFFF#000000##000000
##D2C5351.001.7811.7811.78
#FFFFFF1.781.0021.0021.00
#00000011.7821.001.001.00
##00000011.7821.001.001.00

Color blindness preview

Protanopia (red-blind)
#D7BE16
Deuteranopia (green-blind)
#DBC540
Tritanopia (blue-blind)
#E2B7AA
Achromatopsia (no color)
#C2C2C2

Design tokens & code

CSS
--color: #d2c535;
/* rgb */ color: rgb(210, 197, 53);
/* oklch */ color: oklch(81.0% 0.156 104.0);
Tailwind
colors: {
  custom: {
    50: '#e4d677',
    500: '#d2c535',
    950: '#000000',
  },
}
SCSS
$custom: #d2c535;
$custom-light: #e4d677;
$custom-dark: #000000;
JSON
{
  "hex": "#d2c535",
  "rgb": {
    "r": 210,
    "g": 197,
    "b": 53
  },
  "hsl": {
    "h": 55.032,
    "s": 63.563,
    "l": 51.569
  },
  "oklch": {
    "l": 0.81003,
    "c": 0.15554,
    "h": 104
  },
  "luminance": 0.53891
}

Semantic roles & 50–950 ramp

primary
#D2C535
secondary
#30367C
accent
#4FE741
background
#FFFEFB
surface
#FEFBF1
border
#D6D4CB
text
#161409
muted
#85837D

Preview Lab

Preview with #D2C535

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

Preview Lab → · Contrast checker → · Palette generator →

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