#AFAB71#AFAB71

#AFAB71 is a light, moderate yellow. Relative luminance 0.394; OKLCH L 73.1% C 0.078 H 104.8°. Best body text is #000000 at 8.89:1 contrast (WCAG AA passes).

Color values

HEX#AFAB71
RGBrgb(175, 171, 113)
HSLhsl(56, 28%, 56%)
HSVhsv(56, 35%, 69%)
CMYKcmyk(0%, 2.3%, 35.4%, 31.4%)
CIE-LABlab(69.06, -7.51, 30.42)
CIE-LCHlch(69.06, 31.34, 103.87°)
OKLaboklab(73.07% -0.0198 0.0751)
OKLCHoklch(73.07% 0.078 104.8)
XYZxyz(35.2232, 39.4328, 21.3754)
Luminance0.3943 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFAB71 #7175AF
analogous
#AF8C71 #AFAB71 #94AF71
triadic
#AFAB71 #71AFAB #AB71AF
tetradic
#AFAB71 #71AF8C #7175AF #AF7194
square
#AFAB71 #71AF8C #7175AF #AF7194
split-complementary
#AFAB71 #7194AF #8C71AF
monochromatic
#6A673C #918D52 #AFAB71 #C5C298 #DBD9BF

Accessibility & contrast

On white

2.36
#AFAB71 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.89
#AFAB71 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFAB71
8.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFAB71#FFFFFF#000000##000000
##AFAB711.002.368.898.89
#FFFFFF2.361.0021.0021.00
#0000008.8921.001.001.00
##0000008.8921.001.001.00

Color blindness preview

Protanopia (red-blind)
#B5A76D
Deuteranopia (green-blind)
#B6AA73
Tritanopia (blue-blind)
#B8A49C
Achromatopsia (no color)
#A9A9A9

Design tokens & code

CSS
--color: #afab71;
/* rgb */ color: rgb(175, 171, 113);
/* oklch */ color: oklch(73.1% 0.078 104.8);
Tailwind
colors: {
  custom: {
    50: '#c8c39a',
    500: '#afab71',
    950: '#000000',
  },
}
SCSS
$custom: #afab71;
$custom-light: #c8c39a;
$custom-dark: #000000;
JSON
{
  "hex": "#afab71",
  "rgb": {
    "r": 175,
    "g": 171,
    "b": 113
  },
  "hsl": {
    "h": 56.129,
    "s": 27.928,
    "l": 56.471
  },
  "oklch": {
    "l": 0.73068,
    "c": 0.07766,
    "h": 104.8
  },
  "luminance": 0.39432
}

Semantic roles & 50–950 ramp

primary
#AFAB71
secondary
#B1B3CB
accent
#6AC464
background
#FCFCF9
surface
#F8F8F2
border
#D1D1CC
text
#13120E
muted
#82817E

Preview Lab

Preview with #AFAB71

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

Preview Lab → · Contrast checker → · Palette generator →

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