#CDC351#CDC351

#CDC351 is a light, vivid yellow. Relative luminance 0.526; OKLCH L 80.4% C 0.135 H 104.3°. Best body text is #000000 at 11.52:1 contrast (WCAG AA passes).

Color values

HEX#CDC351
RGBrgb(205, 195, 81)
HSLhsl(55, 55%, 56%)
HSVhsv(55, 60%, 80%)
CMYKcmyk(0%, 4.9%, 60.5%, 19.6%)
CIE-LABlab(77.64, -10.55, 57.01)
CIE-LCHlch(77.64, 57.98, 100.49°)
OKLaboklab(80.36% -0.0333 0.1307)
OKLCHoklch(80.36% 0.135 104.3)
XYZxyz(46.1788, 52.6051, 15.5043)
Luminance0.5260 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CDC351 #515BCD
analogous
#CD8551 #CDC351 #99CD51
triadic
#CDC351 #51CDC3 #C351CD
tetradic
#CDC351 #51CD85 #515BCD #CD5199
square
#CDC351 #51CD85 #515BCD #CD5199
split-complementary
#CDC351 #5199CD #8551CD
monochromatic
#7F7825 #AFA532 #CDC351 #DBD381 #E8E4B0

Accessibility & contrast

On white

1.82
#CDC351 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

11.52
#CDC351 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CDC351
11.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CDC351#FFFFFF#000000##000000
##CDC3511.001.8211.5211.52
#FFFFFF1.821.0021.0021.00
#00000011.5221.001.001.00
##00000011.5221.001.001.00

Color blindness preview

Protanopia (red-blind)
#D3BD44
Deuteranopia (green-blind)
#D6C257
Tritanopia (blue-blind)
#DBB7AB
Achromatopsia (no color)
#C0C0C0

Design tokens & code

CSS
--color: #cdc351;
/* rgb */ color: rgb(205, 195, 81);
/* oklch */ color: oklch(80.4% 0.135 104.3);
Tailwind
colors: {
  custom: {
    50: '#dfd486',
    500: '#cdc351',
    950: '#000000',
  },
}
SCSS
$custom: #cdc351;
$custom-light: #dfd486;
$custom-dark: #000000;
JSON
{
  "hex": "#cdc351",
  "rgb": {
    "r": 205,
    "g": 195,
    "b": 81
  },
  "hsl": {
    "h": 55.161,
    "s": 55.357,
    "l": 56.078
  },
  "oklch": {
    "l": 0.80362,
    "c": 0.13486,
    "h": 104.3
  },
  "luminance": 0.52603
}

Semantic roles & 50–950 ramp

primary
#CDC351
secondary
#3B4287
accent
#55DF49
background
#FEFEFB
surface
#FCFBF2
border
#D5D4CC
text
#16140B
muted
#84837E

Preview Lab

Preview with #CDC351

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

Preview Lab → · Contrast checker → · Palette generator →

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