#D2C145#D2C145

#D2C145 is a light, vivid yellow. Relative luminance 0.523; OKLCH L 80.3% C 0.142 H 101.4°. Best body text is #000000 at 11.45:1 contrast (WCAG AA passes).

Color values

HEX#D2C145
RGBrgb(210, 193, 69)
HSLhsl(53, 61%, 55%)
HSVhsv(53, 67%, 82%)
CMYKcmyk(0%, 8.1%, 67.1%, 17.6%)
CIE-LABlab(77.44, -8.16, 61.98)
CIE-LCHlch(77.44, 62.52, 97.50°)
OKLaboklab(80.28% -0.0281 0.1393)
OKLCHoklch(80.28% 0.142 101.4)
XYZxyz(46.7245, 52.2732, 13.2576)
Luminance0.5227 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D2C145 #4556D2
analogous
#D27B45 #D2C145 #9DD245
triadic
#D2C145 #45D2C1 #C145D2
tetradic
#D2C145 #45D27B #4556D2 #D2459D
square
#D2C145 #45D27B #4556D2 #D2459D
split-complementary
#D2C145 #459DD2 #7B45D2
monochromatic
#7E731F #AF9F2A #D2C145 #DED176 #EAE2A8

Accessibility & contrast

On white

1.83
#D2C145 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

11.45
#D2C145 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D2C145
11.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D2C145#FFFFFF#000000##000000
##D2C1451.001.8311.4511.45
#FFFFFF1.831.0021.0021.00
#00000011.4521.001.001.00
##00000011.4521.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #d2c145;
/* rgb */ color: rgb(210, 193, 69);
/* oklch */ color: oklch(80.3% 0.142 101.4);
Tailwind
colors: {
  custom: {
    50: '#e3d37f',
    500: '#d2c145',
    950: '#000000',
  },
}
SCSS
$custom: #d2c145;
$custom-light: #e3d37f;
$custom-dark: #000000;
JSON
{
  "hex": "#d2c145",
  "rgb": {
    "r": 210,
    "g": 193,
    "b": 69
  },
  "hsl": {
    "h": 52.766,
    "s": 61.039,
    "l": 54.706
  },
  "oklch": {
    "l": 0.80276,
    "c": 0.14208,
    "h": 101.4
  },
  "luminance": 0.52271
}

Semantic roles & 50–950 ramp

primary
#D2C145
secondary
#363F86
accent
#57E444
background
#FEFEFB
surface
#FDFBF2
border
#D5D4CC
text
#16140A
muted
#84837D

Preview Lab

Preview with #D2C145

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

Preview Lab → · Contrast checker → · Palette generator →

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