#D2C048#D2C048

#D2C048 is a light, vivid yellow. Relative luminance 0.519; OKLCH L 80.1% C 0.139 H 100.7°. Best body text is #000000 at 11.37:1 contrast (WCAG AA passes).

Color values

HEX#D2C048
RGBrgb(210, 192, 72)
HSLhsl(52, 61%, 55%)
HSVhsv(52, 66%, 82%)
CMYKcmyk(0%, 8.6%, 65.7%, 17.6%)
CIE-LABlab(77.20, -7.48, 60.51)
CIE-LCHlch(77.20, 60.97, 97.04°)
OKLaboklab(80.09% -0.0258 0.1366)
OKLCHoklch(80.09% 0.139 100.7)
XYZxyz(46.5996, 51.8708, 13.6871)
Luminance0.5187 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D2C048 #485AD2
analogous
#D27B48 #D2C048 #9FD248
triadic
#D2C048 #48D2C0 #C048D2
tetradic
#D2C048 #48D27B #485AD2 #D2489F
square
#D2C048 #48D27B #485AD2 #D2489F
split-complementary
#D2C048 #489FD2 #7B48D2
monochromatic
#807320 #B1A02C #D2C048 #DED179 #EAE2AA

Accessibility & contrast

On white

1.85
#D2C048 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

11.37
#D2C048 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D2C048
11.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D2C048#FFFFFF#000000##000000
##D2C0481.001.8511.3711.37
#FFFFFF1.851.0021.0021.00
#00000011.3721.001.001.00
##00000011.3721.001.001.00

Color blindness preview

Protanopia (red-blind)
#D1BB39
Deuteranopia (green-blind)
#D6C24F
Tritanopia (blue-blind)
#E2B3A7
Achromatopsia (no color)
#BFBFBF

Design tokens & code

CSS
--color: #d2c048;
/* rgb */ color: rgb(210, 192, 72);
/* oklch */ color: oklch(80.1% 0.139 100.7);
Tailwind
colors: {
  custom: {
    50: '#e3d281',
    500: '#d2c048',
    950: '#000000',
  },
}
SCSS
$custom: #d2c048;
$custom-light: #e3d281;
$custom-dark: #000000;
JSON
{
  "hex": "#d2c048",
  "rgb": {
    "r": 210,
    "g": 192,
    "b": 72
  },
  "hsl": {
    "h": 52.174,
    "s": 60.526,
    "l": 55.294
  },
  "oklch": {
    "l": 0.80093,
    "c": 0.13906,
    "h": 100.7
  },
  "luminance": 0.51869
}

Semantic roles & 50–950 ramp

primary
#D2C048
secondary
#374187
accent
#59E444
background
#FEFEFB
surface
#FDFBF2
border
#D5D4CC
text
#16140B
muted
#84837E

Preview Lab

Preview with #D2C048

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

Preview Lab → · Contrast checker → · Palette generator →

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