#AFBF7F#AFBF7F

#AFBF7F is a light, moderate yellow-green. Relative luminance 0.479; OKLCH L 77.7% C 0.087 H 119.9°. Best body text is #000000 at 10.58:1 contrast (WCAG AA passes).

Color values

HEX#AFBF7F
RGBrgb(175, 191, 127)
HSLhsl(75, 33%, 62%)
HSVhsv(75, 34%, 75%)
CMYKcmyk(8.4%, 0%, 33.5%, 25.1%)
CIE-LABlab(74.77, -16.10, 30.52)
CIE-LCHlch(74.77, 34.51, 117.82°)
OKLaboklab(77.68% -0.0436 0.0758)
OKLCHoklch(77.68% 0.087 119.9)
XYZxyz(40.1406, 47.9080, 27.2071)
Luminance0.4791 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFBF7F #8F7FBF
analogous
#BFAF7F #AFBF7F #8FBF7F
triadic
#AFBF7F #7FAFBF #BF7FAF
tetradic
#AFBF7F #7FBFAF #8F7FBF #BF7F8F
square
#AFBF7F #7FBFAF #8F7FBF #BF7F8F
split-complementary
#AFBF7F #7F8FBF #AF7FBF
monochromatic
#728241 #95AB56 #AFBF7F #C9D3A8 #E2E8D1

Accessibility & contrast

On white

1.98
#AFBF7F on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

10.58
#AFBF7F on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFBF7F
10.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFBF7F#FFFFFF#000000##000000
##AFBF7F1.001.9810.5810.58
#FFFFFF1.981.0021.0021.00
#00000010.5821.001.001.00
##00000010.5821.001.001.00

Color blindness preview

Protanopia (red-blind)
#C7B87B
Deuteranopia (green-blind)
#C5B882
Tritanopia (blue-blind)
#B5B9AF
Achromatopsia (no color)
#B8B8B8

Design tokens & code

CSS
--color: #afbf7f;
/* rgb */ color: rgb(175, 191, 127);
/* oklch */ color: oklch(77.7% 0.087 119.9);
Tailwind
colors: {
  custom: {
    50: '#c7d2a4',
    500: '#afbf7f',
    950: '#000000',
  },
}
SCSS
$custom: #afbf7f;
$custom-light: #c7d2a4;
$custom-dark: #000000;
JSON
{
  "hex": "#afbf7f",
  "rgb": {
    "r": 175,
    "g": 191,
    "b": 127
  },
  "hsl": {
    "h": 75,
    "s": 33.333,
    "l": 62.353
  },
  "oklch": {
    "l": 0.77679,
    "c": 0.08742,
    "h": 119.9
  },
  "luminance": 0.47908
}

Semantic roles & 50–950 ramp

primary
#AFBF7F
secondary
#C7C1D9
accent
#39AC56
background
#FCFCFA
surface
#F8F9F4
border
#D1D2CE
text
#13140F
muted
#82827F

Preview Lab

Preview with #AFBF7F

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

Preview Lab → · Contrast checker → · Palette generator →

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