#CDC654#CDC654

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

Color values

HEX#CDC654
RGBrgb(205, 198, 84)
HSLhsl(57, 55%, 57%)
HSVhsv(57, 59%, 80%)
CMYKcmyk(0%, 3.4%, 59%, 19.6%)
CIE-LABlab(78.47, -11.87, 56.60)
CIE-LCHlch(78.47, 57.83, 101.85°)
OKLaboklab(81.03% -0.0367 0.1302)
OKLCHoklch(81.03% 0.135 105.8)
XYZxyz(46.9727, 54.0089, 16.3362)
Luminance0.5401 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CDC654 #545BCD
analogous
#CD8A54 #CDC654 #98CD54
triadic
#CDC654 #54CDC6 #C654CD
tetradic
#CDC654 #54CD8A #545BCD #CD5498
square
#CDC654 #54CD8A #545BCD #CD5498
split-complementary
#CDC654 #5498CD #8A54CD
monochromatic
#817C26 #B0A934 #CDC654 #DBD683 #E9E6B3

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##CDC654#FFFFFF#000000##000000
##CDC6541.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)
#D6BF47
Deuteranopia (green-blind)
#D8C45A
Tritanopia (blue-blind)
#DBBAAD
Achromatopsia (no color)
#C2C2C2

Design tokens & code

CSS
--color: #cdc654;
/* rgb */ color: rgb(205, 198, 84);
/* oklch */ color: oklch(81.0% 0.135 105.8);
Tailwind
colors: {
  custom: {
    50: '#dfd788',
    500: '#cdc654',
    950: '#000000',
  },
}
SCSS
$custom: #cdc654;
$custom-light: #dfd788;
$custom-dark: #000000;
JSON
{
  "hex": "#cdc654",
  "rgb": {
    "r": 205,
    "g": 198,
    "b": 84
  },
  "hsl": {
    "h": 56.529,
    "s": 54.751,
    "l": 56.667
  },
  "oklch": {
    "l": 0.81027,
    "c": 0.13528,
    "h": 105.8
  },
  "luminance": 0.54007
}

Semantic roles & 50–950 ramp

primary
#CDC654
secondary
#3D4188
accent
#52DE4A
background
#FEFEFC
surface
#FCFBF4
border
#D5D4CE
text
#16140C
muted
#84837F

Preview Lab

Preview with #CDC654

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

Preview Lab → · Contrast checker → · Palette generator →

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