#CDC56F#CDC56F

#CDC56F is a light, moderate yellow. Relative luminance 0.541; OKLCH L 81.1% C 0.108 H 103.8°. Best body text is #000000 at 11.81:1 contrast (WCAG AA passes).

Color values

HEX#CDC56F
RGBrgb(205, 197, 111)
HSLhsl(55, 48%, 62%)
HSVhsv(55, 46%, 80%)
CMYKcmyk(0%, 3.9%, 45.9%, 19.6%)
CIE-LABlab(78.50, -9.11, 43.92)
CIE-LCHlch(78.50, 44.85, 101.71°)
OKLaboklab(81.15% -0.0259 0.1053)
OKLCHoklch(81.15% 0.108 103.8)
XYZxyz(48.0134, 54.0607, 22.9414)
Luminance0.5406 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CDC56F #6F77CD
analogous
#CD966F #CDC56F #A6CD6F
triadic
#CDC56F #6FCDC5 #C56FCD
tetradic
#CDC56F #6FCD96 #6F77CD #CD6FA6
square
#CDC56F #6FCD96 #6F77CD #CD6FA6
split-complementary
#CDC56F #6FA6CD #966FCD
monochromatic
#908832 #BDB342 #CDC56F #DDD79C #EDEACA

Accessibility & contrast

On white

1.78
#CDC56F on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

11.81
#CDC56F on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CDC56F
11.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CDC56F#FFFFFF#000000##000000
##CDC56F1.001.7811.8111.81
#FFFFFF1.781.0021.0021.00
#00000011.8121.001.001.00
##00000011.8121.001.001.00

Color blindness preview

Protanopia (red-blind)
#D3C068
Deuteranopia (green-blind)
#D5C473
Tritanopia (blue-blind)
#D9BBB1
Achromatopsia (no color)
#C2C2C2

Design tokens & code

CSS
--color: #cdc56f;
/* rgb */ color: rgb(205, 197, 111);
/* oklch */ color: oklch(81.1% 0.108 103.8);
Tailwind
colors: {
  custom: {
    50: '#ded69a',
    500: '#cdc56f',
    950: '#000000',
  },
}
SCSS
$custom: #cdc56f;
$custom-light: #ded69a;
$custom-dark: #000000;
JSON
{
  "hex": "#cdc56f",
  "rgb": {
    "r": 205,
    "g": 197,
    "b": 111
  },
  "hsl": {
    "h": 54.894,
    "s": 48.454,
    "l": 61.961
  },
  "oklch": {
    "l": 0.81147,
    "c": 0.10847,
    "h": 103.8
  },
  "luminance": 0.54059
}

Semantic roles & 50–950 ramp

primary
#CDC56F
secondary
#4A5196
accent
#36BC2A
background
#FEFEFC
surface
#FCFBF5
border
#D5D4CF
text
#15140E
muted
#84837F

Preview Lab

Preview with #CDC56F

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

Preview Lab → · Contrast checker → · Palette generator →

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