#AFC796#AFC796

#AFC796 is a light, moderate yellow-green. Relative luminance 0.522; OKLCH L 79.9% C 0.072 H 129.1°. Best body text is #000000 at 11.43:1 contrast (WCAG AA passes).

Color values

HEX#AFC796
RGBrgb(175, 199, 150)
HSLhsl(89, 30%, 68%)
HSVhsv(89, 25%, 78%)
CMYKcmyk(12.1%, 0%, 24.6%, 22%)
CIE-LABlab(77.38, -16.86, 21.91)
CIE-LCHlch(77.38, 27.65, 127.57°)
OKLaboklab(79.9% -0.0453 0.0556)
OKLCHoklch(79.9% 0.072 129.1)
XYZxyz(43.6068, 52.1624, 36.6192)
Luminance0.5216 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFC796 #AE96C7
analogous
#C7C696 #AFC796 #96C796
triadic
#AFC796 #96AFC7 #C796AF
tetradic
#AFC796 #96C7C6 #AE96C7 #C79696
square
#AFC796 #96C7C6 #AE96C7 #C79696
split-complementary
#AFC796 #9696C7 #C696C7
monochromatic
#72944F #91B26E #AFC796 #CDDCBE #ECF2E6

Accessibility & contrast

On white

1.84
#AFC796 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

11.43
#AFC796 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFC796
11.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFC796#FFFFFF#000000##000000
##AFC7961.001.8411.4311.43
#FFFFFF1.841.0021.0021.00
#00000011.4321.001.001.00
##00000011.4321.001.001.00

Color blindness preview

Protanopia (red-blind)
#CCC093
Deuteranopia (green-blind)
#C8BF98
Tritanopia (blue-blind)
#B1C3BA
Achromatopsia (no color)
#BFBFBF

Design tokens & code

CSS
--color: #afc796;
/* rgb */ color: rgb(175, 199, 150);
/* oklch */ color: oklch(79.9% 0.072 129.1);
Tailwind
colors: {
  custom: {
    50: '#c7d8b5',
    500: '#afc796',
    950: '#000000',
  },
}
SCSS
$custom: #afc796;
$custom-light: #c7d8b5;
$custom-dark: #000000;
JSON
{
  "hex": "#afc796",
  "rgb": {
    "r": 175,
    "g": 199,
    "b": 150
  },
  "hsl": {
    "h": 89.388,
    "s": 30.435,
    "l": 68.431
  },
  "oklch": {
    "l": 0.79896,
    "c": 0.07172,
    "h": 129.1
  },
  "luminance": 0.52163
}

Semantic roles & 50–950 ramp

primary
#AFC796
secondary
#80669C
accent
#3CA972
background
#FDFEFD
surface
#F9FBF8
border
#D2D4D1
text
#131411
muted
#828381

Preview Lab

Preview with #AFC796

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

Preview Lab → · Contrast checker → · Palette generator →

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