#D3C540#D3C540

#D3C540 is a light, vivid yellow. Relative luminance 0.542; OKLCH L 81.2% C 0.149 H 103.2°. Best body text is #000000 at 11.83:1 contrast (WCAG AA passes).

Color values

HEX#D3C540
RGBrgb(211, 197, 64)
HSLhsl(54, 63%, 54%)
HSVhsv(54, 70%, 83%)
CMYKcmyk(0%, 6.6%, 69.7%, 17.3%)
CIE-LABlab(78.55, -10.05, 65.08)
CIE-LCHlch(78.55, 65.85, 98.78°)
OKLaboklab(81.17% -0.0341 0.1449)
OKLCHoklch(81.17% 0.149 103.2)
XYZxyz(47.7577, 54.1535, 12.7865)
Luminance0.5415 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D3C540 #404ED3
analogous
#D37C40 #D3C540 #98D340
triadic
#D3C540 #40D3C5 #C540D3
tetradic
#D3C540 #40D37C #404ED3 #D34098
square
#D3C540 #40D37C #404ED3 #D34098
split-complementary
#D3C540 #4098D3 #7C40D3
monochromatic
#7C731D #AEA128 #D3C540 #DED472 #EAE3A3

Accessibility & contrast

On white

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

On black

11.83
#D3C540 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D3C540
11.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D3C540#FFFFFF#000000##000000
##D3C5401.001.7811.8311.83
#FFFFFF1.781.0021.0021.00
#00000011.8321.001.001.00
##00000011.8321.001.001.00

Color blindness preview

Protanopia (red-blind)
#D7BF2B
Deuteranopia (green-blind)
#DBC549
Tritanopia (blue-blind)
#E3B7AB
Achromatopsia (no color)
#C2C2C2

Design tokens & code

CSS
--color: #d3c540;
/* rgb */ color: rgb(211, 197, 64);
/* oklch */ color: oklch(81.2% 0.149 103.2);
Tailwind
colors: {
  custom: {
    50: '#e4d67d',
    500: '#d3c540',
    950: '#000000',
  },
}
SCSS
$custom: #d3c540;
$custom-light: #e4d67d;
$custom-dark: #000000;
JSON
{
  "hex": "#d3c540",
  "rgb": {
    "r": 211,
    "g": 197,
    "b": 64
  },
  "hsl": {
    "h": 54.286,
    "s": 62.553,
    "l": 53.922
  },
  "oklch": {
    "l": 0.81166,
    "c": 0.14888,
    "h": 103.2
  },
  "luminance": 0.54152
}

Semantic roles & 50–950 ramp

primary
#D3C540
secondary
#333B84
accent
#52E642
background
#FFFEFB
surface
#FEFBF2
border
#D6D4CC
text
#16140A
muted
#85837D

Preview Lab

Preview with #D3C540

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

Preview Lab → · Contrast checker → · Palette generator →

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