#D2C148#D2C148

#D2C148 is a light, vivid yellow. Relative luminance 0.523; OKLCH L 80.3% C 0.140 H 101.3°. Best body text is #000000 at 11.46:1 contrast (WCAG AA passes).

Color values

HEX#D2C148
RGBrgb(210, 193, 72)
HSLhsl(53, 61%, 55%)
HSVhsv(53, 66%, 82%)
CMYKcmyk(0%, 8.1%, 65.7%, 17.6%)
CIE-LABlab(77.47, -7.99, 60.78)
CIE-LCHlch(77.47, 61.31, 97.49°)
OKLaboklab(80.3% -0.0273 0.1372)
OKLCHoklch(80.3% 0.14 101.3)
XYZxyz(46.8200, 52.3114, 13.7605)
Luminance0.5231 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D2C148 #4859D2
analogous
#D27C48 #D2C148 #9ED248
triadic
#D2C148 #48D2C1 #C148D2
tetradic
#D2C148 #48D27C #4859D2 #D2489E
square
#D2C148 #48D27C #4859D2 #D2489E
split-complementary
#D2C148 #489ED2 #7C48D2
monochromatic
#807420 #B1A12C #D2C148 #DED279 #EAE2AA

Accessibility & contrast

On white

1.83
#D2C148 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

11.46
#D2C148 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D2C148
11.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D2C148#FFFFFF#000000##000000
##D2C1481.001.8311.4611.46
#FFFFFF1.831.0021.0021.00
#00000011.4621.001.001.00
##00000011.4621.001.001.00

Color blindness preview

Protanopia (red-blind)
#D2BB38
Deuteranopia (green-blind)
#D7C24F
Tritanopia (blue-blind)
#E1B4A8
Achromatopsia (no color)
#BFBFBF

Design tokens & code

CSS
--color: #d2c148;
/* rgb */ color: rgb(210, 193, 72);
/* oklch */ color: oklch(80.3% 0.140 101.3);
Tailwind
colors: {
  custom: {
    50: '#e3d381',
    500: '#d2c148',
    950: '#000000',
  },
}
SCSS
$custom: #d2c148;
$custom-light: #e3d381;
$custom-dark: #000000;
JSON
{
  "hex": "#d2c148",
  "rgb": {
    "r": 210,
    "g": 193,
    "b": 72
  },
  "hsl": {
    "h": 52.609,
    "s": 60.526,
    "l": 55.294
  },
  "oklch": {
    "l": 0.80302,
    "c": 0.13991,
    "h": 101.3
  },
  "luminance": 0.52309
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #D2C148

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

Preview Lab → · Contrast checker → · Palette generator →

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