#D3C271#D3C271

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

Color values

HEX#D3C271
RGBrgb(211, 194, 113)
HSLhsl(50, 53%, 64%)
HSVhsv(50, 46%, 83%)
CMYKcmyk(0%, 8.1%, 46.4%, 17.3%)
CIE-LABlab(78.24, -4.93, 42.72)
CIE-LCHlch(78.24, 43.00, 96.58°)
OKLaboklab(81.08% -0.014 0.1027)
OKLCHoklch(81.08% 0.104 97.8)
XYZxyz(49.1377, 53.6265, 23.3822)
Luminance0.5363 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D3C271 #7182D3
analogous
#D39171 #D3C271 #B3D371
triadic
#D3C271 #71D3C2 #C271D3
tetradic
#D3C271 #71D391 #7182D3 #D371B3
square
#D3C271 #71D391 #7182D3 #D371B3
split-complementary
#D3C271 #71B3D3 #9171D3
monochromatic
#9A8730 #C5AE42 #D3C271 #E1D6A0 #F0EACE

Accessibility & contrast

On white

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

On black

11.73
#D3C271 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D3C271
11.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D3C271#FFFFFF#000000##000000
##D3C2711.001.7911.7311.73
#FFFFFF1.791.0021.0021.00
#00000011.7321.001.001.00
##00000011.7321.001.001.00

Color blindness preview

Protanopia (red-blind)
#D0BE6A
Deuteranopia (green-blind)
#D5C474
Tritanopia (blue-blind)
#E0B7AF
Achromatopsia (no color)
#C1C1C1

Design tokens & code

CSS
--color: #d3c271;
/* rgb */ color: rgb(211, 194, 113);
/* oklch */ color: oklch(81.1% 0.104 97.8);
Tailwind
colors: {
  custom: {
    50: '#e2d49b',
    500: '#d3c271',
    950: '#000000',
  },
}
SCSS
$custom: #d3c271;
$custom-light: #e2d49b;
$custom-dark: #000000;
JSON
{
  "hex": "#d3c271",
  "rgb": {
    "r": 211,
    "g": 194,
    "b": 113
  },
  "hsl": {
    "h": 49.592,
    "s": 52.688,
    "l": 63.529
  },
  "oklch": {
    "l": 0.81076,
    "c": 0.10368,
    "h": 97.8
  },
  "luminance": 0.53625
}

Semantic roles & 50–950 ramp

primary
#D3C271
secondary
#49589F
accent
#40C025
background
#FEFEFC
surface
#FCFBF5
border
#D5D4CF
text
#16140E
muted
#84837F

Preview Lab

Preview with #D3C271

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

Preview Lab → · Contrast checker → · Palette generator →

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