#AFC581#AFC581

#AFC581 is a light, moderate yellow-green. Relative luminance 0.506; OKLCH L 79.0% C 0.094 H 123.1°. Best body text is #000000 at 11.13:1 contrast (WCAG AA passes).

Color values

HEX#AFC581
RGBrgb(175, 197, 129)
HSLhsl(79, 37%, 64%)
HSVhsv(79, 35%, 77%)
CMYKcmyk(11.2%, 0%, 34.5%, 22.7%)
CIE-LABlab(76.46, -18.87, 31.70)
CIE-LCHlch(76.46, 36.89, 120.76°)
OKLaboklab(79.04% -0.0513 0.0786)
OKLCHoklch(79.04% 0.094 123.1)
XYZxyz(41.6076, 50.6314, 28.3455)
Luminance0.5063 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFC581 #9781C5
analogous
#C5B981 #AFC581 #8DC581
triadic
#AFC581 #81AFC5 #C581AF
tetradic
#AFC581 #81C5B9 #9781C5 #C5818D
square
#AFC581 #81C5B9 #9781C5 #C5818D
split-complementary
#AFC581 #818DC5 #B981C5
monochromatic
#738B40 #94B257 #AFC581 #CAD8AB #E4ECD5

Accessibility & contrast

On white

1.89
#AFC581 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

11.13
#AFC581 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFC581
11.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFC581#FFFFFF#000000##000000
##AFC5811.001.8911.1311.13
#FFFFFF1.891.0021.0021.00
#00000011.1321.001.001.00
##00000011.1321.001.001.00

Color blindness preview

Protanopia (red-blind)
#CDBD7C
Deuteranopia (green-blind)
#CABD84
Tritanopia (blue-blind)
#B4BFB4
Achromatopsia (no color)
#BDBDBD

Design tokens & code

CSS
--color: #afc581;
/* rgb */ color: rgb(175, 197, 129);
/* oklch */ color: oklch(79.0% 0.094 123.1);
Tailwind
colors: {
  custom: {
    50: '#c7d6a6',
    500: '#afc581',
    950: '#000000',
  },
}
SCSS
$custom: #afc581;
$custom-light: #c7d6a6;
$custom-dark: #000000;
JSON
{
  "hex": "#afc581",
  "rgb": {
    "r": 175,
    "g": 197,
    "b": 129
  },
  "hsl": {
    "h": 79.412,
    "s": 36.957,
    "l": 63.922
  },
  "oklch": {
    "l": 0.79037,
    "c": 0.09386,
    "h": 123.1
  },
  "luminance": 0.50631
}

Semantic roles & 50–950 ramp

primary
#AFC581
secondary
#6A5793
accent
#36B05D
background
#FDFEFC
surface
#F9FBF6
border
#D2D4D0
text
#13140F
muted
#828380

Preview Lab

Preview with #AFC581

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

Preview Lab → · Contrast checker → · Palette generator →

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