#CDCF51#CDCF51

#CDCF51 is a very light, vivid yellow. Relative luminance 0.582; OKLCH L 82.9% C 0.147 H 110.1°. Best body text is #000000 at 12.64:1 contrast (WCAG AA passes).

Color values

HEX#CDCF51
RGBrgb(205, 207, 81)
HSLhsl(61, 57%, 56%)
HSVhsv(61, 61%, 81%)
CMYKcmyk(1%, 0%, 60.9%, 18.8%)
CIE-LABlab(80.85, -16.60, 60.49)
CIE-LCHlch(80.85, 62.73, 105.35°)
OKLaboklab(82.92% -0.0505 0.1381)
OKLCHoklch(82.92% 0.147 110.1)
XYZxyz(48.9763, 58.2001, 16.4368)
Luminance0.5820 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CDCF51 #5351CF
analogous
#CF9251 #CDCF51 #8ECF51
triadic
#CDCF51 #51CDCF #CF51CD
tetradic
#CDCF51 #51CF92 #5351CF #CF518E
square
#CDCF51 #51CF92 #5351CF #CF518E
split-complementary
#CDCF51 #518ECF #9251CF
monochromatic
#808224 #B0B231 #CDCF51 #DBDC81 #E9E9B1

Accessibility & contrast

On white

1.66
#CDCF51 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

12.64
#CDCF51 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CDCF51
12.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CDCF51#FFFFFF#000000##000000
##CDCF511.001.6612.6412.64
#FFFFFF1.661.0021.0021.00
#00000012.6421.001.001.00
##00000012.6421.001.001.00

Color blindness preview

Protanopia (red-blind)
#DEC742
Deuteranopia (green-blind)
#E0CB59
Tritanopia (blue-blind)
#DAC3B5
Achromatopsia (no color)
#C9C9C9

Design tokens & code

CSS
--color: #cdcf51;
/* rgb */ color: rgb(205, 207, 81);
/* oklch */ color: oklch(82.9% 0.147 110.1);
Tailwind
colors: {
  custom: {
    50: '#dfdd87',
    500: '#cdcf51',
    950: '#000000',
  },
}
SCSS
$custom: #cdcf51;
$custom-light: #dfdd87;
$custom-dark: #000000;
JSON
{
  "hex": "#cdcf51",
  "rgb": {
    "r": 205,
    "g": 207,
    "b": 81
  },
  "hsl": {
    "h": 60.952,
    "s": 56.757,
    "l": 56.471
  },
  "oklch": {
    "l": 0.82918,
    "c": 0.14699,
    "h": 110.1
  },
  "luminance": 0.58199
}

Semantic roles & 50–950 ramp

primary
#CDCF51
secondary
#3C3B89
accent
#48E04A
background
#FEFEFC
surface
#FCFCF4
border
#D5D5CE
text
#16150C
muted
#84847F

Preview Lab

Preview with #CDCF51

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

Preview Lab → · Contrast checker → · Palette generator →

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