#D2CD40#D2CD40

#D2CD40 is a very light, vivid yellow. Relative luminance 0.577; OKLCH L 82.8% C 0.156 H 107.3°. Best body text is #000000 at 12.55:1 contrast (WCAG AA passes).

Color values

HEX#D2CD40
RGBrgb(210, 205, 64)
HSLhsl(58, 62%, 54%)
HSVhsv(58, 70%, 82%)
CMYKcmyk(0%, 2.4%, 69.5%, 17.6%)
CIE-LABlab(80.59, -14.51, 67.07)
CIE-LCHlch(80.59, 68.62, 102.21°)
OKLaboklab(82.77% -0.0466 0.1492)
OKLCHoklch(82.77% 0.156 107.3)
XYZxyz(49.3369, 57.7361, 13.3948)
Luminance0.5773 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D2CD40 #4045D2
analogous
#D28440 #D2CD40 #8ED240
triadic
#D2CD40 #40D2CD #CD40D2
tetradic
#D2CD40 #40D284 #4045D2 #D2408E
square
#D2CD40 #40D284 #4045D2 #D2408E
split-complementary
#D2CD40 #408ED2 #8440D2
monochromatic
#7B771D #ACA829 #D2CD40 #DEDA72 #E9E7A3

Accessibility & contrast

On white

1.67
#D2CD40 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

12.55
#D2CD40 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D2CD40
12.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D2CD40#FFFFFF#000000##000000
##D2CD401.001.6712.5512.55
#FFFFFF1.671.0021.0021.00
#00000012.5521.001.001.00
##00000012.5521.001.001.00

Color blindness preview

Protanopia (red-blind)
#DEC529
Deuteranopia (green-blind)
#E1CA4A
Tritanopia (blue-blind)
#E1C0B1
Achromatopsia (no color)
#C8C8C8

Design tokens & code

CSS
--color: #d2cd40;
/* rgb */ color: rgb(210, 205, 64);
/* oklch */ color: oklch(82.8% 0.156 107.3);
Tailwind
colors: {
  custom: {
    50: '#e3dc7e',
    500: '#d2cd40',
    950: '#000000',
  },
}
SCSS
$custom: #d2cd40;
$custom-light: #e3dc7e;
$custom-dark: #000000;
JSON
{
  "hex": "#d2cd40",
  "rgb": {
    "r": 210,
    "g": 205,
    "b": 64
  },
  "hsl": {
    "h": 57.945,
    "s": 61.864,
    "l": 53.725
  },
  "oklch": {
    "l": 0.8277,
    "c": 0.15628,
    "h": 107.3
  },
  "luminance": 0.57734
}

Semantic roles & 50–950 ramp

primary
#D2CD40
secondary
#343683
accent
#48E543
background
#FEFEFB
surface
#FDFBF2
border
#D5D4CC
text
#16150A
muted
#84847D

Preview Lab

Preview with #D2CD40

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

Preview Lab → · Contrast checker → · Palette generator →

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