#D9C345#D9C345

#D9C345 is a light, vivid yellow. Relative luminance 0.542; OKLCH L 81.3% C 0.144 H 99.2°. Best body text is #000000 at 11.84:1 contrast (WCAG AA passes).

Color values

HEX#D9C345
RGBrgb(217, 195, 69)
HSLhsl(51, 66%, 56%)
HSVhsv(51, 68%, 85%)
CMYKcmyk(0%, 10.1%, 68.2%, 14.9%)
CIE-LABlab(78.59, -6.22, 63.35)
CIE-LCHlch(78.59, 63.65, 95.61°)
OKLaboklab(81.33% -0.023 0.1419)
OKLCHoklch(81.33% 0.144 99.2)
XYZxyz(49.2068, 54.2139, 13.5015)
Luminance0.5421 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D9C345 #455BD9
analogous
#D97945 #D9C345 #A5D945
triadic
#D9C345 #45D9C3 #C345D9
tetradic
#D9C345 #45D979 #455BD9 #D945A5
square
#D9C345 #45D979 #455BD9 #D945A5
split-complementary
#D9C345 #45A5D9 #7945D9
monochromatic
#88781C #BBA526 #D9C345 #E3D378 #EEE4AB

Accessibility & contrast

On white

1.77
#D9C345 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

11.84
#D9C345 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D9C345
11.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D9C345#FFFFFF#000000##000000
##D9C3451.001.7711.8411.84
#FFFFFF1.771.0021.0021.00
#00000011.8421.001.001.00
##00000011.8421.001.001.00

Color blindness preview

Protanopia (red-blind)
#D5BE33
Deuteranopia (green-blind)
#DBC64C
Tritanopia (blue-blind)
#E9B5A9
Achromatopsia (no color)
#C2C2C2

Design tokens & code

CSS
--color: #d9c345;
/* rgb */ color: rgb(217, 195, 69);
/* oklch */ color: oklch(81.3% 0.144 99.2);
Tailwind
colors: {
  custom: {
    50: '#e8d47f',
    500: '#d9c345',
    950: '#000000',
  },
}
SCSS
$custom: #d9c345;
$custom-light: #e8d47f;
$custom-dark: #000000;
JSON
{
  "hex": "#d9c345",
  "rgb": {
    "r": 217,
    "g": 195,
    "b": 69
  },
  "hsl": {
    "h": 51.081,
    "s": 66.071,
    "l": 56.078
  },
  "oklch": {
    "l": 0.8133,
    "c": 0.14378,
    "h": 99.2
  },
  "luminance": 0.54212
}

Semantic roles & 50–950 ramp

primary
#D9C345
secondary
#34428E
accent
#58E93F
background
#FFFEFB
surface
#FEFBF2
border
#D6D4CC
text
#17140B
muted
#85837E

Preview Lab

Preview with #D9C345

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

Preview Lab → · Contrast checker → · Palette generator →

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