#D2C848#D2C848

#D2C848 is a light, vivid yellow. Relative luminance 0.555; OKLCH L 81.8% C 0.146 H 104.8°. Best body text is #000000 at 12.10:1 contrast (WCAG AA passes).

Color values

HEX#D2C848
RGBrgb(210, 200, 72)
HSLhsl(56, 61%, 55%)
HSVhsv(56, 66%, 82%)
CMYKcmyk(0%, 4.8%, 65.7%, 17.6%)
CIE-LABlab(79.32, -11.56, 62.71)
CIE-LCHlch(79.32, 63.76, 100.45°)
OKLaboklab(81.77% -0.0374 0.1413)
OKLCHoklch(81.77% 0.146 104.8)
XYZxyz(48.4042, 55.4798, 14.2886)
Luminance0.5548 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D2C848 #4852D2
analogous
#D28348 #D2C848 #97D248
triadic
#D2C848 #48D2C8 #C848D2
tetradic
#D2C848 #48D283 #4852D2 #D24897
square
#D2C848 #48D283 #4852D2 #D24897
split-complementary
#D2C848 #4897D2 #8348D2
monochromatic
#807920 #B1A82C #D2C848 #DED779 #EAE6AA

Accessibility & contrast

On white

1.74
#D2C848 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

12.10
#D2C848 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D2C848
12.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D2C848#FFFFFF#000000##000000
##D2C8481.001.7412.1012.10
#FFFFFF1.741.0021.0021.00
#00000012.1021.001.001.00
##00000012.1021.001.001.00

Color blindness preview

Protanopia (red-blind)
#D9C137
Deuteranopia (green-blind)
#DCC750
Tritanopia (blue-blind)
#E1BBAE
Achromatopsia (no color)
#C4C4C4

Design tokens & code

CSS
--color: #d2c848;
/* rgb */ color: rgb(210, 200, 72);
/* oklch */ color: oklch(81.8% 0.146 104.8);
Tailwind
colors: {
  custom: {
    50: '#e3d881',
    500: '#d2c848',
    950: '#000000',
  },
}
SCSS
$custom: #d2c848;
$custom-light: #e3d881;
$custom-dark: #000000;
JSON
{
  "hex": "#d2c848",
  "rgb": {
    "r": 210,
    "g": 200,
    "b": 72
  },
  "hsl": {
    "h": 55.652,
    "s": 60.526,
    "l": 55.294
  },
  "oklch": {
    "l": 0.81772,
    "c": 0.14616,
    "h": 104.8
  },
  "luminance": 0.55478
}

Semantic roles & 50–950 ramp

primary
#D2C848
secondary
#373D87
accent
#50E444
background
#FEFEFB
surface
#FDFBF2
border
#D5D4CC
text
#16140B
muted
#84837E

Preview Lab

Preview with #D2C848

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

Preview Lab → · Contrast checker → · Palette generator →

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