#CDC162#CDC162

#CDC162 is a light, moderate yellow. Relative luminance 0.520; OKLCH L 80.1% C 0.118 H 102.2°. Best body text is #000000 at 11.40:1 contrast (WCAG AA passes).

Color values

HEX#CDC162
RGBrgb(205, 193, 98)
HSLhsl(53, 52%, 59%)
HSVhsv(53, 52%, 80%)
CMYKcmyk(0%, 5.9%, 52.2%, 19.6%)
CIE-LABlab(77.28, -8.23, 48.79)
CIE-LCHlch(77.28, 49.48, 99.58°)
OKLaboklab(80.13% -0.0248 0.115)
OKLCHoklch(80.13% 0.118 102.2)
XYZxyz(46.4528, 52.0025, 19.1435)
Luminance0.5200 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CDC162 #626ECD
analogous
#CD8C62 #CDC162 #A4CD62
triadic
#CDC162 #62CDC1 #C162CD
tetradic
#CDC162 #62CD8C #626ECD #CD62A4
square
#CDC162 #62CD8C #626ECD #CD62A4
split-complementary
#CDC162 #62A4CD #8C62CD
monochromatic
#897F2C #B7A93A #CDC162 #DCD390 #EBE6BF

Accessibility & contrast

On white

1.84
#CDC162 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

11.40
#CDC162 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CDC162
11.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CDC162#FFFFFF#000000##000000
##CDC1621.001.8411.4011.40
#FFFFFF1.841.0021.0021.00
#00000011.4021.001.001.00
##00000011.4021.001.001.00

Color blindness preview

Protanopia (red-blind)
#D0BC59
Deuteranopia (green-blind)
#D4C166
Tritanopia (blue-blind)
#DAB6AB
Achromatopsia (no color)
#BFBFBF

Design tokens & code

CSS
--color: #cdc162;
/* rgb */ color: rgb(205, 193, 98);
/* oklch */ color: oklch(80.1% 0.118 102.2);
Tailwind
colors: {
  custom: {
    50: '#ded391',
    500: '#cdc162',
    950: '#000000',
  },
}
SCSS
$custom: #cdc162;
$custom-light: #ded391;
$custom-dark: #000000;
JSON
{
  "hex": "#cdc162",
  "rgb": {
    "r": 205,
    "g": 193,
    "b": 98
  },
  "hsl": {
    "h": 53.271,
    "s": 51.691,
    "l": 59.412
  },
  "oklch": {
    "l": 0.80132,
    "c": 0.11761,
    "h": 102.2
  },
  "luminance": 0.52001
}

Semantic roles & 50–950 ramp

primary
#CDC162
secondary
#434C90
accent
#5DDB4D
background
#FEFEFC
surface
#FCFBF4
border
#D5D4CE
text
#15140D
muted
#84837F

Preview Lab

Preview with #CDC162

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

Preview Lab → · Contrast checker → · Palette generator →

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