#AFC877#AFC877

#AFC877 is a light, moderate yellow-green. Relative luminance 0.518; OKLCH L 79.5% C 0.110 H 122.9°. Best body text is #000000 at 11.35:1 contrast (WCAG AA passes).

Color values

HEX#AFC877
RGBrgb(175, 200, 119)
HSLhsl(79, 42%, 63%)
HSVhsv(79, 41%, 78%)
CMYKcmyk(12.5%, 0%, 40.5%, 21.6%)
CIE-LABlab(77.13, -21.62, 37.71)
CIE-LCHlch(77.13, 43.47, 119.83°)
OKLaboklab(79.53% -0.0596 0.0921)
OKLCHoklch(79.53% 0.11 122.9)
XYZxyz(41.6631, 51.7543, 25.2439)
Luminance0.5175 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFC877 #9077C8
analogous
#C8B977 #AFC877 #86C877
triadic
#AFC877 #77AFC8 #C877AF
tetradic
#AFC877 #77C8B9 #9077C8 #C87786
square
#AFC877 #77C8B9 #9077C8 #C87786
split-complementary
#AFC877 #7786C8 #B977C8
monochromatic
#728C39 #95B64B #AFC877 #C9DAA3 #E2EBCE

Accessibility & contrast

On white

1.85
#AFC877 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

11.35
#AFC877 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFC877
11.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFC877#FFFFFF#000000##000000
##AFC8771.001.8511.3511.35
#FFFFFF1.851.0021.0021.00
#00000011.3521.001.001.00
##00000011.3521.001.001.00

Color blindness preview

Protanopia (red-blind)
#D1BF71
Deuteranopia (green-blind)
#CDBE7B
Tritanopia (blue-blind)
#B5C1B4
Achromatopsia (no color)
#BEBEBE

Design tokens & code

CSS
--color: #afc877;
/* rgb */ color: rgb(175, 200, 119);
/* oklch */ color: oklch(79.5% 0.110 122.9);
Tailwind
colors: {
  custom: {
    50: '#c8d89f',
    500: '#afc877',
    950: '#000000',
  },
}
SCSS
$custom: #afc877;
$custom-light: #c8d89f;
$custom-dark: #000000;
JSON
{
  "hex": "#afc877",
  "rgb": {
    "r": 175,
    "g": 200,
    "b": 119
  },
  "hsl": {
    "h": 78.519,
    "s": 42.408,
    "l": 62.549
  },
  "oklch": {
    "l": 0.7953,
    "c": 0.10969,
    "h": 122.9
  },
  "luminance": 0.51754
}

Semantic roles & 50–950 ramp

primary
#AFC877
secondary
#655093
accent
#30B559
background
#FDFEFC
surface
#F9FBF5
border
#D2D4CF
text
#13140E
muted
#82837F

Preview Lab

Preview with #AFC877

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

Preview Lab → · Contrast checker → · Palette generator →

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