#DCD962#DCD962

#DCD962 is a very light, vivid yellow. Relative luminance 0.657; OKLCH L 86.5% C 0.141 H 107.7°. Best body text is #000000 at 14.14:1 contrast (WCAG AA passes).

Color values

HEX#DCD962
RGBrgb(220, 217, 98)
HSLhsl(59, 64%, 62%)
HSVhsv(59, 55%, 86%)
CMYKcmyk(0%, 1.4%, 55.5%, 13.7%)
CIE-LABlab(84.86, -14.23, 57.86)
CIE-LCHlch(84.86, 59.58, 103.82°)
OKLaboklab(86.45% -0.0428 0.1343)
OKLCHoklch(86.45% 0.141 107.7)
XYZxyz(56.5343, 65.7248, 21.2610)
Luminance0.6572 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#DCD962 #6265DC
analogous
#DC9C62 #DCD962 #A2DC62
triadic
#DCD962 #62DCD9 #D962DC
tetradic
#DCD962 #62DC9C #6265DC #DC62A2
square
#DCD962 #62DC9C #6265DC #DC62A2
split-complementary
#DCD962 #62A2DC #9C62DC
monochromatic
#A09D24 #D1CD30 #DCD962 #E7E594 #F2F1C6

Accessibility & contrast

On white

1.48
#DCD962 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

14.14
#DCD962 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #DCD962
14.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##DCD962#FFFFFF#000000##000000
##DCD9621.001.4814.1414.14
#FFFFFF1.481.0021.0021.00
#00000014.1421.001.001.00
##00000014.1421.001.001.00

Color blindness preview

Protanopia (red-blind)
#E9D156
Deuteranopia (green-blind)
#EBD668
Tritanopia (blue-blind)
#EACDBF
Achromatopsia (no color)
#D4D4D4

Design tokens & code

CSS
--color: #dcd962;
/* rgb */ color: rgb(220, 217, 98);
/* oklch */ color: oklch(86.5% 0.141 107.7);
Tailwind
colors: {
  custom: {
    50: '#e9e492',
    500: '#dcd962',
    950: '#000000',
  },
}
SCSS
$custom: #dcd962;
$custom-light: #e9e492;
$custom-dark: #000000;
JSON
{
  "hex": "#dcd962",
  "rgb": {
    "r": 220,
    "g": 217,
    "b": 98
  },
  "hsl": {
    "h": 58.525,
    "s": 63.542,
    "l": 62.353
  },
  "oklch": {
    "l": 0.86452,
    "c": 0.14093,
    "h": 107.7
  },
  "luminance": 0.65723
}

Semantic roles & 50–950 ramp

primary
#DCD962
secondary
#3F41A3
accent
#1FCB1A
background
#FFFEFC
surface
#FEFCF4
border
#D6D5CE
text
#16150D
muted
#85847F

Preview Lab

Preview with #DCD962

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

Preview Lab → · Contrast checker → · Palette generator →

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