#D2C248#D2C248

#D2C248 is a light, vivid yellow. Relative luminance 0.528; OKLCH L 80.5% C 0.141 H 101.8°. Best body text is #000000 at 11.55:1 contrast (WCAG AA passes).

Color values

HEX#D2C248
RGBrgb(210, 194, 72)
HSLhsl(53, 61%, 55%)
HSVhsv(53, 66%, 82%)
CMYKcmyk(0%, 7.6%, 65.7%, 17.6%)
CIE-LABlab(77.73, -8.50, 61.06)
CIE-LCHlch(77.73, 61.65, 97.93°)
OKLaboklab(80.51% -0.0288 0.1378)
OKLCHoklch(80.51% 0.141 101.8)
XYZxyz(47.0418, 52.7550, 13.8345)
Luminance0.5275 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D2C248 #4858D2
analogous
#D27D48 #D2C248 #9DD248
triadic
#D2C248 #48D2C2 #C248D2
tetradic
#D2C248 #48D27D #4858D2 #D2489D
square
#D2C248 #48D27D #4858D2 #D2489D
split-complementary
#D2C248 #489DD2 #7D48D2
monochromatic
#807520 #B1A22C #D2C248 #DED279 #EAE3AA

Accessibility & contrast

On white

1.82
#D2C248 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

11.55
#D2C248 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D2C248
11.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D2C248#FFFFFF#000000##000000
##D2C2481.001.8211.5511.55
#FFFFFF1.821.0021.0021.00
#00000011.5521.001.001.00
##00000011.5521.001.001.00

Color blindness preview

Protanopia (red-blind)
#D3BC38
Deuteranopia (green-blind)
#D8C34F
Tritanopia (blue-blind)
#E1B5A9
Achromatopsia (no color)
#C0C0C0

Design tokens & code

CSS
--color: #d2c248;
/* rgb */ color: rgb(210, 194, 72);
/* oklch */ color: oklch(80.5% 0.141 101.8);
Tailwind
colors: {
  custom: {
    50: '#e3d481',
    500: '#d2c248',
    950: '#000000',
  },
}
SCSS
$custom: #d2c248;
$custom-light: #e3d481;
$custom-dark: #000000;
JSON
{
  "hex": "#d2c248",
  "rgb": {
    "r": 210,
    "g": 194,
    "b": 72
  },
  "hsl": {
    "h": 53.043,
    "s": 60.526,
    "l": 55.294
  },
  "oklch": {
    "l": 0.80511,
    "c": 0.14077,
    "h": 101.8
  },
  "luminance": 0.52753
}

Semantic roles & 50–950 ramp

primary
#D2C248
secondary
#374087
accent
#57E444
background
#FEFEFB
surface
#FDFBF2
border
#D5D4CC
text
#16140B
muted
#84837E

Preview Lab

Preview with #D2C248

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

Preview Lab → · Contrast checker → · Palette generator →

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