#D4C248#D4C248

#D4C248 is a light, vivid yellow. Relative luminance 0.530; OKLCH L 80.7% C 0.141 H 100.8°. Best body text is #000000 at 11.61:1 contrast (WCAG AA passes).

Color values

HEX#D4C248
RGBrgb(212, 194, 72)
HSLhsl(52, 62%, 56%)
HSVhsv(52, 66%, 83%)
CMYKcmyk(0%, 8.5%, 66%, 16.9%)
CIE-LABlab(77.90, -7.66, 61.29)
CIE-LCHlch(77.90, 61.77, 97.12°)
OKLaboklab(80.69% -0.0265 0.1382)
OKLCHoklch(80.69% 0.141 100.8)
XYZxyz(47.6149, 53.0506, 13.8613)
Luminance0.5305 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D4C248 #485AD4
analogous
#D47C48 #D4C248 #A0D448
triadic
#D4C248 #48D4C2 #C248D4
tetradic
#D4C248 #48D47C #485AD4 #D448A0
square
#D4C248 #48D47C #485AD4 #D448A0
split-complementary
#D4C248 #48A0D4 #7C48D4
monochromatic
#83761F #B4A32A #D4C248 #E0D37A #EBE3AB

Accessibility & contrast

On white

1.81
#D4C248 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

11.61
#D4C248 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D4C248
11.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D4C248#FFFFFF#000000##000000
##D4C2481.001.8111.6111.61
#FFFFFF1.811.0021.0021.00
#00000011.6121.001.001.00
##00000011.6121.001.001.00

Color blindness preview

Protanopia (red-blind)
#D3BD38
Deuteranopia (green-blind)
#D9C44F
Tritanopia (blue-blind)
#E4B5A9
Achromatopsia (no color)
#C1C1C1

Design tokens & code

CSS
--color: #d4c248;
/* rgb */ color: rgb(212, 194, 72);
/* oklch */ color: oklch(80.7% 0.141 100.8);
Tailwind
colors: {
  custom: {
    50: '#e5d481',
    500: '#d4c248',
    950: '#000000',
  },
}
SCSS
$custom: #d4c248;
$custom-light: #e5d481;
$custom-dark: #000000;
JSON
{
  "hex": "#d4c248",
  "rgb": {
    "r": 212,
    "g": 194,
    "b": 72
  },
  "hsl": {
    "h": 52.286,
    "s": 61.947,
    "l": 55.686
  },
  "oklch": {
    "l": 0.80691,
    "c": 0.14075,
    "h": 100.8
  },
  "luminance": 0.53049
}

Semantic roles & 50–950 ramp

primary
#D4C248
secondary
#36418A
accent
#58E543
background
#FFFEFB
surface
#FEFBF2
border
#D6D4CC
text
#16140B
muted
#85837E

Preview Lab

Preview with #D4C248

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

Preview Lab → · Contrast checker → · Palette generator →

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