#AFBF71#AFBF71

#AFBF71 is a light, moderate yellow-green. Relative luminance 0.476; OKLCH L 77.4% C 0.104 H 118.4°. Best body text is #000000 at 10.51:1 contrast (WCAG AA passes).

Color values

HEX#AFBF71
RGBrgb(175, 191, 113)
HSLhsl(72, 38%, 60%)
HSVhsv(72, 41%, 75%)
CMYKcmyk(8.4%, 0%, 40.8%, 25.1%)
CIE-LABlab(74.55, -17.84, 37.48)
CIE-LCHlch(74.55, 41.51, 115.46°)
OKLaboklab(77.44% -0.0493 0.0913)
OKLCHoklch(77.44% 0.104 118.4)
XYZxyz(39.2908, 47.5680, 22.7313)
Luminance0.4757 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFBF71 #8171BF
analogous
#BFA871 #AFBF71 #88BF71
triadic
#AFBF71 #71AFBF #BF71AF
tetradic
#AFBF71 #71BFA8 #8171BF #BF7188
square
#AFBF71 #71BFA8 #8171BF #BF7188
split-complementary
#AFBF71 #7188BF #A871BF
monochromatic
#6F7D38 #95A74B #AFBF71 #C7D29B #DFE5C5

Accessibility & contrast

On white

2.00
#AFBF71 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

10.51
#AFBF71 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFBF71
10.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFBF71#FFFFFF#000000##000000
##AFBF711.002.0010.5110.51
#FFFFFF2.001.0021.0021.00
#00000010.5121.001.001.00
##00000010.5121.001.001.00

Color blindness preview

Protanopia (red-blind)
#C8B76B
Deuteranopia (green-blind)
#C7B875
Tritanopia (blue-blind)
#B6B7AC
Achromatopsia (no color)
#B7B7B7

Design tokens & code

CSS
--color: #afbf71;
/* rgb */ color: rgb(175, 191, 113);
/* oklch */ color: oklch(77.4% 0.104 118.4);
Tailwind
colors: {
  custom: {
    50: '#c8d29b',
    500: '#afbf71',
    950: '#000000',
  },
}
SCSS
$custom: #afbf71;
$custom-light: #c8d29b;
$custom-dark: #000000;
JSON
{
  "hex": "#afbf71",
  "rgb": {
    "r": 175,
    "g": 191,
    "b": 113
  },
  "hsl": {
    "h": 72.308,
    "s": 37.864,
    "l": 59.608
  },
  "oklch": {
    "l": 0.77437,
    "c": 0.10374,
    "h": 118.4
  },
  "luminance": 0.47568
}

Semantic roles & 50–950 ramp

primary
#AFBF71
secondary
#BDB7D5
accent
#5ACE72
background
#FCFCF9
surface
#F8F9F2
border
#D1D2CC
text
#13140E
muted
#82827E

Preview Lab

Preview with #AFBF71

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

Preview Lab → · Contrast checker → · Palette generator →

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