#D1C242#D1C242

#D1C242 is a light, vivid yellow. Relative luminance 0.525; OKLCH L 80.4% C 0.145 H 102.6°. Best body text is #000000 at 11.51:1 contrast (WCAG AA passes).

Color values

HEX#D1C242
RGBrgb(209, 194, 66)
HSLhsl(54, 61%, 54%)
HSVhsv(54, 68%, 82%)
CMYKcmyk(0%, 7.2%, 68.4%, 18%)
CIE-LABlab(77.60, -9.26, 63.30)
CIE-LCHlch(77.60, 63.97, 98.32°)
OKLaboklab(80.37% -0.0315 0.1416)
OKLCHoklch(80.37% 0.145 102.6)
XYZxyz(46.5716, 52.5342, 12.8402)
Luminance0.5253 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D1C242 #4251D1
analogous
#D17B42 #D1C242 #99D142
triadic
#D1C242 #42D1C2 #C242D1
tetradic
#D1C242 #42D17B #4251D1 #D14299
square
#D1C242 #42D17B #4251D1 #D14299
split-complementary
#D1C242 #4299D1 #7B42D1
monochromatic
#7B711E #AC9E2A #D1C242 #DDD273 #E9E2A4

Accessibility & contrast

On white

1.83
#D1C242 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

11.51
#D1C242 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D1C242
11.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D1C242#FFFFFF#000000##000000
##D1C2421.001.8311.5111.51
#FFFFFF1.831.0021.0021.00
#00000011.5121.001.001.00
##00000011.5121.001.001.00

Color blindness preview

Protanopia (red-blind)
#D3BC2F
Deuteranopia (green-blind)
#D8C34A
Tritanopia (blue-blind)
#E1B5A8
Achromatopsia (no color)
#C0C0C0

Design tokens & code

CSS
--color: #d1c242;
/* rgb */ color: rgb(209, 194, 66);
/* oklch */ color: oklch(80.4% 0.145 102.6);
Tailwind
colors: {
  custom: {
    50: '#e3d47e',
    500: '#d1c242',
    950: '#000000',
  },
}
SCSS
$custom: #d1c242;
$custom-light: #e3d47e;
$custom-dark: #000000;
JSON
{
  "hex": "#d1c242",
  "rgb": {
    "r": 209,
    "g": 194,
    "b": 66
  },
  "hsl": {
    "h": 53.706,
    "s": 60.851,
    "l": 53.922
  },
  "oklch": {
    "l": 0.80372,
    "c": 0.14506,
    "h": 102.6
  },
  "luminance": 0.52532
}

Semantic roles & 50–950 ramp

primary
#D1C242
secondary
#353D83
accent
#55E444
background
#FEFEFB
surface
#FDFBF2
border
#D5D4CC
text
#16140A
muted
#84837D

Preview Lab

Preview with #D1C242

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

Preview Lab → · Contrast checker → · Palette generator →

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