#CDC256#CDC256

#CDC256 is a light, vivid yellow. Relative luminance 0.522; OKLCH L 80.2% C 0.130 H 103.5°. Best body text is #000000 at 11.45:1 contrast (WCAG AA passes).

Color values

HEX#CDC256
RGBrgb(205, 194, 86)
HSLhsl(54, 54%, 57%)
HSVhsv(54, 58%, 80%)
CMYKcmyk(0%, 5.4%, 58%, 19.6%)
CIE-LABlab(77.42, -9.69, 54.54)
CIE-LCHlch(77.42, 55.40, 100.08°)
OKLaboklab(80.2% -0.0303 0.1261)
OKLCHoklch(80.2% 0.13 103.5)
XYZxyz(46.1499, 52.2362, 16.4539)
Luminance0.5223 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CDC256 #5661CD
analogous
#CD8756 #CDC256 #9CCD56
triadic
#CDC256 #56CDC2 #C256CD
tetradic
#CDC256 #56CD87 #5661CD #CD569C
square
#CDC256 #56CD87 #5661CD #CD569C
split-complementary
#CDC256 #569CCD #8756CD
monochromatic
#827A26 #B1A634 #CDC256 #DBD385 #E9E4B4

Accessibility & contrast

On white

1.83
#CDC256 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

11.45
#CDC256 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CDC256
11.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CDC256#FFFFFF#000000##000000
##CDC2561.001.8311.4511.45
#FFFFFF1.831.0021.0021.00
#00000011.4521.001.001.00
##00000011.4521.001.001.00

Color blindness preview

Protanopia (red-blind)
#D2BC4B
Deuteranopia (green-blind)
#D5C25C
Tritanopia (blue-blind)
#DBB6AA
Achromatopsia (no color)
#BFBFBF

Design tokens & code

CSS
--color: #cdc256;
/* rgb */ color: rgb(205, 194, 86);
/* oklch */ color: oklch(80.2% 0.130 103.5);
Tailwind
colors: {
  custom: {
    50: '#dfd489',
    500: '#cdc256',
    950: '#000000',
  },
}
SCSS
$custom: #cdc256;
$custom-light: #dfd489;
$custom-dark: #000000;
JSON
{
  "hex": "#cdc256",
  "rgb": {
    "r": 205,
    "g": 194,
    "b": 86
  },
  "hsl": {
    "h": 54.454,
    "s": 54.338,
    "l": 57.059
  },
  "oklch": {
    "l": 0.80202,
    "c": 0.12965,
    "h": 103.5
  },
  "luminance": 0.52235
}

Semantic roles & 50–950 ramp

primary
#CDC256
secondary
#3E4589
accent
#58DE4A
background
#FEFEFC
surface
#FCFBF4
border
#D5D4CE
text
#16140C
muted
#84837F

Preview Lab

Preview with #CDC256

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

Preview Lab → · Contrast checker → · Palette generator →

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