#D1CC34#D1CC34

#D1CC34 is a very light, vivid yellow. Relative luminance 0.570; OKLCH L 82.4% C 0.162 H 107.5°. Best body text is #000000 at 12.40:1 contrast (WCAG AA passes).

Color values

HEX#D1CC34
RGBrgb(209, 204, 52)
HSLhsl(58, 63%, 51%)
HSVhsv(58, 75%, 82%)
CMYKcmyk(0%, 2.4%, 75.1%, 18%)
CIE-LABlab(80.17, -14.97, 70.75)
CIE-LCHlch(80.17, 72.32, 101.95°)
OKLaboklab(82.4% -0.0489 0.1549)
OKLCHoklch(82.4% 0.162 107.5)
XYZxyz(48.5091, 56.9907, 11.6932)
Luminance0.5699 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D1CC34 #3439D1
analogous
#D17D34 #D1CC34 #87D134
triadic
#D1CC34 #34D1CC #CC34D1
tetradic
#D1CC34 #34D17D #3439D1 #D13487
square
#D1CC34 #34D17D #3439D1 #D13487
split-complementary
#D1CC34 #3487D1 #7D34D1
monochromatic
#716E1A #A39F25 #D1CC34 #DCD966 #E8E598

Accessibility & contrast

On white

1.69
#D1CC34 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

12.40
#D1CC34 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D1CC34
12.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D1CC34#FFFFFF#000000##000000
##D1CC341.001.6912.4012.40
#FFFFFF1.691.0021.0021.00
#00000012.4021.001.001.00
##00000012.4021.001.001.00

Color blindness preview

Protanopia (red-blind)
#DDC40F
Deuteranopia (green-blind)
#E0C940
Tritanopia (blue-blind)
#E0BEAF
Achromatopsia (no color)
#C7C7C7

Design tokens & code

CSS
--color: #d1cc34;
/* rgb */ color: rgb(209, 204, 52);
/* oklch */ color: oklch(82.4% 0.162 107.5);
Tailwind
colors: {
  custom: {
    50: '#e3db77',
    500: '#d1cc34',
    950: '#000000',
  },
}
SCSS
$custom: #d1cc34;
$custom-light: #e3db77;
$custom-dark: #000000;
JSON
{
  "hex": "#d1cc34",
  "rgb": {
    "r": 209,
    "g": 204,
    "b": 52
  },
  "hsl": {
    "h": 58.089,
    "s": 63.052,
    "l": 51.176
  },
  "oklch": {
    "l": 0.82396,
    "c": 0.16243,
    "h": 107.5
  },
  "luminance": 0.56989
}

Semantic roles & 50–950 ramp

primary
#D1CC34
secondary
#2F327A
accent
#47E642
background
#FFFEFB
surface
#FEFBF1
border
#D6D4CB
text
#16140A
muted
#85837D

Preview Lab

Preview with #D1CC34

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

Preview Lab → · Contrast checker → · Palette generator →

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