#CDC662#CDC662

#CDC662 is a light, vivid yellow. Relative luminance 0.542; OKLCH L 81.2% C 0.123 H 105.2°. Best body text is #000000 at 11.85:1 contrast (WCAG AA passes).

Color values

HEX#CDC662
RGBrgb(205, 198, 98)
HSLhsl(56, 52%, 59%)
HSVhsv(56, 52%, 80%)
CMYKcmyk(0%, 3.4%, 52.2%, 19.6%)
CIE-LABlab(78.61, -10.79, 50.35)
CIE-LCHlch(78.61, 51.49, 102.10°)
OKLaboklab(81.18% -0.0321 0.1184)
OKLCHoklch(81.18% 0.123 105.2)
XYZxyz(47.5769, 54.2506, 19.5181)
Luminance0.5425 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CDC662 #6269CD
analogous
#CD9162 #CDC662 #9FCD62
triadic
#CDC662 #62CDC6 #C662CD
tetradic
#CDC662 #62CD91 #6269CD #CD629F
square
#CDC662 #62CD91 #6269CD #CD629F
split-complementary
#CDC662 #629FCD #9162CD
monochromatic
#89832C #B7AF3A #CDC662 #DCD790 #EBE8BF

Accessibility & contrast

On white

1.77
#CDC662 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

11.85
#CDC662 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CDC662
11.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CDC662#FFFFFF#000000##000000
##CDC6621.001.7711.8511.85
#FFFFFF1.771.0021.0021.00
#00000011.8521.001.001.00
##00000011.8521.001.001.00

Color blindness preview

Protanopia (red-blind)
#D5C059
Deuteranopia (green-blind)
#D7C567
Tritanopia (blue-blind)
#DABBAF
Achromatopsia (no color)
#C2C2C2

Design tokens & code

CSS
--color: #cdc662;
/* rgb */ color: rgb(205, 198, 98);
/* oklch */ color: oklch(81.2% 0.123 105.2);
Tailwind
colors: {
  custom: {
    50: '#ded791',
    500: '#cdc662',
    950: '#000000',
  },
}
SCSS
$custom: #cdc662;
$custom-light: #ded791;
$custom-dark: #000000;
JSON
{
  "hex": "#cdc662",
  "rgb": {
    "r": 205,
    "g": 198,
    "b": 98
  },
  "hsl": {
    "h": 56.075,
    "s": 51.691,
    "l": 59.412
  },
  "oklch": {
    "l": 0.81184,
    "c": 0.12263,
    "h": 105.2
  },
  "luminance": 0.54249
}

Semantic roles & 50–950 ramp

primary
#CDC662
secondary
#434890
accent
#56DB4D
background
#FEFEFC
surface
#FCFBF4
border
#D5D4CE
text
#15140D
muted
#84837F

Preview Lab

Preview with #CDC662

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

Preview Lab → · Contrast checker → · Palette generator →

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