#D3C642#D3C642

#D3C642 is a light, vivid yellow. Relative luminance 0.546; OKLCH L 81.4% C 0.148 H 103.6°. Best body text is #000000 at 11.93:1 contrast (WCAG AA passes).

Color values

HEX#D3C642
RGBrgb(211, 198, 66)
HSLhsl(55, 62%, 54%)
HSVhsv(55, 69%, 83%)
CMYKcmyk(0%, 6.2%, 68.7%, 17.3%)
CIE-LABlab(78.83, -10.45, 64.59)
CIE-LCHlch(78.83, 65.44, 99.19°)
OKLaboklab(81.39% -0.035 0.1443)
OKLCHoklch(81.39% 0.148 103.6)
XYZxyz(48.0434, 54.6323, 13.1676)
Luminance0.5463 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D3C642 #424FD3
analogous
#D37E42 #D3C642 #97D342
triadic
#D3C642 #42D3C6 #C642D3
tetradic
#D3C642 #42D37E #424FD3 #D34297
square
#D3C642 #42D37E #424FD3 #D34297
split-complementary
#D3C642 #4297D3 #7E42D3
monochromatic
#7D751D #AFA329 #D3C642 #DFD574 #EAE4A5

Accessibility & contrast

On white

1.76
#D3C642 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

11.93
#D3C642 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D3C642
11.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D3C642#FFFFFF#000000##000000
##D3C6421.001.7611.9311.93
#FFFFFF1.761.0021.0021.00
#00000011.9321.001.001.00
##00000011.9321.001.001.00

Color blindness preview

Protanopia (red-blind)
#D7BF2E
Deuteranopia (green-blind)
#DCC64A
Tritanopia (blue-blind)
#E3B9AC
Achromatopsia (no color)
#C3C3C3

Design tokens & code

CSS
--color: #d3c642;
/* rgb */ color: rgb(211, 198, 66);
/* oklch */ color: oklch(81.4% 0.148 103.6);
Tailwind
colors: {
  custom: {
    50: '#e4d77e',
    500: '#d3c642',
    950: '#000000',
  },
}
SCSS
$custom: #d3c642;
$custom-light: #e4d77e;
$custom-dark: #000000;
JSON
{
  "hex": "#d3c642",
  "rgb": {
    "r": 211,
    "g": 198,
    "b": 66
  },
  "hsl": {
    "h": 54.621,
    "s": 62.232,
    "l": 54.314
  },
  "oklch": {
    "l": 0.81391,
    "c": 0.14844,
    "h": 103.6
  },
  "luminance": 0.5463
}

Semantic roles & 50–950 ramp

primary
#D3C642
secondary
#343B85
accent
#51E542
background
#FFFEFB
surface
#FEFBF2
border
#D6D4CC
text
#16140A
muted
#85837D

Preview Lab

Preview with #D3C642

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

Preview Lab → · Contrast checker → · Palette generator →

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