#D9C145#D9C145

#D9C145 is a light, vivid yellow. Relative luminance 0.533; OKLCH L 80.9% C 0.142 H 98.1°. Best body text is #000000 at 11.66:1 contrast (WCAG AA passes).

Color values

HEX#D9C145
RGBrgb(217, 193, 69)
HSLhsl(50, 66%, 56%)
HSVhsv(50, 68%, 85%)
CMYKcmyk(0%, 11.1%, 68.2%, 14.9%)
CIE-LABlab(78.07, -5.19, 62.82)
CIE-LCHlch(78.07, 63.03, 94.72°)
OKLaboklab(80.92% -0.0201 0.1408)
OKLCHoklch(80.92% 0.142 98.1)
XYZxyz(48.7617, 53.3237, 13.3531)
Luminance0.5332 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D9C145 #455DD9
analogous
#D97745 #D9C145 #A7D945
triadic
#D9C145 #45D9C1 #C145D9
tetradic
#D9C145 #45D977 #455DD9 #D945A7
square
#D9C145 #45D977 #455DD9 #D945A7
split-complementary
#D9C145 #45A7D9 #7745D9
monochromatic
#88761C #BBA326 #D9C145 #E3D278 #EEE3AB

Accessibility & contrast

On white

1.80
#D9C145 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

11.66
#D9C145 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D9C145
11.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D9C145#FFFFFF#000000##000000
##D9C1451.001.8011.6611.66
#FFFFFF1.801.0021.0021.00
#00000011.6621.001.001.00
##00000011.6621.001.001.00

Color blindness preview

Protanopia (red-blind)
#D3BC34
Deuteranopia (green-blind)
#DAC54C
Tritanopia (blue-blind)
#EAB3A8
Achromatopsia (no color)
#C1C1C1

Design tokens & code

CSS
--color: #d9c145;
/* rgb */ color: rgb(217, 193, 69);
/* oklch */ color: oklch(80.9% 0.142 98.1);
Tailwind
colors: {
  custom: {
    50: '#e8d37f',
    500: '#d9c145',
    950: '#000000',
  },
}
SCSS
$custom: #d9c145;
$custom-light: #e8d37f;
$custom-dark: #000000;
JSON
{
  "hex": "#d9c145",
  "rgb": {
    "r": 217,
    "g": 193,
    "b": 69
  },
  "hsl": {
    "h": 50.27,
    "s": 66.071,
    "l": 56.078
  },
  "oklch": {
    "l": 0.80917,
    "c": 0.14223,
    "h": 98.1
  },
  "luminance": 0.53321
}

Semantic roles & 50–950 ramp

primary
#D9C145
secondary
#34438E
accent
#5AE93F
background
#FFFEFB
surface
#FEFBF2
border
#D6D4CC
text
#17140B
muted
#85837E

Preview Lab

Preview with #D9C145

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

Preview Lab → · Contrast checker → · Palette generator →

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