#CDC766#CDC766

#CDC766 is a light, moderate yellow. Relative luminance 0.548; OKLCH L 81.4% C 0.120 H 105.6°. Best body text is #000000 at 11.96:1 contrast (WCAG AA passes).

Color values

HEX#CDC766
RGBrgb(205, 199, 102)
HSLhsl(57, 51%, 60%)
HSVhsv(57, 50%, 80%)
CMYKcmyk(0%, 2.9%, 50.2%, 19.6%)
CIE-LABlab(78.92, -10.96, 48.81)
CIE-LCHlch(78.92, 50.03, 102.65°)
OKLaboklab(81.45% -0.0322 0.1154)
OKLCHoklch(81.45% 0.12 105.6)
XYZxyz(47.9998, 54.7867, 20.6142)
Luminance0.5478 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CDC766 #666CCD
analogous
#CD9466 #CDC766 #9FCD66
triadic
#CDC766 #66CDC7 #C766CD
tetradic
#CDC766 #66CD94 #666CCD #CD669F
square
#CDC766 #66CD94 #666CCD #CD669F
split-complementary
#CDC766 #669FCD #9466CD
monochromatic
#8B862D #B9B23D #CDC766 #DCD894 #EBE9C2

Accessibility & contrast

On white

1.76
#CDC766 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

11.96
#CDC766 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CDC766
11.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CDC766#FFFFFF#000000##000000
##CDC7661.001.7611.9611.96
#FFFFFF1.761.0021.0021.00
#00000011.9621.001.001.00
##00000011.9621.001.001.00

Color blindness preview

Protanopia (red-blind)
#D5C15D
Deuteranopia (green-blind)
#D8C56B
Tritanopia (blue-blind)
#DABCB1
Achromatopsia (no color)
#C3C3C3

Design tokens & code

CSS
--color: #cdc766;
/* rgb */ color: rgb(205, 199, 102);
/* oklch */ color: oklch(81.4% 0.120 105.6);
Tailwind
colors: {
  custom: {
    50: '#ded794',
    500: '#cdc766',
    950: '#000000',
  },
}
SCSS
$custom: #cdc766;
$custom-light: #ded794;
$custom-dark: #000000;
JSON
{
  "hex": "#cdc766",
  "rgb": {
    "r": 205,
    "g": 199,
    "b": 102
  },
  "hsl": {
    "h": 56.505,
    "s": 50.739,
    "l": 60.196
  },
  "oklch": {
    "l": 0.81446,
    "c": 0.11978,
    "h": 105.6
  },
  "luminance": 0.54785
}

Semantic roles & 50–950 ramp

primary
#CDC766
secondary
#454A92
accent
#30BE27
background
#FEFEFC
surface
#FCFBF4
border
#D5D4CE
text
#15140D
muted
#84837F

Preview Lab

Preview with #CDC766

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

Preview Lab → · Contrast checker → · Palette generator →

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