#D2C541#D2C541

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

Color values

HEX#D2C541
RGBrgb(210, 197, 65)
HSLhsl(55, 62%, 54%)
HSVhsv(55, 69%, 82%)
CMYKcmyk(0%, 6.2%, 69%, 17.6%)
CIE-LABlab(78.47, -10.42, 64.59)
CIE-LCHlch(78.47, 65.43, 99.16°)
OKLaboklab(81.08% -0.035 0.1441)
OKLCHoklch(81.08% 0.148 103.6)
XYZxyz(47.5007, 54.0177, 12.9244)
Luminance0.5402 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D2C541 #414ED2
analogous
#D27D41 #D2C541 #97D241
triadic
#D2C541 #41D2C5 #C541D2
tetradic
#D2C541 #41D27D #414ED2 #D24197
square
#D2C541 #41D27D #414ED2 #D24197
split-complementary
#D2C541 #4197D2 #7D41D2
monochromatic
#7B731D #ADA129 #D2C541 #DED472 #E9E3A4

Accessibility & contrast

On white

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

On black

11.80
#D2C541 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D2C541
11.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D2C541#FFFFFF#000000##000000
##D2C5411.001.7811.8011.80
#FFFFFF1.781.0021.0021.00
#00000011.8021.001.001.00
##00000011.8021.001.001.00

Color blindness preview

Protanopia (red-blind)
#D6BF2D
Deuteranopia (green-blind)
#DBC54A
Tritanopia (blue-blind)
#E2B8AB
Achromatopsia (no color)
#C2C2C2

Design tokens & code

CSS
--color: #d2c541;
/* rgb */ color: rgb(210, 197, 65);
/* oklch */ color: oklch(81.1% 0.148 103.6);
Tailwind
colors: {
  custom: {
    50: '#e3d67d',
    500: '#d2c541',
    950: '#000000',
  },
}
SCSS
$custom: #d2c541;
$custom-light: #e3d67d;
$custom-dark: #000000;
JSON
{
  "hex": "#d2c541",
  "rgb": {
    "r": 210,
    "g": 197,
    "b": 65
  },
  "hsl": {
    "h": 54.621,
    "s": 61.702,
    "l": 53.922
  },
  "oklch": {
    "l": 0.81084,
    "c": 0.14829,
    "h": 103.6
  },
  "luminance": 0.54016
}

Semantic roles & 50–950 ramp

primary
#D2C541
secondary
#343B83
accent
#52E543
background
#FEFEFB
surface
#FDFBF2
border
#D5D4CC
text
#16140A
muted
#84837D

Preview Lab

Preview with #D2C541

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

Preview Lab → · Contrast checker → · Palette generator →

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