#CDC794#CDC794

#CDC794 is a very light, moderate yellow. Relative luminance 0.560; OKLCH L 82.2% C 0.068 H 102.1°. Best body text is #000000 at 12.19:1 contrast (WCAG AA passes).

Color values

HEX#CDC794
RGBrgb(205, 199, 148)
HSLhsl(54, 36%, 69%)
HSVhsv(54, 28%, 80%)
CMYKcmyk(0%, 2.9%, 27.8%, 19.6%)
CIE-LABlab(79.59, -5.89, 26.35)
CIE-LCHlch(79.59, 27.00, 102.59°)
OKLaboklab(82.2% -0.0142 0.0663)
OKLCHoklch(82.2% 0.068 102.1)
XYZxyz(50.9458, 55.9651, 36.1298)
Luminance0.5596 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CDC794 #949ACD
analogous
#CDAB94 #CDC794 #B7CD94
triadic
#CDC794 #94CDC7 #C794CD
tetradic
#CDC794 #94CDAB #949ACD #CD94B7
square
#CDC794 #94CDAB #949ACD #CD94B7
split-complementary
#CDC794 #94B7CD #AB94CD
monochromatic
#9D9449 #BAB16A #CDC794 #E0DDBE #F4F3E7

Accessibility & contrast

On white

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

On black

12.19
#CDC794 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CDC794
12.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CDC794#FFFFFF#000000##000000
##CDC7941.001.7212.1912.19
#FFFFFF1.721.0021.0021.00
#00000012.1921.001.001.00
##00000012.1921.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #cdc794;
/* rgb */ color: rgb(205, 199, 148);
/* oklch */ color: oklch(82.2% 0.068 102.1);
Tailwind
colors: {
  custom: {
    50: '#ddd7b3',
    500: '#cdc794',
    950: '#000000',
  },
}
SCSS
$custom: #cdc794;
$custom-light: #ddd7b3;
$custom-dark: #000000;
JSON
{
  "hex": "#cdc794",
  "rgb": {
    "r": 205,
    "g": 199,
    "b": 148
  },
  "hsl": {
    "h": 53.684,
    "s": 36.306,
    "l": 69.216
  },
  "oklch": {
    "l": 0.82202,
    "c": 0.06783,
    "h": 102.1
  },
  "luminance": 0.55964
}

Semantic roles & 50–950 ramp

primary
#CDC794
secondary
#636AA2
accent
#43AF36
background
#FEFEFD
surface
#FCFBF8
border
#D5D4D1
text
#151411
muted
#848381

Preview Lab

Preview with #CDC794

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

Preview Lab → · Contrast checker → · Palette generator →

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