#D2CC48#D2CC48

#D2CC48 is a very light, vivid yellow. Relative luminance 0.574; OKLCH L 82.6% C 0.150 H 106.7°. Best body text is #000000 at 12.47:1 contrast (WCAG AA passes).

Color values

HEX#D2CC48
RGBrgb(210, 204, 72)
HSLhsl(57, 61%, 55%)
HSVhsv(57, 66%, 82%)
CMYKcmyk(0%, 2.9%, 65.7%, 17.6%)
CIE-LABlab(80.38, -13.58, 63.80)
CIE-LCHlch(80.38, 65.23, 102.02°)
OKLaboklab(82.62% -0.0432 0.1436)
OKLCHoklch(82.62% 0.15 106.7)
XYZxyz(49.3427, 57.3569, 14.6015)
Luminance0.5736 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D2CC48 #484ED2
analogous
#D28748 #D2CC48 #93D248
triadic
#D2CC48 #48D2CC #CC48D2
tetradic
#D2CC48 #48D287 #484ED2 #D24893
square
#D2CC48 #48D287 #484ED2 #D24893
split-complementary
#D2CC48 #4893D2 #8748D2
monochromatic
#807C20 #B1AB2C #D2CC48 #DEDA79 #EAE7AA

Accessibility & contrast

On white

1.68
#D2CC48 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

12.47
#D2CC48 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D2CC48
12.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D2CC48#FFFFFF#000000##000000
##D2CC481.001.6812.4712.47
#FFFFFF1.681.0021.0021.00
#00000012.4721.001.001.00
##00000012.4721.001.001.00

Color blindness preview

Protanopia (red-blind)
#DDC436
Deuteranopia (green-blind)
#DFCA50
Tritanopia (blue-blind)
#E1BFB1
Achromatopsia (no color)
#C7C7C7

Design tokens & code

CSS
--color: #d2cc48;
/* rgb */ color: rgb(210, 204, 72);
/* oklch */ color: oklch(82.6% 0.150 106.7);
Tailwind
colors: {
  custom: {
    50: '#e3db82',
    500: '#d2cc48',
    950: '#000000',
  },
}
SCSS
$custom: #d2cc48;
$custom-light: #e3db82;
$custom-dark: #000000;
JSON
{
  "hex": "#d2cc48",
  "rgb": {
    "r": 210,
    "g": 204,
    "b": 72
  },
  "hsl": {
    "h": 57.391,
    "s": 60.526,
    "l": 55.294
  },
  "oklch": {
    "l": 0.82619,
    "c": 0.14994,
    "h": 106.7
  },
  "luminance": 0.57355
}

Semantic roles & 50–950 ramp

primary
#D2CC48
secondary
#373A87
accent
#4BE444
background
#FEFEFB
surface
#FDFBF2
border
#D5D4CC
text
#16140B
muted
#84837E

Preview Lab

Preview with #D2CC48

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

Preview Lab → · Contrast checker → · Palette generator →

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