#D2C548#D2C548

#D2C548 is a light, vivid yellow. Relative luminance 0.541; OKLCH L 81.1% C 0.143 H 103.4°. Best body text is #000000 at 11.82:1 contrast (WCAG AA passes).

Color values

HEX#D2C548
RGBrgb(210, 197, 72)
HSLhsl(54, 61%, 55%)
HSVhsv(54, 66%, 82%)
CMYKcmyk(0%, 6.2%, 65.7%, 17.6%)
CIE-LABlab(78.52, -10.04, 61.88)
CIE-LCHlch(78.52, 62.69, 99.21°)
OKLaboklab(81.14% -0.0331 0.1395)
OKLCHoklch(81.14% 0.143 103.4)
XYZxyz(47.7162, 54.1039, 14.0593)
Luminance0.5410 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D2C548 #4855D2
analogous
#D28048 #D2C548 #9AD248
triadic
#D2C548 #48D2C5 #C548D2
tetradic
#D2C548 #48D280 #4855D2 #D2489A
square
#D2C548 #48D280 #4855D2 #D2489A
split-complementary
#D2C548 #489AD2 #8048D2
monochromatic
#807720 #B1A52C #D2C548 #DED579 #EAE4AA

Accessibility & contrast

On white

1.78
#D2C548 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

11.82
#D2C548 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D2C548
11.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D2C548#FFFFFF#000000##000000
##D2C5481.001.7811.8211.82
#FFFFFF1.781.0021.0021.00
#00000011.8221.001.001.00
##00000011.8221.001.001.00

Color blindness preview

Protanopia (red-blind)
#D6BF37
Deuteranopia (green-blind)
#DAC54F
Tritanopia (blue-blind)
#E1B8AB
Achromatopsia (no color)
#C2C2C2

Design tokens & code

CSS
--color: #d2c548;
/* rgb */ color: rgb(210, 197, 72);
/* oklch */ color: oklch(81.1% 0.143 103.4);
Tailwind
colors: {
  custom: {
    50: '#e3d681',
    500: '#d2c548',
    950: '#000000',
  },
}
SCSS
$custom: #d2c548;
$custom-light: #e3d681;
$custom-dark: #000000;
JSON
{
  "hex": "#d2c548",
  "rgb": {
    "r": 210,
    "g": 197,
    "b": 72
  },
  "hsl": {
    "h": 54.348,
    "s": 60.526,
    "l": 55.294
  },
  "oklch": {
    "l": 0.8114,
    "c": 0.14342,
    "h": 103.4
  },
  "luminance": 0.54102
}

Semantic roles & 50–950 ramp

primary
#D2C548
secondary
#373E87
accent
#53E444
background
#FEFEFB
surface
#FDFBF2
border
#D5D4CC
text
#16140B
muted
#84837E

Preview Lab

Preview with #D2C548

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

Preview Lab → · Contrast checker → · Palette generator →

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