#CDCB42#CDCB42

#CDCB42 is a light, vivid yellow. Relative luminance 0.561; OKLCH L 81.9% C 0.154 H 108.5°. Best body text is #000000 at 12.22:1 contrast (WCAG AA passes).

Color values

HEX#CDCB42
RGBrgb(205, 203, 66)
HSLhsl(59, 58%, 53%)
HSVhsv(59, 68%, 80%)
CMYKcmyk(0%, 1%, 67.8%, 19.6%)
CIE-LABlab(79.66, -15.50, 65.27)
CIE-LCHlch(79.66, 67.08, 103.36°)
OKLaboklab(81.94% -0.0489 0.1459)
OKLCHoklch(81.94% 0.154 108.5)
XYZxyz(47.5178, 56.0858, 13.4758)
Luminance0.5608 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CDCB42 #4244CD
analogous
#CD8642 #CDCB42 #89CD42
triadic
#CDCB42 #42CDCB #CB42CD
tetradic
#CDCB42 #42CD86 #4244CD #CD4289
square
#CDCB42 #42CD86 #4244CD #CD4289
split-complementary
#CDCB42 #4289CD #8642CD
monochromatic
#76741F #A6A42C #CDCB42 #DAD872 #E7E6A3

Accessibility & contrast

On white

1.72
#CDCB42 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

12.22
#CDCB42 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CDCB42
12.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CDCB42#FFFFFF#000000##000000
##CDCB421.001.7212.2212.22
#FFFFFF1.721.0021.0021.00
#00000012.2221.001.001.00
##00000012.2221.001.001.00

Color blindness preview

Protanopia (red-blind)
#DBC32D
Deuteranopia (green-blind)
#DDC84B
Tritanopia (blue-blind)
#DBBEB0
Achromatopsia (no color)
#C5C5C5

Design tokens & code

CSS
--color: #cdcb42;
/* rgb */ color: rgb(205, 203, 66);
/* oklch */ color: oklch(81.9% 0.154 108.5);
Tailwind
colors: {
  custom: {
    50: '#e0da7e',
    500: '#cdcb42',
    950: '#000000',
  },
}
SCSS
$custom: #cdcb42;
$custom-light: #e0da7e;
$custom-dark: #000000;
JSON
{
  "hex": "#cdcb42",
  "rgb": {
    "r": 205,
    "g": 203,
    "b": 66
  },
  "hsl": {
    "h": 59.137,
    "s": 58.159,
    "l": 53.137
  },
  "oklch": {
    "l": 0.81935,
    "c": 0.15384,
    "h": 108.5
  },
  "luminance": 0.56084
}

Semantic roles & 50–950 ramp

primary
#CDCB42
secondary
#35367E
accent
#49E146
background
#FEFEFB
surface
#FCFBF2
border
#D5D4CC
text
#16140A
muted
#84837D

Preview Lab

Preview with #CDCB42

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

Preview Lab → · Contrast checker → · Palette generator →

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