#AFB87F#AFB87F

#AFB87F is a light, moderate yellow. Relative luminance 0.449; OKLCH L 76.1% C 0.077 H 115.6°. Best body text is #000000 at 9.99:1 contrast (WCAG AA passes).

Color values

HEX#AFB87F
RGBrgb(175, 184, 127)
HSLhsl(69, 29%, 61%)
HSVhsv(69, 31%, 72%)
CMYKcmyk(4.9%, 0%, 31%, 27.8%)
CIE-LABlab(72.84, -12.52, 27.98)
CIE-LCHlch(72.84, 30.65, 114.10°)
OKLaboklab(76.15% -0.0334 0.0698)
OKLCHoklch(76.15% 0.077 115.6)
XYZxyz(38.6504, 44.9275, 26.7103)
Luminance0.4493 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFB87F #887FB8
analogous
#B8A47F #AFB87F #92B87F
triadic
#AFB87F #7FAFB8 #B87FAF
tetradic
#AFB87F #7FB8A4 #887FB8 #B87F92
square
#AFB87F #7FB8A4 #887FB8 #B87F92
split-complementary
#AFB87F #7F92B8 #A47FB8
monochromatic
#717943 #95A159 #AFB87F #C8CEA6 #E0E4CE

Accessibility & contrast

On white

2.10
#AFB87F on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.99
#AFB87F on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFB87F
9.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFB87F#FFFFFF#000000##000000
##AFB87F1.002.109.999.99
#FFFFFF2.101.0021.0021.00
#0000009.9921.001.001.00
##0000009.9921.001.001.00

Color blindness preview

Protanopia (red-blind)
#C0B27B
Deuteranopia (green-blind)
#BFB381
Tritanopia (blue-blind)
#B5B2A9
Achromatopsia (no color)
#B3B3B3

Design tokens & code

CSS
--color: #afb87f;
/* rgb */ color: rgb(175, 184, 127);
/* oklch */ color: oklch(76.1% 0.077 115.6);
Tailwind
colors: {
  custom: {
    50: '#c7cda4',
    500: '#afb87f',
    950: '#000000',
  },
}
SCSS
$custom: #afb87f;
$custom-light: #c7cda4;
$custom-dark: #000000;
JSON
{
  "hex": "#afb87f",
  "rgb": {
    "r": 175,
    "g": 184,
    "b": 127
  },
  "hsl": {
    "h": 69.474,
    "s": 28.643,
    "l": 60.98
  },
  "oklch": {
    "l": 0.76147,
    "c": 0.07739,
    "h": 115.6
  },
  "luminance": 0.44927
}

Semantic roles & 50–950 ramp

primary
#AFB87F
secondary
#C2BFD4
accent
#3EA74F
background
#FCFCFA
surface
#F8F9F4
border
#D1D2CE
text
#13130F
muted
#82827F

Preview Lab

Preview with #AFB87F

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

Preview Lab → · Contrast checker → · Palette generator →

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