#C8D798#C8D798

#C8D798 is a very light, moderate yellow-green. Relative luminance 0.631; OKLCH L 85.2% C 0.085 H 119.1°. Best body text is #000000 at 13.63:1 contrast (WCAG AA passes).

Color values

HEX#C8D798
RGBrgb(200, 215, 152)
HSLhsl(74, 44%, 72%)
HSVhsv(74, 29%, 84%)
CMYKcmyk(7%, 0%, 29.3%, 15.7%)
CIE-LABlab(83.52, -15.39, 29.48)
CIE-LCHlch(83.52, 33.26, 117.57°)
OKLaboklab(85.25% -0.0411 0.0739)
OKLCHoklch(85.25% 0.085 119.1)
XYZxyz(53.7870, 63.1474, 39.0548)
Luminance0.6315 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C8D798 #A798D7
analogous
#D7C798 #C8D798 #A9D798
triadic
#C8D798 #98C8D7 #D798C8
tetradic
#C8D798 #98D7C7 #A798D7 #D798A9
square
#C8D798 #98D7C7 #A798D7 #D798A9
split-complementary
#C8D798 #98A9D7 #C798D7
monochromatic
#97B044 #B0C66C #C8D798 #E0E8C4 #F3F6E9

Accessibility & contrast

On white

1.54
#C8D798 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

13.63
#C8D798 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #C8D798
13.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C8D798#FFFFFF#000000##000000
##C8D7981.001.5413.6313.63
#FFFFFF1.541.0021.0021.00
#00000013.6321.001.001.00
##00000013.6321.001.001.00

Color blindness preview

Protanopia (red-blind)
#DFD094
Deuteranopia (green-blind)
#DDD09B
Tritanopia (blue-blind)
#CED0C7
Achromatopsia (no color)
#D0D0D0

Design tokens & code

CSS
--color: #c8d798;
/* rgb */ color: rgb(200, 215, 152);
/* oklch */ color: oklch(85.2% 0.085 119.1);
Tailwind
colors: {
  custom: {
    50: '#d9e3b6',
    500: '#c8d798',
    950: '#000000',
  },
}
SCSS
$custom: #c8d798;
$custom-light: #d9e3b6;
$custom-dark: #000000;
JSON
{
  "hex": "#c8d798",
  "rgb": {
    "r": 200,
    "g": 215,
    "b": 152
  },
  "hsl": {
    "h": 74.286,
    "s": 44.056,
    "l": 71.961
  },
  "oklch": {
    "l": 0.85247,
    "c": 0.08456,
    "h": 119.1
  },
  "luminance": 0.63147
}

Semantic roles & 50–950 ramp

primary
#C8D798
secondary
#7765AE
accent
#2EB74F
background
#FEFEFD
surface
#FBFCF8
border
#D4D5D1
text
#151511
muted
#848481

Preview Lab

Preview with #C8D798

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

Preview Lab → · Contrast checker → · Palette generator →

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