#D7C261#D7C261

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

Color values

HEX#D7C261
RGBrgb(215, 194, 97)
HSLhsl(49, 60%, 61%)
HSVhsv(49, 55%, 84%)
CMYKcmyk(0%, 9.8%, 54.9%, 15.7%)
CIE-LABlab(78.40, -4.69, 50.80)
CIE-LCHlch(78.40, 51.01, 95.27°)
OKLaboklab(81.22% -0.0153 0.119)
OKLCHoklch(81.22% 0.12 97.3)
XYZxyz(49.4756, 53.8958, 19.1038)
Luminance0.5389 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D7C261 #6176D7
analogous
#D78761 #D7C261 #B1D761
triadic
#D7C261 #61D7C2 #C261D7
tetradic
#D7C261 #61D787 #6176D7 #D761B1
square
#D7C261 #61D787 #6176D7 #D761B1
split-complementary
#D7C261 #61B1D7 #8761D7
monochromatic
#978326 #C8AE33 #D7C261 #E3D592 #F0E8C3

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##D7C261#FFFFFF#000000##000000
##D7C2611.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)
#D2BE58
Deuteranopia (green-blind)
#D8C565
Tritanopia (blue-blind)
#E6B6AC
Achromatopsia (no color)
#C2C2C2

Design tokens & code

CSS
--color: #d7c261;
/* rgb */ color: rgb(215, 194, 97);
/* oklch */ color: oklch(81.2% 0.120 97.3);
Tailwind
colors: {
  custom: {
    50: '#e6d491',
    500: '#d7c261',
    950: '#000000',
  },
}
SCSS
$custom: #d7c261;
$custom-light: #e6d491;
$custom-dark: #000000;
JSON
{
  "hex": "#d7c261",
  "rgb": {
    "r": 215,
    "g": 194,
    "b": 97
  },
  "hsl": {
    "h": 49.322,
    "s": 59.596,
    "l": 61.176
  },
  "oklch": {
    "l": 0.81222,
    "c": 0.12002,
    "h": 97.3
  },
  "luminance": 0.53894
}

Semantic roles & 50–950 ramp

primary
#D7C261
secondary
#40519C
accent
#3CC71E
background
#FEFEFC
surface
#FDFBF4
border
#D5D4CE
text
#16140D
muted
#84837F

Preview Lab

Preview with #D7C261

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

Preview Lab → · Contrast checker → · Palette generator →

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