#CDC798#CDC798

#CDC798 is a very light, moderate yellow. Relative luminance 0.561; OKLCH L 82.3% C 0.063 H 101.6°. Best body text is #000000 at 12.22:1 contrast (WCAG AA passes).

Color values

HEX#CDC798
RGBrgb(205, 199, 152)
HSLhsl(53, 35%, 70%)
HSVhsv(53, 26%, 80%)
CMYKcmyk(0%, 2.9%, 25.9%, 19.6%)
CIE-LABlab(79.67, -5.35, 24.35)
CIE-LCHlch(79.67, 24.93, 102.39°)
OKLaboklab(82.28% -0.0126 0.0616)
OKLCHoklch(82.28% 0.063 101.6)
XYZxyz(51.2679, 56.0939, 37.8262)
Luminance0.5609 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CDC798 #989ECD
analogous
#CDAD98 #CDC798 #B8CD98
triadic
#CDC798 #98CDC7 #C798CD
tetradic
#CDC798 #98CDAD #989ECD #CD98B8
square
#CDC798 #98CDAD #989ECD #CD98B8
split-complementary
#CDC798 #98B8CD #AD98CD
monochromatic
#9E954D #B9B16F #CDC798 #E1DDC1 #F5F4EA

Accessibility & contrast

On white

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

On black

12.22
#CDC798 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CDC798
12.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CDC798#FFFFFF#000000##000000
##CDC7981.001.7212.2212.22
#FFFFFF1.721.0021.0021.00
#00000012.2221.001.001.00
##00000012.2221.001.001.00

Color blindness preview

Protanopia (red-blind)
#D0C495
Deuteranopia (green-blind)
#D2C79A
Tritanopia (blue-blind)
#D5C0BA
Achromatopsia (no color)
#C5C5C5

Design tokens & code

CSS
--color: #cdc798;
/* rgb */ color: rgb(205, 199, 152);
/* oklch */ color: oklch(82.3% 0.063 101.6);
Tailwind
colors: {
  custom: {
    50: '#dcd7b6',
    500: '#cdc798',
    950: '#000000',
  },
}
SCSS
$custom: #cdc798;
$custom-light: #dcd7b6;
$custom-dark: #000000;
JSON
{
  "hex": "#cdc798",
  "rgb": {
    "r": 205,
    "g": 199,
    "b": 152
  },
  "hsl": {
    "h": 53.208,
    "s": 34.641,
    "l": 70
  },
  "oklch": {
    "l": 0.82284,
    "c": 0.06284,
    "h": 101.6
  },
  "luminance": 0.56093
}

Semantic roles & 50–950 ramp

primary
#CDC798
secondary
#676EA2
accent
#45AD38
background
#FEFEFD
surface
#FCFBF8
border
#D5D4D1
text
#151411
muted
#848381

Preview Lab

Preview with #CDC798

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

Preview Lab → · Contrast checker → · Palette generator →

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