#D4C262#D4C262

#D4C262 is a light, moderate yellow. Relative luminance 0.535; OKLCH L 81.0% C 0.119 H 98.9°. Best body text is #000000 at 11.69:1 contrast (WCAG AA passes).

Color values

HEX#D4C262
RGBrgb(212, 194, 98)
HSLhsl(51, 57%, 61%)
HSVhsv(51, 54%, 83%)
CMYKcmyk(0%, 8.5%, 53.8%, 16.9%)
CIE-LABlab(78.15, -5.85, 49.96)
CIE-LCHlch(78.15, 50.30, 96.68°)
OKLaboklab(80.96% -0.0184 0.1174)
OKLCHoklch(80.96% 0.119 98.9)
XYZxyz(48.6494, 53.4644, 19.3100)
Luminance0.5346 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D4C262 #6274D4
analogous
#D48962 #D4C262 #ADD462
triadic
#D4C262 #62D4C2 #C262D4
tetradic
#D4C262 #62D489 #6274D4 #D462AD
square
#D4C262 #62D489 #6274D4 #D462AD
split-complementary
#D4C262 #62ADD4 #8962D4
monochromatic
#938228 #C3AD35 #D4C262 #E1D592 #EEE7C2

Accessibility & contrast

On white

1.80
#D4C262 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

11.69
#D4C262 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D4C262
11.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D4C262#FFFFFF#000000##000000
##D4C2621.001.8011.6911.69
#FFFFFF1.801.0021.0021.00
#00000011.6921.001.001.00
##00000011.6921.001.001.00

Color blindness preview

Protanopia (red-blind)
#D2BD59
Deuteranopia (green-blind)
#D7C466
Tritanopia (blue-blind)
#E2B6AC
Achromatopsia (no color)
#C1C1C1

Design tokens & code

CSS
--color: #d4c262;
/* rgb */ color: rgb(212, 194, 98);
/* oklch */ color: oklch(81.0% 0.119 98.9);
Tailwind
colors: {
  custom: {
    50: '#e4d491',
    500: '#d4c262',
    950: '#000000',
  },
}
SCSS
$custom: #d4c262;
$custom-light: #e4d491;
$custom-dark: #000000;
JSON
{
  "hex": "#d4c262",
  "rgb": {
    "r": 212,
    "g": 194,
    "b": 98
  },
  "hsl": {
    "h": 50.526,
    "s": 57,
    "l": 60.784
  },
  "oklch": {
    "l": 0.80963,
    "c": 0.11882,
    "h": 98.9
  },
  "luminance": 0.53462
}

Semantic roles & 50–950 ramp

primary
#D4C262
secondary
#424F99
accent
#3BC521
background
#FEFEFC
surface
#FDFBF4
border
#D5D4CE
text
#16140D
muted
#84837F

Preview Lab

Preview with #D4C262

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

Preview Lab → · Contrast checker → · Palette generator →

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