#CDC651#CDC651

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

Color values

HEX#CDC651
RGBrgb(205, 198, 81)
HSLhsl(57, 55%, 56%)
HSVhsv(57, 60%, 80%)
CMYKcmyk(0%, 3.4%, 60.5%, 19.6%)
CIE-LABlab(78.44, -12.08, 57.88)
CIE-LCHlch(78.44, 59.13, 101.79°)
OKLaboklab(81% -0.0377 0.1325)
OKLCHoklch(81% 0.138 105.9)
XYZxyz(46.8577, 53.9629, 15.7306)
Luminance0.5396 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CDC651 #5158CD
analogous
#CD8851 #CDC651 #96CD51
triadic
#CDC651 #51CDC6 #C651CD
tetradic
#CDC651 #51CD88 #5158CD #CD5196
square
#CDC651 #51CD88 #5158CD #CD5196
split-complementary
#CDC651 #5196CD #8851CD
monochromatic
#7F7A25 #AFA832 #CDC651 #DBD681 #E8E5B0

Accessibility & contrast

On white

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

On black

11.79
#CDC651 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CDC651
11.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CDC651#FFFFFF#000000##000000
##CDC6511.001.7811.7911.79
#FFFFFF1.781.0021.0021.00
#00000011.7921.001.001.00
##00000011.7921.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #cdc651;
/* rgb */ color: rgb(205, 198, 81);
/* oklch */ color: oklch(81.0% 0.138 105.9);
Tailwind
colors: {
  custom: {
    50: '#dfd787',
    500: '#cdc651',
    950: '#000000',
  },
}
SCSS
$custom: #cdc651;
$custom-light: #dfd787;
$custom-dark: #000000;
JSON
{
  "hex": "#cdc651",
  "rgb": {
    "r": 205,
    "g": 198,
    "b": 81
  },
  "hsl": {
    "h": 56.613,
    "s": 55.357,
    "l": 56.078
  },
  "oklch": {
    "l": 0.80997,
    "c": 0.13777,
    "h": 105.9
  },
  "luminance": 0.53961
}

Semantic roles & 50–950 ramp

primary
#CDC651
secondary
#3B4087
accent
#52DF49
background
#FEFEFC
surface
#FCFBF3
border
#D5D4CD
text
#16140C
muted
#84837F

Preview Lab

Preview with #CDC651

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

Preview Lab → · Contrast checker → · Palette generator →

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