#D4D74F#D4D74F

#D4D74F is a very light, vivid yellow. Relative luminance 0.632; OKLCH L 85.2% C 0.156 H 110.5°. Best body text is #000000 at 13.63:1 contrast (WCAG AA passes).

Color values

HEX#D4D74F
RGBrgb(212, 215, 79)
HSLhsl(61, 63%, 58%)
HSVhsv(61, 63%, 84%)
CMYKcmyk(1.4%, 0%, 63.3%, 15.7%)
CIE-LABlab(83.53, -17.81, 64.32)
CIE-LCHlch(83.53, 66.74, 105.48°)
OKLaboklab(85.19% -0.0545 0.1457)
OKLCHoklch(85.19% 0.156 110.5)
XYZxyz(52.8647, 63.1638, 16.8027)
Luminance0.6316 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D4D74F #524FD7
analogous
#D7964F #D4D74F #90D74F
triadic
#D4D74F #4FD4D7 #D74FD4
tetradic
#D4D74F #4FD796 #524FD7 #D74F90
square
#D4D74F #4FD796 #524FD7 #D74F90
split-complementary
#D4D74F #4F90D7 #964FD7
monochromatic
#898C20 #BABE2B #D4D74F #E0E281 #ECEEB3

Accessibility & contrast

On white

1.54
#D4D74F on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

13.63
#D4D74F on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D4D74F
13.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D4D74F#FFFFFF#000000##000000
##D4D74F1.001.5413.6313.63
#FFFFFF1.541.0021.0021.00
#00000013.6321.001.001.00
##00000013.6321.001.001.00

Color blindness preview

Protanopia (red-blind)
#E7CE3D
Deuteranopia (green-blind)
#E8D258
Tritanopia (blue-blind)
#E2CABB
Achromatopsia (no color)
#D0D0D0

Design tokens & code

CSS
--color: #d4d74f;
/* rgb */ color: rgb(212, 215, 79);
/* oklch */ color: oklch(85.2% 0.156 110.5);
Tailwind
colors: {
  custom: {
    50: '#e4e387',
    500: '#d4d74f',
    950: '#000000',
  },
}
SCSS
$custom: #d4d74f;
$custom-light: #e4e387;
$custom-dark: #000000;
JSON
{
  "hex": "#d4d74f",
  "rgb": {
    "r": 212,
    "g": 215,
    "b": 79
  },
  "hsl": {
    "h": 61.324,
    "s": 62.963,
    "l": 57.647
  },
  "oklch": {
    "l": 0.85187,
    "c": 0.15556,
    "h": 110.5
  },
  "luminance": 0.63162
}

Semantic roles & 50–950 ramp

primary
#D4D74F
secondary
#3B3992
accent
#42E645
background
#FEFEFC
surface
#FDFCF4
border
#D5D5CE
text
#16150C
muted
#84847F

Preview Lab

Preview with #D4D74F

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

Preview Lab → · Contrast checker → · Palette generator →

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