#D9B23A#D9B23A

#D9B23A is a light, vivid yellow. Relative luminance 0.469; OKLCH L 77.8% C 0.140 H 90.2°. Best body text is #000000 at 10.38:1 contrast (WCAG AA passes).

Color values

HEX#D9B23A
RGBrgb(217, 178, 58)
HSLhsl(45, 68%, 54%)
HSVhsv(45, 73%, 85%)
CMYKcmyk(0%, 18%, 73.3%, 14.9%)
CIE-LABlab(74.13, 2.09, 63.19)
CIE-LCHlch(74.13, 63.22, 88.10°)
OKLaboklab(77.78% -0.0005 0.1396)
OKLCHoklch(77.78% 0.14 90.2)
XYZxyz(45.3020, 46.9008, 10.6688)
Luminance0.4690 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D9B23A #3A61D9
analogous
#D9633A #D9B23A #B1D93A
triadic
#D9B23A #3AD9B2 #B23AD9
tetradic
#D9B23A #3AD963 #3A61D9 #D93AB1
square
#D9B23A #3AD963 #3A61D9 #D93AB1
split-complementary
#D9B23A #3AB1D9 #633AD9
monochromatic
#806719 #B39023 #D9B23A #E3C66D #EDDAA1

Accessibility & contrast

On white

2.02
#D9B23A on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

10.38
#D9B23A on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D9B23A
10.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D9B23A#FFFFFF#000000##000000
##D9B23A1.002.0210.3810.38
#FFFFFF2.021.0021.0021.00
#00000010.3821.001.001.00
##00000010.3821.001.001.00

Color blindness preview

Protanopia (red-blind)
#C6B027
Deuteranopia (green-blind)
#D0BB40
Tritanopia (blue-blind)
#EBA39A
Achromatopsia (no color)
#B6B6B6

Design tokens & code

CSS
--color: #d9b23a;
/* rgb */ color: rgb(217, 178, 58);
/* oklch */ color: oklch(77.8% 0.140 90.2);
Tailwind
colors: {
  custom: {
    50: '#e9c878',
    500: '#d9b23a',
    950: '#000000',
  },
}
SCSS
$custom: #d9b23a;
$custom-light: #e9c878;
$custom-dark: #000000;
JSON
{
  "hex": "#d9b23a",
  "rgb": {
    "r": 217,
    "g": 178,
    "b": 58
  },
  "hsl": {
    "h": 45.283,
    "s": 67.66,
    "l": 53.922
  },
  "oklch": {
    "l": 0.77779,
    "c": 0.13961,
    "h": 90.2
  },
  "luminance": 0.46898
}

Semantic roles & 50–950 ramp

primary
#D9B23A
secondary
#95A6D9
accent
#68EB3D
background
#FEFCF7
surface
#FDF8EE
border
#D5D1C9
text
#171309
muted
#85827B

Preview Lab

Preview with #D9B23A

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

Preview Lab → · Contrast checker → · Palette generator →

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