#CDC868#CDC868

#CDC868 is a light, moderate yellow. Relative luminance 0.553; OKLCH L 81.7% C 0.119 H 106.1°. Best body text is #000000 at 12.06:1 contrast (WCAG AA passes).

Color values

HEX#CDC868
RGBrgb(205, 200, 104)
HSLhsl(57, 50%, 61%)
HSVhsv(57, 49%, 80%)
CMYKcmyk(0%, 2.4%, 49.3%, 19.6%)
CIE-LABlab(79.21, -11.29, 48.20)
CIE-LCHlch(79.21, 49.50, 103.18°)
OKLaboklab(81.68% -0.0329 0.1142)
OKLCHoklch(81.68% 0.119 106.1)
XYZxyz(48.3310, 55.2885, 21.2198)
Luminance0.5529 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CDC868 #686DCD
analogous
#CD9568 #CDC868 #9FCD68
triadic
#CDC868 #68CDC8 #C868CD
tetradic
#CDC868 #68CD95 #686DCD #CD689F
square
#CDC868 #68CD95 #686DCD #CD689F
split-complementary
#CDC868 #689FCD #9568CD
monochromatic
#8C882E #BAB43E #CDC868 #DCD996 #EBE9C4

Accessibility & contrast

On white

1.74
#CDC868 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

12.06
#CDC868 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CDC868
12.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CDC868#FFFFFF#000000##000000
##CDC8681.001.7412.0612.06
#FFFFFF1.741.0021.0021.00
#00000012.0621.001.001.00
##00000012.0621.001.001.00

Color blindness preview

Protanopia (red-blind)
#D6C25F
Deuteranopia (green-blind)
#D8C66D
Tritanopia (blue-blind)
#D9BDB2
Achromatopsia (no color)
#C4C4C4

Design tokens & code

CSS
--color: #cdc868;
/* rgb */ color: rgb(205, 200, 104);
/* oklch */ color: oklch(81.7% 0.119 106.1);
Tailwind
colors: {
  custom: {
    50: '#ded895',
    500: '#cdc868',
    950: '#000000',
  },
}
SCSS
$custom: #cdc868;
$custom-light: #ded895;
$custom-dark: #000000;
JSON
{
  "hex": "#cdc868",
  "rgb": {
    "r": 205,
    "g": 200,
    "b": 104
  },
  "hsl": {
    "h": 57.03,
    "s": 50.249,
    "l": 60.588
  },
  "oklch": {
    "l": 0.81683,
    "c": 0.11886,
    "h": 106.1
  },
  "luminance": 0.55287
}

Semantic roles & 50–950 ramp

primary
#CDC868
secondary
#464A93
accent
#2FBE28
background
#FEFEFC
surface
#FCFBF4
border
#D5D4CE
text
#15140D
muted
#84837F

Preview Lab

Preview with #CDC868

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

Preview Lab → · Contrast checker → · Palette generator →

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