#D3C240#D3C240

#D3C240 is a light, vivid yellow. Relative luminance 0.528; OKLCH L 80.5% C 0.146 H 101.7°. Best body text is #000000 at 11.56:1 contrast (WCAG AA passes).

Color values

HEX#D3C240
RGBrgb(211, 194, 64)
HSLhsl(53, 63%, 54%)
HSVhsv(53, 70%, 83%)
CMYKcmyk(0%, 8.1%, 69.7%, 17.3%)
CIE-LABlab(77.76, -8.52, 64.29)
CIE-LCHlch(77.76, 64.85, 97.54°)
OKLaboklab(80.54% -0.0297 0.1433)
OKLCHoklch(80.54% 0.146 101.7)
XYZxyz(47.0832, 52.8047, 12.5617)
Luminance0.5280 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D3C240 #4051D3
analogous
#D37940 #D3C240 #9BD340
triadic
#D3C240 #40D3C2 #C240D3
tetradic
#D3C240 #40D379 #4051D3 #D3409B
square
#D3C240 #40D379 #4051D3 #D3409B
split-complementary
#D3C240 #409BD3 #7940D3
monochromatic
#7C711D #AE9E28 #D3C240 #DED272 #EAE2A3

Accessibility & contrast

On white

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

On black

11.56
#D3C240 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D3C240
11.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D3C240#FFFFFF#000000##000000
##D3C2401.001.8211.5611.56
#FFFFFF1.821.0021.0021.00
#00000011.5621.001.001.00
##00000011.5621.001.001.00

Color blindness preview

Protanopia (red-blind)
#D4BC2C
Deuteranopia (green-blind)
#D9C348
Tritanopia (blue-blind)
#E3B4A8
Achromatopsia (no color)
#C0C0C0

Design tokens & code

CSS
--color: #d3c240;
/* rgb */ color: rgb(211, 194, 64);
/* oklch */ color: oklch(80.5% 0.146 101.7);
Tailwind
colors: {
  custom: {
    50: '#e4d47d',
    500: '#d3c240',
    950: '#000000',
  },
}
SCSS
$custom: #d3c240;
$custom-light: #e4d47d;
$custom-dark: #000000;
JSON
{
  "hex": "#d3c240",
  "rgb": {
    "r": 211,
    "g": 194,
    "b": 64
  },
  "hsl": {
    "h": 53.061,
    "s": 62.553,
    "l": 53.922
  },
  "oklch": {
    "l": 0.80537,
    "c": 0.14632,
    "h": 101.7
  },
  "luminance": 0.52803
}

Semantic roles & 50–950 ramp

primary
#D3C240
secondary
#333D84
accent
#55E642
background
#FFFEFB
surface
#FEFBF2
border
#D6D4CC
text
#16140A
muted
#85837D

Preview Lab

Preview with #D3C240

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

Preview Lab → · Contrast checker → · Palette generator →

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