#D4C148#D4C148

#D4C148 is a light, vivid yellow. Relative luminance 0.526; OKLCH L 80.5% C 0.140 H 100.3°. Best body text is #000000 at 11.52:1 contrast (WCAG AA passes).

Color values

HEX#D4C148
RGBrgb(212, 193, 72)
HSLhsl(52, 62%, 56%)
HSVhsv(52, 66%, 83%)
CMYKcmyk(0%, 9%, 66%, 16.9%)
CIE-LABlab(77.64, -7.14, 61.02)
CIE-LCHlch(77.64, 61.44, 96.68°)
OKLaboklab(80.48% -0.025 0.1377)
OKLCHoklch(80.48% 0.14 100.3)
XYZxyz(47.3931, 52.6069, 13.7874)
Luminance0.5261 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D4C148 #485BD4
analogous
#D47B48 #D4C148 #A1D448
triadic
#D4C148 #48D4C1 #C148D4
tetradic
#D4C148 #48D47B #485BD4 #D448A1
square
#D4C148 #48D47B #485BD4 #D448A1
split-complementary
#D4C148 #48A1D4 #7B48D4
monochromatic
#83751F #B4A22A #D4C148 #E0D27A #EBE3AB

Accessibility & contrast

On white

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

On black

11.52
#D4C148 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D4C148
11.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D4C148#FFFFFF#000000##000000
##D4C1481.001.8211.5211.52
#FFFFFF1.821.0021.0021.00
#00000011.5221.001.001.00
##00000011.5221.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #d4c148;
/* rgb */ color: rgb(212, 193, 72);
/* oklch */ color: oklch(80.5% 0.140 100.3);
Tailwind
colors: {
  custom: {
    50: '#e5d381',
    500: '#d4c148',
    950: '#000000',
  },
}
SCSS
$custom: #d4c148;
$custom-light: #e5d381;
$custom-dark: #000000;
JSON
{
  "hex": "#d4c148",
  "rgb": {
    "r": 212,
    "g": 193,
    "b": 72
  },
  "hsl": {
    "h": 51.857,
    "s": 61.947,
    "l": 55.686
  },
  "oklch": {
    "l": 0.80483,
    "c": 0.13992,
    "h": 100.3
  },
  "luminance": 0.52605
}

Semantic roles & 50–950 ramp

primary
#D4C148
secondary
#36428A
accent
#59E543
background
#FFFEFB
surface
#FEFBF2
border
#D6D4CC
text
#16140B
muted
#85837E

Preview Lab

Preview with #D4C148

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

Preview Lab → · Contrast checker → · Palette generator →

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