#D2C045#D2C045

#D2C045 is a light, vivid yellow. Relative luminance 0.518; OKLCH L 80.1% C 0.141 H 100.9°. Best body text is #000000 at 11.37:1 contrast (WCAG AA passes).

Color values

HEX#D2C045
RGBrgb(210, 192, 69)
HSLhsl(52, 61%, 55%)
HSVhsv(52, 67%, 82%)
CMYKcmyk(0%, 8.6%, 67.1%, 17.6%)
CIE-LABlab(77.18, -7.65, 61.71)
CIE-LCHlch(77.18, 62.18, 97.06°)
OKLaboklab(80.07% -0.0267 0.1387)
OKLCHoklch(80.07% 0.141 100.9)
XYZxyz(46.5042, 51.8326, 13.1842)
Luminance0.5183 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D2C045 #4557D2
analogous
#D27945 #D2C045 #9ED245
triadic
#D2C045 #45D2C0 #C045D2
tetradic
#D2C045 #45D279 #4557D2 #D2459E
square
#D2C045 #45D279 #4557D2 #D2459E
split-complementary
#D2C045 #459ED2 #7945D2
monochromatic
#7E721F #AF9E2A #D2C045 #DED176 #EAE1A8

Accessibility & contrast

On white

1.85
#D2C045 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

11.37
#D2C045 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D2C045
11.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D2C045#FFFFFF#000000##000000
##D2C0451.001.8511.3711.37
#FFFFFF1.851.0021.0021.00
#00000011.3721.001.001.00
##00000011.3721.001.001.00

Color blindness preview

Protanopia (red-blind)
#D1BB34
Deuteranopia (green-blind)
#D7C24C
Tritanopia (blue-blind)
#E2B3A7
Achromatopsia (no color)
#BFBFBF

Design tokens & code

CSS
--color: #d2c045;
/* rgb */ color: rgb(210, 192, 69);
/* oklch */ color: oklch(80.1% 0.141 100.9);
Tailwind
colors: {
  custom: {
    50: '#e3d27f',
    500: '#d2c045',
    950: '#000000',
  },
}
SCSS
$custom: #d2c045;
$custom-light: #e3d27f;
$custom-dark: #000000;
JSON
{
  "hex": "#d2c045",
  "rgb": {
    "r": 210,
    "g": 192,
    "b": 69
  },
  "hsl": {
    "h": 52.34,
    "s": 61.039,
    "l": 54.706
  },
  "oklch": {
    "l": 0.80067,
    "c": 0.14124,
    "h": 100.9
  },
  "luminance": 0.51831
}

Semantic roles & 50–950 ramp

primary
#D2C045
secondary
#364086
accent
#58E444
background
#FEFEFB
surface
#FDFBF2
border
#D5D4CC
text
#16140A
muted
#84837D

Preview Lab

Preview with #D2C045

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

Preview Lab → · Contrast checker → · Palette generator →

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