#D3C242#D3C242

#D3C242 is a light, vivid yellow. Relative luminance 0.528; OKLCH L 80.6% C 0.145 H 101.6°. Best body text is #000000 at 11.57:1 contrast (WCAG AA passes).

Color values

HEX#D3C242
RGBrgb(211, 194, 66)
HSLhsl(53, 62%, 54%)
HSVhsv(53, 69%, 83%)
CMYKcmyk(0%, 8.1%, 68.7%, 17.3%)
CIE-LABlab(77.77, -8.41, 63.53)
CIE-LCHlch(77.77, 64.09, 97.54°)
OKLaboklab(80.55% -0.0292 0.142)
OKLCHoklch(80.55% 0.145 101.6)
XYZxyz(47.1412, 52.8278, 12.8669)
Luminance0.5283 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D3C242 #4253D3
analogous
#D37A42 #D3C242 #9BD342
triadic
#D3C242 #42D3C2 #C242D3
tetradic
#D3C242 #42D37A #4253D3 #D3429B
square
#D3C242 #42D37A #4253D3 #D3429B
split-complementary
#D3C242 #429BD3 #7A42D3
monochromatic
#7D721D #AF9F29 #D3C242 #DFD274 #EAE2A5

Accessibility & contrast

On white

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

On black

11.57
#D3C242 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D3C242
11.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D3C242#FFFFFF#000000##000000
##D3C2421.001.8211.5711.57
#FFFFFF1.821.0021.0021.00
#00000011.5721.001.001.00
##00000011.5721.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #d3c242;
/* rgb */ color: rgb(211, 194, 66);
/* oklch */ color: oklch(80.6% 0.145 101.6);
Tailwind
colors: {
  custom: {
    50: '#e4d47e',
    500: '#d3c242',
    950: '#000000',
  },
}
SCSS
$custom: #d3c242;
$custom-light: #e4d47e;
$custom-dark: #000000;
JSON
{
  "hex": "#d3c242",
  "rgb": {
    "r": 211,
    "g": 194,
    "b": 66
  },
  "hsl": {
    "h": 52.966,
    "s": 62.232,
    "l": 54.314
  },
  "oklch": {
    "l": 0.80552,
    "c": 0.14498,
    "h": 101.6
  },
  "luminance": 0.52826
}

Semantic roles & 50–950 ramp

primary
#D3C242
secondary
#343E85
accent
#56E542
background
#FFFEFB
surface
#FEFBF2
border
#D6D4CC
text
#16140A
muted
#85837D

Preview Lab

Preview with #D3C242

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

Preview Lab → · Contrast checker → · Palette generator →

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