#D8C535#D8C535

#D8C535 is a light, vivid yellow. Relative luminance 0.548; OKLCH L 81.5% C 0.155 H 101.4°. Best body text is #000000 at 11.96:1 contrast (WCAG AA passes).

Color values

HEX#D8C535
RGBrgb(216, 197, 53)
HSLhsl(53, 68%, 53%)
HSVhsv(53, 75%, 85%)
CMYKcmyk(0%, 8.8%, 75.5%, 15.3%)
CIE-LABlab(78.92, -8.41, 69.49)
CIE-LCHlch(78.92, 69.99, 96.90°)
OKLaboklab(81.54% -0.0308 0.1521)
OKLCHoklch(81.54% 0.155 101.4)
XYZxyz(48.9301, 54.7907, 11.3658)
Luminance0.5479 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D8C535 #3548D8
analogous
#D87335 #D8C535 #9AD835
triadic
#D8C535 #35D8C5 #C535D8
tetradic
#D8C535 #35D873 #3548D8 #D8359A
square
#D8C535 #35D873 #3548D8 #D8359A
split-complementary
#D8C535 #359AD8 #7335D8
monochromatic
#7B6F18 #AE9E22 #D8C535 #E2D468 #ECE29C

Accessibility & contrast

On white

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

On black

11.96
#D8C535 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D8C535
11.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D8C535#FFFFFF#000000##000000
##D8C5351.001.7611.9611.96
#FFFFFF1.761.0021.0021.00
#00000011.9621.001.001.00
##00000011.9621.001.001.00

Color blindness preview

Protanopia (red-blind)
#D8BF16
Deuteranopia (green-blind)
#DDC73F
Tritanopia (blue-blind)
#E9B7AA
Achromatopsia (no color)
#C3C3C3

Design tokens & code

CSS
--color: #d8c535;
/* rgb */ color: rgb(216, 197, 53);
/* oklch */ color: oklch(81.5% 0.155 101.4);
Tailwind
colors: {
  custom: {
    50: '#e8d677',
    500: '#d8c535',
    950: '#000000',
  },
}
SCSS
$custom: #d8c535;
$custom-light: #e8d677;
$custom-dark: #000000;
JSON
{
  "hex": "#d8c535",
  "rgb": {
    "r": 216,
    "g": 197,
    "b": 53
  },
  "hsl": {
    "h": 53.006,
    "s": 67.635,
    "l": 52.745
  },
  "oklch": {
    "l": 0.81542,
    "c": 0.15518,
    "h": 101.4
  },
  "luminance": 0.54788
}

Semantic roles & 50–950 ramp

primary
#D8C535
secondary
#2F3883
accent
#51EB3D
background
#FFFEFB
surface
#FEFBF1
border
#D6D4CB
text
#171409
muted
#85837D

Preview Lab

Preview with #D8C535

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

Preview Lab → · Contrast checker → · Palette generator →

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