#CDC155#CDC155

#CDC155 is a light, vivid yellow. Relative luminance 0.518; OKLCH L 80.0% C 0.130 H 103.0°. Best body text is #000000 at 11.36:1 contrast (WCAG AA passes).

Color values

HEX#CDC155
RGBrgb(205, 193, 85)
HSLhsl(54, 55%, 57%)
HSVhsv(54, 59%, 80%)
CMYKcmyk(0%, 5.9%, 58.5%, 19.6%)
CIE-LABlab(77.15, -9.25, 54.69)
CIE-LCHlch(77.15, 55.46, 99.60°)
OKLaboklab(79.98% -0.0291 0.1263)
OKLCHoklch(79.98% 0.13 103)
XYZxyz(45.8881, 51.7766, 16.1693)
Luminance0.5178 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CDC155 #5561CD
analogous
#CD8555 #CDC155 #9DCD55
triadic
#CDC155 #55CDC1 #C155CD
tetradic
#CDC155 #55CD85 #5561CD #CD559D
square
#CDC155 #55CD85 #5561CD #CD559D
split-complementary
#CDC155 #559DCD #8555CD
monochromatic
#827826 #B1A434 #CDC155 #DBD284 #E9E3B4

Accessibility & contrast

On white

1.85
#CDC155 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

11.36
#CDC155 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CDC155
11.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CDC155#FFFFFF#000000##000000
##CDC1551.001.8511.3611.36
#FFFFFF1.851.0021.0021.00
#00000011.3621.001.001.00
##00000011.3621.001.001.00

Color blindness preview

Protanopia (red-blind)
#D1BB49
Deuteranopia (green-blind)
#D5C15B
Tritanopia (blue-blind)
#DBB5A9
Achromatopsia (no color)
#BEBEBE

Design tokens & code

CSS
--color: #cdc155;
/* rgb */ color: rgb(205, 193, 85);
/* oklch */ color: oklch(80.0% 0.130 103.0);
Tailwind
colors: {
  custom: {
    50: '#dfd389',
    500: '#cdc155',
    950: '#000000',
  },
}
SCSS
$custom: #cdc155;
$custom-light: #dfd389;
$custom-dark: #000000;
JSON
{
  "hex": "#cdc155",
  "rgb": {
    "r": 205,
    "g": 193,
    "b": 85
  },
  "hsl": {
    "h": 54,
    "s": 54.545,
    "l": 56.863
  },
  "oklch": {
    "l": 0.79981,
    "c": 0.12957,
    "h": 103
  },
  "luminance": 0.51775
}

Semantic roles & 50–950 ramp

primary
#CDC155
secondary
#3D4589
accent
#59DE4A
background
#FEFEFC
surface
#FCFBF4
border
#D5D4CE
text
#16140C
muted
#84837F

Preview Lab

Preview with #CDC155

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

Preview Lab → · Contrast checker → · Palette generator →

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