#D1C945#D1C945

#D1C945 is a light, vivid yellow. Relative luminance 0.558; OKLCH L 81.9% C 0.149 H 105.9°. Best body text is #000000 at 12.15:1 contrast (WCAG AA passes).

Color values

HEX#D1C945
RGBrgb(209, 201, 69)
HSLhsl(57, 60%, 55%)
HSVhsv(57, 67%, 82%)
CMYKcmyk(0%, 3.8%, 67%, 18%)
CIE-LABlab(79.48, -12.66, 64.03)
CIE-LCHlch(79.48, 65.27, 101.18°)
OKLaboklab(81.87% -0.0408 0.1436)
OKLCHoklch(81.87% 0.149 105.9)
XYZxyz(48.2571, 55.7600, 13.8498)
Luminance0.5576 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D1C945 #454DD1
analogous
#D18345 #D1C945 #93D145
triadic
#D1C945 #45D1C9 #C945D1
tetradic
#D1C945 #45D183 #454DD1 #D14593
square
#D1C945 #45D183 #454DD1 #D14593
split-complementary
#D1C945 #4593D1 #8345D1
monochromatic
#7D771F #AEA62B #D1C945 #DDD776 #E9E5A7

Accessibility & contrast

On white

1.73
#D1C945 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

12.15
#D1C945 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D1C945
12.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D1C945#FFFFFF#000000##000000
##D1C9451.001.7312.1512.15
#FFFFFF1.731.0021.0021.00
#00000012.1521.001.001.00
##00000012.1521.001.001.00

Color blindness preview

Protanopia (red-blind)
#DAC232
Deuteranopia (green-blind)
#DDC74E
Tritanopia (blue-blind)
#E0BCAE
Achromatopsia (no color)
#C5C5C5

Design tokens & code

CSS
--color: #d1c945;
/* rgb */ color: rgb(209, 201, 69);
/* oklch */ color: oklch(81.9% 0.149 105.9);
Tailwind
colors: {
  custom: {
    50: '#e2d980',
    500: '#d1c945',
    950: '#000000',
  },
}
SCSS
$custom: #d1c945;
$custom-light: #e2d980;
$custom-dark: #000000;
JSON
{
  "hex": "#d1c945",
  "rgb": {
    "r": 209,
    "g": 201,
    "b": 69
  },
  "hsl": {
    "h": 56.571,
    "s": 60.345,
    "l": 54.51
  },
  "oklch": {
    "l": 0.81873,
    "c": 0.14932,
    "h": 105.9
  },
  "luminance": 0.55758
}

Semantic roles & 50–950 ramp

primary
#D1C945
secondary
#363A84
accent
#4DE344
background
#FEFEFB
surface
#FDFBF2
border
#D5D4CC
text
#16140B
muted
#84837E

Preview Lab

Preview with #D1C945

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

Preview Lab → · Contrast checker → · Palette generator →

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