#D3C151#D3C151

#D3C151 is a light, vivid yellow. Relative luminance 0.526; OKLCH L 80.5% C 0.133 H 100.2°. Best body text is #000000 at 11.52:1 contrast (WCAG AA passes).

Color values

HEX#D3C151
RGBrgb(211, 193, 81)
HSLhsl(52, 60%, 57%)
HSVhsv(52, 62%, 83%)
CMYKcmyk(0%, 8.5%, 61.6%, 17.3%)
CIE-LABlab(77.63, -7.01, 57.15)
CIE-LCHlch(77.63, 57.58, 96.99°)
OKLaboklab(80.48% -0.0236 0.1308)
OKLCHoklch(80.48% 0.133 100.2)
XYZxyz(47.4210, 52.5849, 15.4350)
Luminance0.5258 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D3C151 #5163D3
analogous
#D38051 #D3C151 #A4D351
triadic
#D3C151 #51D3C1 #C151D3
tetradic
#D3C151 #51D380 #5163D3 #D351A4
square
#D3C151 #51D380 #5163D3 #D351A4
split-complementary
#D3C151 #51A4D3 #8051D3
monochromatic
#877922 #B8A52F #D3C151 #DFD282 #ECE4B3

Accessibility & contrast

On white

1.82
#D3C151 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

11.52
#D3C151 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D3C151
11.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D3C151#FFFFFF#000000##000000
##D3C1511.001.8211.5211.52
#FFFFFF1.821.0021.0021.00
#00000011.5221.001.001.00
##00000011.5221.001.001.00

Color blindness preview

Protanopia (red-blind)
#D2BC44
Deuteranopia (green-blind)
#D7C357
Tritanopia (blue-blind)
#E2B4A9
Achromatopsia (no color)
#C0C0C0

Design tokens & code

CSS
--color: #d3c151;
/* rgb */ color: rgb(211, 193, 81);
/* oklch */ color: oklch(80.5% 0.133 100.2);
Tailwind
colors: {
  custom: {
    50: '#e3d386',
    500: '#d3c151',
    950: '#000000',
  },
}
SCSS
$custom: #d3c151;
$custom-light: #e3d386;
$custom-dark: #000000;
JSON
{
  "hex": "#d3c151",
  "rgb": {
    "r": 211,
    "g": 193,
    "b": 81
  },
  "hsl": {
    "h": 51.692,
    "s": 59.633,
    "l": 57.255
  },
  "oklch": {
    "l": 0.80476,
    "c": 0.13292,
    "h": 100.2
  },
  "luminance": 0.52583
}

Semantic roles & 50–950 ramp

primary
#D3C151
secondary
#3A468E
accent
#5BE345
background
#FEFEFB
surface
#FDFBF2
border
#D5D4CC
text
#16140B
muted
#84837E

Preview Lab

Preview with #D3C151

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

Preview Lab → · Contrast checker → · Palette generator →

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