#CDC792#CDC792

#CDC792 is a very light, moderate yellow. Relative luminance 0.559; OKLCH L 82.2% C 0.070 H 102.4°. Best body text is #000000 at 12.18:1 contrast (WCAG AA passes).

Color values

HEX#CDC792
RGBrgb(205, 199, 146)
HSLhsl(54, 37%, 69%)
HSVhsv(54, 29%, 80%)
CMYKcmyk(0%, 2.9%, 28.8%, 19.6%)
CIE-LABlab(79.56, -6.15, 27.36)
CIE-LCHlch(79.56, 28.04, 102.67°)
OKLaboklab(82.16% -0.0151 0.0687)
OKLCHoklch(82.16% 0.07 102.4)
XYZxyz(50.7889, 55.9023, 35.3033)
Luminance0.5590 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CDC792 #9298CD
analogous
#CDAA92 #CDC792 #B6CD92
triadic
#CDC792 #92CDC7 #C792CD
tetradic
#CDC792 #92CDAA #9298CD #CD92B6
square
#CDC792 #92CDAA #9298CD #CD92B6
split-complementary
#CDC792 #92B6CD #AA92CD
monochromatic
#9D9448 #BAB168 #CDC792 #E0DDBC #F3F2E6

Accessibility & contrast

On white

1.72
#CDC792 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

12.18
#CDC792 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CDC792
12.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CDC792#FFFFFF#000000##000000
##CDC7921.001.7212.1812.18
#FFFFFF1.721.0021.0021.00
#00000012.1821.001.001.00
##00000012.1821.001.001.00

Color blindness preview

Protanopia (red-blind)
#D1C38E
Deuteranopia (green-blind)
#D3C794
Tritanopia (blue-blind)
#D6C0B9
Achromatopsia (no color)
#C5C5C5

Design tokens & code

CSS
--color: #cdc792;
/* rgb */ color: rgb(205, 199, 146);
/* oklch */ color: oklch(82.2% 0.070 102.4);
Tailwind
colors: {
  custom: {
    50: '#ddd7b2',
    500: '#cdc792',
    950: '#000000',
  },
}
SCSS
$custom: #cdc792;
$custom-light: #ddd7b2;
$custom-dark: #000000;
JSON
{
  "hex": "#cdc792",
  "rgb": {
    "r": 205,
    "g": 199,
    "b": 146
  },
  "hsl": {
    "h": 53.898,
    "s": 37.107,
    "l": 68.824
  },
  "oklch": {
    "l": 0.82162,
    "c": 0.07031,
    "h": 102.4
  },
  "luminance": 0.55901
}

Semantic roles & 50–950 ramp

primary
#CDC792
secondary
#6168A2
accent
#42B035
background
#FEFEFD
surface
#FCFBF7
border
#D5D4D0
text
#151411
muted
#848381

Preview Lab

Preview with #CDC792

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

Preview Lab → · Contrast checker → · Palette generator →

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