#D5C262#D5C262

#D5C262 is a light, moderate yellow. Relative luminance 0.536; OKLCH L 81.1% C 0.119 H 98.3°. Best body text is #000000 at 11.72:1 contrast (WCAG AA passes).

Color values

HEX#D5C262
RGBrgb(213, 194, 98)
HSLhsl(50, 58%, 61%)
HSVhsv(50, 54%, 84%)
CMYKcmyk(0%, 8.9%, 54%, 16.5%)
CIE-LABlab(78.24, -5.44, 50.08)
CIE-LCHlch(78.24, 50.38, 96.20°)
OKLaboklab(81.05% -0.0172 0.1176)
OKLCHoklch(81.05% 0.119 98.3)
XYZxyz(48.9387, 53.6135, 19.3235)
Luminance0.5361 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D5C262 #6275D5
analogous
#D58862 #D5C262 #AED562
triadic
#D5C262 #62D5C2 #C262D5
tetradic
#D5C262 #62D588 #6275D5 #D562AE
square
#D5C262 #62D588 #6275D5 #D562AE
split-complementary
#D5C262 #62AED5 #8862D5
monochromatic
#958328 #C5AD35 #D5C262 #E2D592 #EFE8C3

Accessibility & contrast

On white

1.79
#D5C262 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

11.72
#D5C262 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D5C262
11.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D5C262#FFFFFF#000000##000000
##D5C2621.001.7911.7211.72
#FFFFFF1.791.0021.0021.00
#00000011.7221.001.001.00
##00000011.7221.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #d5c262;
/* rgb */ color: rgb(213, 194, 98);
/* oklch */ color: oklch(81.1% 0.119 98.3);
Tailwind
colors: {
  custom: {
    50: '#e4d491',
    500: '#d5c262',
    950: '#000000',
  },
}
SCSS
$custom: #d5c262;
$custom-light: #e4d491;
$custom-dark: #000000;
JSON
{
  "hex": "#d5c262",
  "rgb": {
    "r": 213,
    "g": 194,
    "b": 98
  },
  "hsl": {
    "h": 50.087,
    "s": 57.789,
    "l": 60.98
  },
  "oklch": {
    "l": 0.81053,
    "c": 0.11889,
    "h": 98.3
  },
  "luminance": 0.53612
}

Semantic roles & 50–950 ramp

primary
#D5C262
secondary
#41509A
accent
#3BC520
background
#FEFEFC
surface
#FDFBF4
border
#D5D4CE
text
#16140D
muted
#84837F

Preview Lab

Preview with #D5C262

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

Preview Lab → · Contrast checker → · Palette generator →

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