#D4C748#D4C748

#D4C748 is a light, vivid yellow. Relative luminance 0.553; OKLCH L 81.7% C 0.145 H 103.4°. Best body text is #000000 at 12.06:1 contrast (WCAG AA passes).

Color values

HEX#D4C748
RGBrgb(212, 199, 72)
HSLhsl(54, 62%, 56%)
HSVhsv(54, 66%, 83%)
CMYKcmyk(0%, 6.1%, 66%, 16.9%)
CIE-LABlab(79.22, -10.21, 62.66)
CIE-LCHlch(79.22, 63.49, 99.26°)
OKLaboklab(81.74% -0.0337 0.1411)
OKLCHoklch(81.74% 0.145 103.4)
XYZxyz(48.7464, 55.3137, 14.2385)
Luminance0.5531 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D4C748 #4855D4
analogous
#D48148 #D4C748 #9BD448
triadic
#D4C748 #48D4C7 #C748D4
tetradic
#D4C748 #48D481 #4855D4 #D4489B
square
#D4C748 #48D481 #4855D4 #D4489B
split-complementary
#D4C748 #489BD4 #8148D4
monochromatic
#837A1F #B4A82A #D4C748 #E0D67A #EBE5AB

Accessibility & contrast

On white

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

On black

12.06
#D4C748 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D4C748
12.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D4C748#FFFFFF#000000##000000
##D4C7481.001.7412.0612.06
#FFFFFF1.741.0021.0021.00
#00000012.0621.001.001.00
##00000012.0621.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #d4c748;
/* rgb */ color: rgb(212, 199, 72);
/* oklch */ color: oklch(81.7% 0.145 103.4);
Tailwind
colors: {
  custom: {
    50: '#e5d781',
    500: '#d4c748',
    950: '#000000',
  },
}
SCSS
$custom: #d4c748;
$custom-light: #e5d781;
$custom-dark: #000000;
JSON
{
  "hex": "#d4c748",
  "rgb": {
    "r": 212,
    "g": 199,
    "b": 72
  },
  "hsl": {
    "h": 54.429,
    "s": 61.947,
    "l": 55.686
  },
  "oklch": {
    "l": 0.81737,
    "c": 0.1451,
    "h": 103.4
  },
  "luminance": 0.55312
}

Semantic roles & 50–950 ramp

primary
#D4C748
secondary
#363E8A
accent
#52E543
background
#FFFEFB
surface
#FEFBF2
border
#D6D4CC
text
#16140B
muted
#85837E

Preview Lab

Preview with #D4C748

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

Preview Lab → · Contrast checker → · Palette generator →

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