#AFC787#AFC787

#AFC787 is a light, moderate yellow-green. Relative luminance 0.517; OKLCH L 79.6% C 0.090 H 125.1°. Best body text is #000000 at 11.34:1 contrast (WCAG AA passes).

Color values

HEX#AFC787
RGBrgb(175, 199, 135)
HSLhsl(83, 36%, 65%)
HSVhsv(83, 32%, 78%)
CMYKcmyk(12.1%, 0%, 32.2%, 22%)
CIE-LABlab(77.11, -19.05, 29.44)
CIE-LCHlch(77.11, 35.07, 122.91°)
OKLaboklab(79.59% -0.0516 0.0735)
OKLCHoklch(79.59% 0.09 125.1)
XYZxyz(42.4753, 51.7099, 30.6603)
Luminance0.5171 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFC787 #9F87C7
analogous
#C7BF87 #AFC787 #8FC787
triadic
#AFC787 #87AFC7 #C787AF
tetradic
#AFC787 #87C7BF #9F87C7 #C7878F
square
#AFC787 #87C7BF #9F87C7 #C7878F
split-complementary
#AFC787 #878FC7 #BF87C7
monochromatic
#739043 #93B45D #AFC787 #CBDAB1 #E7EEDA

Accessibility & contrast

On white

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

On black

11.34
#AFC787 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFC787
11.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFC787#FFFFFF#000000##000000
##AFC7871.001.8511.3411.34
#FFFFFF1.851.0021.0021.00
#00000011.3421.001.001.00
##00000011.3421.001.001.00

Color blindness preview

Protanopia (red-blind)
#CEBF83
Deuteranopia (green-blind)
#CABE8A
Tritanopia (blue-blind)
#B3C1B6
Achromatopsia (no color)
#BEBEBE

Design tokens & code

CSS
--color: #afc787;
/* rgb */ color: rgb(175, 199, 135);
/* oklch */ color: oklch(79.6% 0.090 125.1);
Tailwind
colors: {
  custom: {
    50: '#c7d8aa',
    500: '#afc787',
    950: '#000000',
  },
}
SCSS
$custom: #afc787;
$custom-light: #c7d8aa;
$custom-dark: #000000;
JSON
{
  "hex": "#afc787",
  "rgb": {
    "r": 175,
    "g": 199,
    "b": 135
  },
  "hsl": {
    "h": 82.5,
    "s": 36.364,
    "l": 65.49
  },
  "oklch": {
    "l": 0.79591,
    "c": 0.08978,
    "h": 125.1
  },
  "luminance": 0.5171
}

Semantic roles & 50–950 ramp

primary
#AFC787
secondary
#715A98
accent
#36AF64
background
#FDFEFD
surface
#F9FBF7
border
#D2D4D0
text
#131410
muted
#828381

Preview Lab

Preview with #AFC787

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

Preview Lab → · Contrast checker → · Palette generator →

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