#AFBF5F#AFBF5F

#AFBF5F is a light, vivid yellow-green. Relative luminance 0.472; OKLCH L 77.2% C 0.123 H 117.2°. Best body text is #000000 at 10.44:1 contrast (WCAG AA passes).

Color values

HEX#AFBF5F
RGBrgb(175, 191, 95)
HSLhsl(70, 43%, 56%)
HSVhsv(70, 50%, 75%)
CMYKcmyk(8.4%, 0%, 50.3%, 25.1%)
CIE-LABlab(74.32, -19.75, 46.13)
CIE-LCHlch(74.32, 50.18, 113.18°)
OKLaboklab(77.18% -0.0562 0.1094)
OKLCHoklch(77.18% 0.123 117.2)
XYZxyz(38.3760, 47.2021, 17.9135)
Luminance0.4720 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFBF5F #6F5FBF
analogous
#BF9F5F #AFBF5F #7FBF5F
triadic
#AFBF5F #5FAFBF #BF5FAF
tetradic
#AFBF5F #5FBF9F #6F5FBF #BF5F7F
square
#AFBF5F #5FBF9F #6F5FBF #BF5F7F
split-complementary
#AFBF5F #5F7FBF #9F5FBF
monochromatic
#69752F #91A140 #AFBF5F #C5D08B #DBE2B6

Accessibility & contrast

On white

2.01
#AFBF5F on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

10.44
#AFBF5F on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFBF5F
10.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFBF5F#FFFFFF#000000##000000
##AFBF5F1.002.0110.4410.44
#FFFFFF2.011.0021.0021.00
#00000010.4421.001.001.00
##00000010.4421.001.001.00

Color blindness preview

Protanopia (red-blind)
#CAB656
Deuteranopia (green-blind)
#C8B764
Tritanopia (blue-blind)
#B8B6A9
Achromatopsia (no color)
#B7B7B7

Design tokens & code

CSS
--color: #afbf5f;
/* rgb */ color: rgb(175, 191, 95);
/* oklch */ color: oklch(77.2% 0.123 117.2);
Tailwind
colors: {
  custom: {
    50: '#c9d28f',
    500: '#afbf5f',
    950: '#000000',
  },
}
SCSS
$custom: #afbf5f;
$custom-light: #c9d28f;
$custom-dark: #000000;
JSON
{
  "hex": "#afbf5f",
  "rgb": {
    "r": 175,
    "g": 191,
    "b": 95
  },
  "hsl": {
    "h": 70,
    "s": 42.857,
    "l": 56.078
  },
  "oklch": {
    "l": 0.77175,
    "c": 0.12294,
    "h": 117.2
  },
  "luminance": 0.47202
}

Semantic roles & 50–950 ramp

primary
#AFBF5F
secondary
#B0A9D1
accent
#55D36A
background
#FCFCF8
surface
#F8F9F0
border
#D1D2CB
text
#13140C
muted
#82827D

Preview Lab

Preview with #AFBF5F

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

Preview Lab → · Contrast checker → · Palette generator →

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