#D3C840#D3C840

#D3C840 is a light, vivid yellow. Relative luminance 0.555; OKLCH L 81.8% C 0.152 H 104.7°. Best body text is #000000 at 12.11:1 contrast (WCAG AA passes).

Color values

HEX#D3C840
RGBrgb(211, 200, 64)
HSLhsl(56, 63%, 54%)
HSVhsv(56, 70%, 83%)
CMYKcmyk(0%, 5.2%, 69.7%, 17.3%)
CIE-LABlab(79.35, -11.57, 65.87)
CIE-LCHlch(79.35, 66.87, 99.96°)
OKLaboklab(81.8% -0.0384 0.1466)
OKLCHoklch(81.8% 0.152 104.7)
XYZxyz(48.4456, 55.5295, 13.0159)
Luminance0.5553 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D3C840 #404BD3
analogous
#D37F40 #D3C840 #95D340
triadic
#D3C840 #40D3C8 #C840D3
tetradic
#D3C840 #40D37F #404BD3 #D34095
square
#D3C840 #40D37F #404BD3 #D34095
split-complementary
#D3C840 #4095D3 #7F40D3
monochromatic
#7C751D #AEA428 #D3C840 #DED672 #EAE5A3

Accessibility & contrast

On white

1.73
#D3C840 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

12.11
#D3C840 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D3C840
12.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D3C840#FFFFFF#000000##000000
##D3C8401.001.7312.1112.11
#FFFFFF1.731.0021.0021.00
#00000012.1121.001.001.00
##00000012.1121.001.001.00

Color blindness preview

Protanopia (red-blind)
#D9C12A
Deuteranopia (green-blind)
#DDC749
Tritanopia (blue-blind)
#E3BBAD
Achromatopsia (no color)
#C5C5C5

Design tokens & code

CSS
--color: #d3c840;
/* rgb */ color: rgb(211, 200, 64);
/* oklch */ color: oklch(81.8% 0.152 104.7);
Tailwind
colors: {
  custom: {
    50: '#e4d87d',
    500: '#d3c840',
    950: '#000000',
  },
}
SCSS
$custom: #d3c840;
$custom-light: #e4d87d;
$custom-dark: #000000;
JSON
{
  "hex": "#d3c840",
  "rgb": {
    "r": 211,
    "g": 200,
    "b": 64
  },
  "hsl": {
    "h": 55.51,
    "s": 62.553,
    "l": 53.922
  },
  "oklch": {
    "l": 0.81797,
    "c": 0.15153,
    "h": 104.7
  },
  "luminance": 0.55528
}

Semantic roles & 50–950 ramp

primary
#D3C840
secondary
#333984
accent
#4EE642
background
#FFFEFB
surface
#FEFBF2
border
#D6D4CC
text
#16140A
muted
#85837D

Preview Lab

Preview with #D3C840

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

Preview Lab → · Contrast checker → · Palette generator →

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