#D1C845#D1C845

#D1C845 is a light, vivid yellow. Relative luminance 0.553; OKLCH L 81.7% C 0.148 H 105.4°. Best body text is #000000 at 12.06:1 contrast (WCAG AA passes).

Color values

HEX#D1C845
RGBrgb(209, 200, 69)
HSLhsl(56, 60%, 55%)
HSVhsv(56, 67%, 82%)
CMYKcmyk(0%, 4.3%, 67%, 18%)
CIE-LABlab(79.21, -12.15, 63.76)
CIE-LCHlch(79.21, 64.91, 100.79°)
OKLaboklab(81.66% -0.0394 0.1431)
OKLCHoklch(81.66% 0.148 105.4)
XYZxyz(48.0248, 55.2953, 13.7724)
Luminance0.5529 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D1C845 #454ED1
analogous
#D18245 #D1C845 #94D145
triadic
#D1C845 #45D1C8 #C845D1
tetradic
#D1C845 #45D182 #454ED1 #D14594
square
#D1C845 #45D182 #454ED1 #D14594
split-complementary
#D1C845 #4594D1 #8245D1
monochromatic
#7D771F #AEA52B #D1C845 #DDD776 #E9E5A7

Accessibility & contrast

On white

1.74
#D1C845 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

12.06
#D1C845 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D1C845
12.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D1C845#FFFFFF#000000##000000
##D1C8451.001.7412.0612.06
#FFFFFF1.741.0021.0021.00
#00000012.0621.001.001.00
##00000012.0621.001.001.00

Color blindness preview

Protanopia (red-blind)
#D9C132
Deuteranopia (green-blind)
#DCC74D
Tritanopia (blue-blind)
#E0BBAD
Achromatopsia (no color)
#C4C4C4

Design tokens & code

CSS
--color: #d1c845;
/* rgb */ color: rgb(209, 200, 69);
/* oklch */ color: oklch(81.7% 0.148 105.4);
Tailwind
colors: {
  custom: {
    50: '#e2d880',
    500: '#d1c845',
    950: '#000000',
  },
}
SCSS
$custom: #d1c845;
$custom-light: #e2d880;
$custom-dark: #000000;
JSON
{
  "hex": "#d1c845",
  "rgb": {
    "r": 209,
    "g": 200,
    "b": 69
  },
  "hsl": {
    "h": 56.143,
    "s": 60.345,
    "l": 54.51
  },
  "oklch": {
    "l": 0.81661,
    "c": 0.14838,
    "h": 105.4
  },
  "luminance": 0.55294
}

Semantic roles & 50–950 ramp

primary
#D1C845
secondary
#363B84
accent
#4FE344
background
#FEFEFB
surface
#FDFBF2
border
#D5D4CC
text
#16140B
muted
#84837E

Preview Lab

Preview with #D1C845

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

Preview Lab → · Contrast checker → · Palette generator →

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