#D7C262#D7C262

#D7C262 is a light, moderate yellow. Relative luminance 0.539; OKLCH L 81.2% C 0.119 H 97.2°. Best body text is #000000 at 11.78:1 contrast (WCAG AA passes).

Color values

HEX#D7C262
RGBrgb(215, 194, 98)
HSLhsl(49, 59%, 61%)
HSVhsv(49, 54%, 84%)
CMYKcmyk(0%, 9.8%, 54.4%, 15.7%)
CIE-LABlab(78.41, -4.61, 50.33)
CIE-LCHlch(78.41, 50.54, 95.23°)
OKLaboklab(81.23% -0.0149 0.1181)
OKLCHoklch(81.23% 0.119 97.2)
XYZxyz(49.5225, 53.9146, 19.3509)
Luminance0.5391 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D7C262 #6277D7
analogous
#D78862 #D7C262 #B2D762
triadic
#D7C262 #62D7C2 #C262D7
tetradic
#D7C262 #62D788 #6277D7 #D762B2
square
#D7C262 #62D788 #6277D7 #D762B2
split-complementary
#D7C262 #62B2D7 #8862D7
monochromatic
#988427 #C9AE33 #D7C262 #E3D593 #F0E8C4

Accessibility & contrast

On white

1.78
#D7C262 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

11.78
#D7C262 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D7C262
11.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D7C262#FFFFFF#000000##000000
##D7C2621.001.7811.7811.78
#FFFFFF1.781.0021.0021.00
#00000011.7821.001.001.00
##00000011.7821.001.001.00

Color blindness preview

Protanopia (red-blind)
#D2BE59
Deuteranopia (green-blind)
#D8C566
Tritanopia (blue-blind)
#E6B6AC
Achromatopsia (no color)
#C2C2C2

Design tokens & code

CSS
--color: #d7c262;
/* rgb */ color: rgb(215, 194, 98);
/* oklch */ color: oklch(81.2% 0.119 97.2);
Tailwind
colors: {
  custom: {
    50: '#e6d491',
    500: '#d7c262',
    950: '#000000',
  },
}
SCSS
$custom: #d7c262;
$custom-light: #e6d491;
$custom-dark: #000000;
JSON
{
  "hex": "#d7c262",
  "rgb": {
    "r": 215,
    "g": 194,
    "b": 98
  },
  "hsl": {
    "h": 49.231,
    "s": 59.391,
    "l": 61.373
  },
  "oklch": {
    "l": 0.81234,
    "c": 0.11908,
    "h": 97.2
  },
  "luminance": 0.53912
}

Semantic roles & 50–950 ramp

primary
#D7C262
secondary
#41519D
accent
#3DC71E
background
#FEFEFC
surface
#FDFBF4
border
#D5D4CE
text
#16140D
muted
#84837F

Preview Lab

Preview with #D7C262

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

Preview Lab → · Contrast checker → · Palette generator →

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