#D0C948#D0C948

#D0C948 is a light, vivid yellow. Relative luminance 0.557; OKLCH L 81.8% C 0.147 H 106.2°. Best body text is #000000 at 12.13:1 contrast (WCAG AA passes).

Color values

HEX#D0C948
RGBrgb(208, 201, 72)
HSLhsl(57, 59%, 55%)
HSVhsv(57, 65%, 82%)
CMYKcmyk(0%, 3.4%, 65.4%, 18.4%)
CIE-LABlab(79.42, -12.91, 62.76)
CIE-LCHlch(79.42, 64.07, 101.62°)
OKLaboklab(81.81% -0.0411 0.1414)
OKLCHoklch(81.81% 0.147 106.2)
XYZxyz(48.0705, 55.6527, 14.3395)
Luminance0.5565 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D0C948 #484FD0
analogous
#D08548 #D0C948 #93D048
triadic
#D0C948 #48D0C9 #C948D0
tetradic
#D0C948 #48D085 #484FD0 #D04893
square
#D0C948 #48D085 #484FD0 #D04893
split-complementary
#D0C948 #4893D0 #8548D0
monochromatic
#7D7920 #AEA72D #D0C948 #DDD779 #E9E6A9

Accessibility & contrast

On white

1.73
#D0C948 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

12.13
#D0C948 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D0C948
12.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D0C948#FFFFFF#000000##000000
##D0C9481.001.7312.1312.13
#FFFFFF1.731.0021.0021.00
#00000012.1321.001.001.00
##00000012.1321.001.001.00

Color blindness preview

Protanopia (red-blind)
#DAC237
Deuteranopia (green-blind)
#DDC750
Tritanopia (blue-blind)
#DFBCAF
Achromatopsia (no color)
#C5C5C5

Design tokens & code

CSS
--color: #d0c948;
/* rgb */ color: rgb(208, 201, 72);
/* oklch */ color: oklch(81.8% 0.147 106.2);
Tailwind
colors: {
  custom: {
    50: '#e2d982',
    500: '#d0c948',
    950: '#000000',
  },
}
SCSS
$custom: #d0c948;
$custom-light: #e2d982;
$custom-dark: #000000;
JSON
{
  "hex": "#d0c948",
  "rgb": {
    "r": 208,
    "g": 201,
    "b": 72
  },
  "hsl": {
    "h": 56.912,
    "s": 59.13,
    "l": 54.902
  },
  "oklch": {
    "l": 0.81811,
    "c": 0.1473,
    "h": 106.2
  },
  "luminance": 0.55651
}

Semantic roles & 50–950 ramp

primary
#D0C948
secondary
#373B85
accent
#4EE245
background
#FEFEFB
surface
#FDFBF2
border
#D5D4CC
text
#16140B
muted
#84837E

Preview Lab

Preview with #D0C948

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

Preview Lab → · Contrast checker → · Palette generator →

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