#DCD45B#DCD45B

#DCD45B is a very light, vivid yellow. Relative luminance 0.631; OKLCH L 85.3% C 0.142 H 105.5°. Best body text is #000000 at 13.61:1 contrast (WCAG AA passes).

Color values

HEX#DCD45B
RGBrgb(220, 212, 91)
HSLhsl(56, 65%, 61%)
HSVhsv(56, 59%, 86%)
CMYKcmyk(0%, 3.6%, 58.6%, 13.7%)
CIE-LABlab(83.47, -12.24, 59.41)
CIE-LCHlch(83.47, 60.65, 101.64°)
OKLaboklab(85.33% -0.0379 0.1367)
OKLCHoklch(85.33% 0.142 105.5)
XYZxyz(54.9488, 63.0598, 19.1728)
Luminance0.6306 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#DCD45B #5B63DC
analogous
#DC935B #DCD45B #A3DC5B
triadic
#DCD45B #5BDCD4 #D45BDC
tetradic
#DCD45B #5BDC93 #5B63DC #DC5BA3
square
#DCD45B #5BDC93 #5B63DC #DC5BA3
split-complementary
#DCD45B #5BA3DC #935BDC
monochromatic
#9B9421 #CEC42C #DCD45B #E7E18D #F2EEC0

Accessibility & contrast

On white

1.54
#DCD45B on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

13.61
#DCD45B on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #DCD45B
13.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##DCD45B#FFFFFF#000000##000000
##DCD45B1.001.5413.6113.61
#FFFFFF1.541.0021.0021.00
#00000013.6121.001.001.00
##00000013.6121.001.001.00

Color blindness preview

Protanopia (red-blind)
#E5CD4E
Deuteranopia (green-blind)
#E8D362
Tritanopia (blue-blind)
#EBC7BA
Achromatopsia (no color)
#D0D0D0

Design tokens & code

CSS
--color: #dcd45b;
/* rgb */ color: rgb(220, 212, 91);
/* oklch */ color: oklch(85.3% 0.142 105.5);
Tailwind
colors: {
  custom: {
    50: '#eae18e',
    500: '#dcd45b',
    950: '#000000',
  },
}
SCSS
$custom: #dcd45b;
$custom-light: #eae18e;
$custom-dark: #000000;
JSON
{
  "hex": "#dcd45b",
  "rgb": {
    "r": 220,
    "g": 212,
    "b": 91
  },
  "hsl": {
    "h": 56.279,
    "s": 64.824,
    "l": 60.98
  },
  "oklch": {
    "l": 0.85331,
    "c": 0.1419,
    "h": 105.5
  },
  "luminance": 0.63058
}

Semantic roles & 50–950 ramp

primary
#DCD45B
secondary
#3C429F
accent
#24CD19
background
#FFFEFC
surface
#FEFCF4
border
#D6D5CE
text
#16150D
muted
#85847F

Preview Lab

Preview with #DCD45B

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

Preview Lab → · Contrast checker → · Palette generator →

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