#D9C845#D9C845

#D9C845 is a very light, vivid yellow. Relative luminance 0.565; OKLCH L 82.4% C 0.148 H 101.8°. Best body text is #000000 at 12.30:1 contrast (WCAG AA passes).

Color values

HEX#D9C845
RGBrgb(217, 200, 69)
HSLhsl(53, 66%, 56%)
HSVhsv(53, 68%, 85%)
CMYKcmyk(0%, 7.8%, 68.2%, 14.9%)
CIE-LABlab(79.89, -8.78, 64.67)
CIE-LCHlch(79.89, 65.27, 97.73°)
OKLaboklab(82.37% -0.0303 0.1447)
OKLCHoklch(82.37% 0.148 101.8)
XYZxyz(50.3459, 56.4921, 13.8812)
Luminance0.5649 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D9C845 #4556D9
analogous
#D97E45 #D9C845 #A0D945
triadic
#D9C845 #45D9C8 #C845D9
tetradic
#D9C845 #45D97E #4556D9 #D945A0
square
#D9C845 #45D97E #4556D9 #D945A0
split-complementary
#D9C845 #45A0D9 #7E45D9
monochromatic
#887B1C #BBAA26 #D9C845 #E3D778 #EEE6AB

Accessibility & contrast

On white

1.71
#D9C845 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

12.30
#D9C845 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D9C845
12.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D9C845#FFFFFF#000000##000000
##D9C8451.001.7112.3012.30
#FFFFFF1.711.0021.0021.00
#00000012.3021.001.001.00
##00000012.3021.001.001.00

Color blindness preview

Protanopia (red-blind)
#DAC232
Deuteranopia (green-blind)
#DFC94D
Tritanopia (blue-blind)
#E9BAAE
Achromatopsia (no color)
#C6C6C6

Design tokens & code

CSS
--color: #d9c845;
/* rgb */ color: rgb(217, 200, 69);
/* oklch */ color: oklch(82.4% 0.148 101.8);
Tailwind
colors: {
  custom: {
    50: '#e8d880',
    500: '#d9c845',
    950: '#000000',
  },
}
SCSS
$custom: #d9c845;
$custom-light: #e8d880;
$custom-dark: #000000;
JSON
{
  "hex": "#d9c845",
  "rgb": {
    "r": 217,
    "g": 200,
    "b": 69
  },
  "hsl": {
    "h": 53.108,
    "s": 66.071,
    "l": 56.078
  },
  "oklch": {
    "l": 0.82367,
    "c": 0.14786,
    "h": 101.8
  },
  "luminance": 0.5649
}

Semantic roles & 50–950 ramp

primary
#D9C845
secondary
#343F8E
accent
#52E93F
background
#FFFEFB
surface
#FEFBF2
border
#D6D4CC
text
#17140B
muted
#85837E

Preview Lab

Preview with #D9C845

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

Preview Lab → · Contrast checker → · Palette generator →

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