#D7C331#D7C331

#D7C331 is a light, vivid yellow. Relative luminance 0.537; OKLCH L 81.0% C 0.156 H 101.1°. Best body text is #000000 at 11.74:1 contrast (WCAG AA passes).

Color values

HEX#D7C331
RGBrgb(215, 195, 49)
HSLhsl(53, 67%, 52%)
HSVhsv(53, 77%, 84%)
CMYKcmyk(0%, 9.3%, 77.2%, 15.7%)
CIE-LABlab(78.29, -7.97, 70.16)
CIE-LCHlch(78.29, 70.62, 96.48°)
OKLaboklab(81.01% -0.0299 0.1528)
OKLCHoklch(81.01% 0.156 101.1)
XYZxyz(48.0962, 53.7013, 10.7371)
Luminance0.5370 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D7C331 #3145D7
analogous
#D77031 #D7C331 #98D731
triadic
#D7C331 #31D7C3 #C331D7
tetradic
#D7C331 #31D770 #3145D7 #D73198
square
#D7C331 #31D770 #3145D7 #D73198
split-complementary
#D7C331 #3198D7 #7031D7
monochromatic
#776B17 #AA9921 #D7C331 #E1D264 #EBE197

Accessibility & contrast

On white

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

On black

11.74
#D7C331 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D7C331
11.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D7C331#FFFFFF#000000##000000
##D7C3311.001.7911.7411.74
#FFFFFF1.791.0021.0021.00
#00000011.7421.001.001.00
##00000011.7421.001.001.00

Color blindness preview

Protanopia (red-blind)
#D6BD0B
Deuteranopia (green-blind)
#DCC53C
Tritanopia (blue-blind)
#E8B4A8
Achromatopsia (no color)
#C2C2C2

Design tokens & code

CSS
--color: #d7c331;
/* rgb */ color: rgb(215, 195, 49);
/* oklch */ color: oklch(81.0% 0.156 101.1);
Tailwind
colors: {
  custom: {
    50: '#e8d475',
    500: '#d7c331',
    950: '#000000',
  },
}
SCSS
$custom: #d7c331;
$custom-light: #e8d475;
$custom-dark: #000000;
JSON
{
  "hex": "#d7c331",
  "rgb": {
    "r": 215,
    "g": 195,
    "b": 49
  },
  "hsl": {
    "h": 52.771,
    "s": 67.48,
    "l": 51.765
  },
  "oklch": {
    "l": 0.81012,
    "c": 0.15571,
    "h": 101.1
  },
  "luminance": 0.53699
}

Semantic roles & 50–950 ramp

primary
#D7C331
secondary
#2D377F
accent
#52EA3D
background
#FFFEFB
surface
#FEFBF1
border
#D6D4CB
text
#171409
muted
#85837D

Preview Lab

Preview with #D7C331

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

Preview Lab → · Contrast checker → · Palette generator →

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