#CDC652#CDC652

#CDC652 is a light, vivid yellow. Relative luminance 0.540; OKLCH L 81.0% C 0.137 H 105.8°. Best body text is #000000 at 11.80:1 contrast (WCAG AA passes).

Color values

HEX#CDC652
RGBrgb(205, 198, 82)
HSLhsl(57, 55%, 56%)
HSVhsv(57, 60%, 80%)
CMYKcmyk(0%, 3.4%, 60%, 19.6%)
CIE-LABlab(78.45, -12.01, 57.46)
CIE-LCHlch(78.45, 58.70, 101.81°)
OKLaboklab(81.01% -0.0373 0.1318)
OKLCHoklch(81.01% 0.137 105.8)
XYZxyz(46.8955, 53.9780, 15.9295)
Luminance0.5398 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CDC652 #5259CD
analogous
#CD8952 #CDC652 #97CD52
triadic
#CDC652 #52CDC6 #C652CD
tetradic
#CDC652 #52CD89 #5259CD #CD5297
square
#CDC652 #52CD89 #5259CD #CD5297
split-complementary
#CDC652 #5297CD #8952CD
monochromatic
#807B25 #AFA833 #CDC652 #DBD681 #E8E5B1

Accessibility & contrast

On white

1.78
#CDC652 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

11.80
#CDC652 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CDC652
11.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CDC652#FFFFFF#000000##000000
##CDC6521.001.7811.8011.80
#FFFFFF1.781.0021.0021.00
#00000011.8021.001.001.00
##00000011.8021.001.001.00

Color blindness preview

Protanopia (red-blind)
#D6BF45
Deuteranopia (green-blind)
#D9C459
Tritanopia (blue-blind)
#DBBAAD
Achromatopsia (no color)
#C2C2C2

Design tokens & code

CSS
--color: #cdc652;
/* rgb */ color: rgb(205, 198, 82);
/* oklch */ color: oklch(81.0% 0.137 105.8);
Tailwind
colors: {
  custom: {
    50: '#dfd787',
    500: '#cdc652',
    950: '#000000',
  },
}
SCSS
$custom: #cdc652;
$custom-light: #dfd787;
$custom-dark: #000000;
JSON
{
  "hex": "#cdc652",
  "rgb": {
    "r": 205,
    "g": 198,
    "b": 82
  },
  "hsl": {
    "h": 56.585,
    "s": 55.157,
    "l": 56.275
  },
  "oklch": {
    "l": 0.81007,
    "c": 0.13695,
    "h": 105.8
  },
  "luminance": 0.53976
}

Semantic roles & 50–950 ramp

primary
#CDC652
secondary
#3C4087
accent
#52DE49
background
#FEFEFC
surface
#FCFBF3
border
#D5D4CD
text
#16140C
muted
#84837F

Preview Lab

Preview with #CDC652

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

Preview Lab → · Contrast checker → · Palette generator →

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