#CDC968#CDC968

#CDC968 is a light, moderate yellow. Relative luminance 0.558; OKLCH L 81.9% C 0.120 H 106.7°. Best body text is #000000 at 12.15:1 contrast (WCAG AA passes).

Color values

HEX#CDC968
RGBrgb(205, 201, 104)
HSLhsl(58, 50%, 61%)
HSVhsv(58, 49%, 80%)
CMYKcmyk(0%, 2%, 49.3%, 19.6%)
CIE-LABlab(79.47, -11.80, 48.51)
CIE-LCHlch(79.47, 49.93, 103.67°)
OKLaboklab(81.9% -0.0344 0.1149)
OKLCHoklch(81.9% 0.12 106.7)
XYZxyz(48.5634, 55.7532, 21.2973)
Luminance0.5575 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CDC968 #686CCD
analogous
#CD9668 #CDC968 #9ECD68
triadic
#CDC968 #68CDC9 #C968CD
tetradic
#CDC968 #68CD96 #686CCD #CD689E
square
#CDC968 #68CD96 #686CCD #CD689E
split-complementary
#CDC968 #689ECD #9668CD
monochromatic
#8C882E #BAB53E #CDC968 #DCD996 #EBEAC4

Accessibility & contrast

On white

1.73
#CDC968 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

12.15
#CDC968 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CDC968
12.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CDC968#FFFFFF#000000##000000
##CDC9681.001.7312.1512.15
#FFFFFF1.731.0021.0021.00
#00000012.1521.001.001.00
##00000012.1521.001.001.00

Color blindness preview

Protanopia (red-blind)
#D7C35F
Deuteranopia (green-blind)
#D9C76D
Tritanopia (blue-blind)
#D9BEB3
Achromatopsia (no color)
#C5C5C5

Design tokens & code

CSS
--color: #cdc968;
/* rgb */ color: rgb(205, 201, 104);
/* oklch */ color: oklch(81.9% 0.120 106.7);
Tailwind
colors: {
  custom: {
    50: '#ded995',
    500: '#cdc968',
    950: '#000000',
  },
}
SCSS
$custom: #cdc968;
$custom-light: #ded995;
$custom-dark: #000000;
JSON
{
  "hex": "#cdc968",
  "rgb": {
    "r": 205,
    "g": 201,
    "b": 104
  },
  "hsl": {
    "h": 57.624,
    "s": 50.249,
    "l": 60.588
  },
  "oklch": {
    "l": 0.81895,
    "c": 0.11994,
    "h": 106.7
  },
  "luminance": 0.55752
}

Semantic roles & 50–950 ramp

primary
#CDC968
secondary
#464993
accent
#2EBE28
background
#FEFEFC
surface
#FCFBF4
border
#D5D4CE
text
#15140D
muted
#84837F

Preview Lab

Preview with #CDC968

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

Preview Lab → · Contrast checker → · Palette generator →

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