#CDCD51#CDCD51

#CDCD51 is a very light, vivid yellow. Relative luminance 0.572; OKLCH L 82.5% C 0.145 H 109.2°. Best body text is #000000 at 12.45:1 contrast (WCAG AA passes).

Color values

HEX#CDCD51
RGBrgb(205, 205, 81)
HSLhsl(60, 55%, 56%)
HSVhsv(60, 60%, 80%)
CMYKcmyk(0%, 0%, 60.5%, 19.6%)
CIE-LABlab(80.31, -15.61, 59.91)
CIE-LCHlch(80.31, 61.91, 104.60°)
OKLaboklab(82.49% -0.0476 0.1368)
OKLCHoklch(82.49% 0.145 109.2)
XYZxyz(48.4948, 57.2372, 16.2763)
Luminance0.5724 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CDCD51 #5151CD
analogous
#CD8F51 #CDCD51 #8FCD51
triadic
#CDCD51 #51CDCD #CD51CD
tetradic
#CDCD51 #51CD8F #5151CD #CD518F
square
#CDCD51 #51CD8F #5151CD #CD518F
split-complementary
#CDCD51 #518FCD #8F51CD
monochromatic
#7F7F25 #AFAF32 #CDCD51 #DBDB81 #E8E8B0

Accessibility & contrast

On white

1.69
#CDCD51 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

12.45
#CDCD51 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CDCD51
12.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CDCD51#FFFFFF#000000##000000
##CDCD511.001.6912.4512.45
#FFFFFF1.691.0021.0021.00
#00000012.4521.001.001.00
##00000012.4521.001.001.00

Color blindness preview

Protanopia (red-blind)
#DCC542
Deuteranopia (green-blind)
#DEC958
Tritanopia (blue-blind)
#DBC1B3
Achromatopsia (no color)
#C7C7C7

Design tokens & code

CSS
--color: #cdcd51;
/* rgb */ color: rgb(205, 205, 81);
/* oklch */ color: oklch(82.5% 0.145 109.2);
Tailwind
colors: {
  custom: {
    50: '#dfdc87',
    500: '#cdcd51',
    950: '#000000',
  },
}
SCSS
$custom: #cdcd51;
$custom-light: #dfdc87;
$custom-dark: #000000;
JSON
{
  "hex": "#cdcd51",
  "rgb": {
    "r": 205,
    "g": 205,
    "b": 81
  },
  "hsl": {
    "h": 60,
    "s": 55.357,
    "l": 56.078
  },
  "oklch": {
    "l": 0.8249,
    "c": 0.14489,
    "h": 109.2
  },
  "luminance": 0.57236
}

Semantic roles & 50–950 ramp

primary
#CDCD51
secondary
#3B3B87
accent
#49DF49
background
#FEFEFC
surface
#FCFBF3
border
#D5D4CD
text
#16150C
muted
#84847F

Preview Lab

Preview with #CDCD51

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

Preview Lab → · Contrast checker → · Palette generator →

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