#AFB87A#AFB87A

#AFB87A is a light, moderate yellow. Relative luminance 0.448; OKLCH L 76.1% C 0.084 H 115.1°. Best body text is #000000 at 9.96:1 contrast (WCAG AA passes).

Color values

HEX#AFB87A
RGBrgb(175, 184, 122)
HSLhsl(69, 30%, 60%)
HSVhsv(69, 34%, 72%)
CMYKcmyk(4.9%, 0%, 33.7%, 27.8%)
CIE-LABlab(72.76, -13.17, 30.51)
CIE-LCHlch(72.76, 33.23, 113.36°)
OKLaboklab(76.05% -0.0355 0.0756)
OKLCHoklch(76.05% 0.084 115.1)
XYZxyz(38.3326, 44.8004, 25.0366)
Luminance0.4480 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFB87A #837AB8
analogous
#B8A27A #AFB87A #90B87A
triadic
#AFB87A #7AAFB8 #B87AAF
tetradic
#AFB87A #7AB8A2 #837AB8 #B87A90
square
#AFB87A #7AB8A2 #837AB8 #B87A90
split-complementary
#AFB87A #7A90B8 #A27AB8
monochromatic
#707840 #95A055 #AFB87A #C7CDA2 #DFE3CA

Accessibility & contrast

On white

2.11
#AFB87A on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.96
#AFB87A on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFB87A
9.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFB87A#FFFFFF#000000##000000
##AFB87A1.002.119.969.96
#FFFFFF2.111.0021.0021.00
#0000009.9621.001.001.00
##0000009.9621.001.001.00

Color blindness preview

Protanopia (red-blind)
#C0B276
Deuteranopia (green-blind)
#C0B37D
Tritanopia (blue-blind)
#B6B1A8
Achromatopsia (no color)
#B3B3B3

Design tokens & code

CSS
--color: #afb87a;
/* rgb */ color: rgb(175, 184, 122);
/* oklch */ color: oklch(76.1% 0.084 115.1);
Tailwind
colors: {
  custom: {
    50: '#c7cda1',
    500: '#afb87a',
    950: '#000000',
  },
}
SCSS
$custom: #afb87a;
$custom-light: #c7cda1;
$custom-dark: #000000;
JSON
{
  "hex": "#afb87a",
  "rgb": {
    "r": 175,
    "g": 184,
    "b": 122
  },
  "hsl": {
    "h": 68.71,
    "s": 30.392,
    "l": 60
  },
  "oklch": {
    "l": 0.76053,
    "c": 0.08352,
    "h": 115.1
  },
  "luminance": 0.448
}

Semantic roles & 50–950 ramp

primary
#AFB87A
secondary
#BEBBD3
accent
#61C770
background
#FCFCF9
surface
#F8F9F2
border
#D1D2CC
text
#13130F
muted
#82827E

Preview Lab

Preview with #AFB87A

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

Preview Lab → · Contrast checker → · Palette generator →

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