#D8C23B#D8C23B

#D8C23B is a light, vivid yellow. Relative luminance 0.535; OKLCH L 81.0% C 0.149 H 99.7°. Best body text is #000000 at 11.70:1 contrast (WCAG AA passes).

Color values

HEX#D8C23B
RGBrgb(216, 194, 59)
HSLhsl(52, 67%, 54%)
HSVhsv(52, 73%, 85%)
CMYKcmyk(0%, 10.2%, 72.7%, 15.3%)
CIE-LABlab(78.17, -6.62, 66.70)
CIE-LCHlch(78.17, 67.03, 95.67°)
OKLaboklab(80.96% -0.0251 0.1473)
OKLCHoklch(80.96% 0.149 99.7)
XYZxyz(48.4024, 53.5006, 11.9140)
Luminance0.5350 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D8C23B #3B51D8
analogous
#D8743B #D8C23B #A0D83B
triadic
#D8C23B #3BD8C2 #C23BD8
tetradic
#D8C23B #3BD874 #3B51D8 #D83BA0
square
#D8C23B #3BD874 #3B51D8 #D83BA0
split-complementary
#D8C23B #3BA0D8 #743BD8
monochromatic
#7F7119 #B29E23 #D8C23B #E2D26E #ECE2A1

Accessibility & contrast

On white

1.79
#D8C23B on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

11.70
#D8C23B on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D8C23B
11.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D8C23B#FFFFFF#000000##000000
##D8C23B1.001.7911.7011.70
#FFFFFF1.791.0021.0021.00
#00000011.7021.001.001.00
##00000011.7021.001.001.00

Color blindness preview

Protanopia (red-blind)
#D5BD24
Deuteranopia (green-blind)
#DBC544
Tritanopia (blue-blind)
#E9B4A8
Achromatopsia (no color)
#C1C1C1

Design tokens & code

CSS
--color: #d8c23b;
/* rgb */ color: rgb(216, 194, 59);
/* oklch */ color: oklch(81.0% 0.149 99.7);
Tailwind
colors: {
  custom: {
    50: '#e8d47a',
    500: '#d8c23b',
    950: '#000000',
  },
}
SCSS
$custom: #d8c23b;
$custom-light: #e8d47a;
$custom-dark: #000000;
JSON
{
  "hex": "#d8c23b",
  "rgb": {
    "r": 216,
    "g": 194,
    "b": 59
  },
  "hsl": {
    "h": 51.592,
    "s": 66.809,
    "l": 53.922
  },
  "oklch": {
    "l": 0.80957,
    "c": 0.14942,
    "h": 99.7
  },
  "luminance": 0.53498
}

Semantic roles & 50–950 ramp

primary
#D8C23B
secondary
#313D86
accent
#56EA3E
background
#FFFEFB
surface
#FEFBF2
border
#D6D4CC
text
#17140A
muted
#85837D

Preview Lab

Preview with #D8C23B

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

Preview Lab → · Contrast checker → · Palette generator →

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