#D1C152#D1C152

#D1C152 is a light, vivid yellow. Relative luminance 0.523; OKLCH L 80.3% C 0.132 H 101.1°. Best body text is #000000 at 11.46:1 contrast (WCAG AA passes).

Color values

HEX#D1C152
RGBrgb(209, 193, 82)
HSLhsl(52, 58%, 57%)
HSVhsv(52, 61%, 82%)
CMYKcmyk(0%, 7.7%, 60.8%, 18%)
CIE-LABlab(77.46, -7.78, 56.47)
CIE-LCHlch(77.46, 57.01, 97.85°)
OKLaboklab(80.31% -0.0255 0.1296)
OKLCHoklch(80.31% 0.132 101.1)
XYZxyz(46.8892, 52.3063, 15.6073)
Luminance0.5230 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D1C152 #5262D1
analogous
#D18252 #D1C152 #A2D152
triadic
#D1C152 #52D1C1 #C152D1
tetradic
#D1C152 #52D182 #5262D1 #D152A2
square
#D1C152 #52D182 #5262D1 #D152A2
split-complementary
#D1C152 #52A2D1 #8252D1
monochromatic
#857923 #B6A530 #D1C152 #DED282 #EBE4B3

Accessibility & contrast

On white

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

On black

11.46
#D1C152 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D1C152
11.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D1C152#FFFFFF#000000##000000
##D1C1521.001.8311.4611.46
#FFFFFF1.831.0021.0021.00
#00000011.4621.001.001.00
##00000011.4621.001.001.00

Color blindness preview

Protanopia (red-blind)
#D2BC46
Deuteranopia (green-blind)
#D6C258
Tritanopia (blue-blind)
#E0B4A9
Achromatopsia (no color)
#BFBFBF

Design tokens & code

CSS
--color: #d1c152;
/* rgb */ color: rgb(209, 193, 82);
/* oklch */ color: oklch(80.3% 0.132 101.1);
Tailwind
colors: {
  custom: {
    50: '#e2d387',
    500: '#d1c152',
    950: '#000000',
  },
}
SCSS
$custom: #d1c152;
$custom-light: #e2d387;
$custom-dark: #000000;
JSON
{
  "hex": "#d1c152",
  "rgb": {
    "r": 209,
    "g": 193,
    "b": 82
  },
  "hsl": {
    "h": 52.441,
    "s": 57.991,
    "l": 57.059
  },
  "oklch": {
    "l": 0.80306,
    "c": 0.13206,
    "h": 101.1
  },
  "luminance": 0.52304
}

Semantic roles & 50–950 ramp

primary
#D1C152
secondary
#3B458C
accent
#5AE147
background
#FEFEFC
surface
#FCFBF3
border
#D5D4CD
text
#16140C
muted
#84837F

Preview Lab

Preview with #D1C152

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

Preview Lab → · Contrast checker → · Palette generator →

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