#AFB571#AFB571

#AFB571 is a light, moderate yellow. Relative luminance 0.434; OKLCH L 75.2% C 0.090 H 112.7°. Best body text is #000000 at 9.67:1 contrast (WCAG AA passes).

Color values

HEX#AFB571
RGBrgb(175, 181, 113)
HSLhsl(65, 31%, 58%)
HSVhsv(65, 38%, 71%)
CMYKcmyk(3.3%, 0%, 37.6%, 29%)
CIE-LABlab(71.79, -12.74, 33.96)
CIE-LCHlch(71.79, 36.27, 110.56°)
OKLaboklab(75.24% -0.0348 0.0833)
OKLCHoklch(75.24% 0.09 112.7)
XYZxyz(37.1840, 43.3545, 22.0290)
Luminance0.4335 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFB571 #7771B5
analogous
#B59971 #AFB571 #8DB571
triadic
#AFB571 #71AFB5 #B571AF
tetradic
#AFB571 #71B599 #7771B5 #B5718D
square
#AFB571 #71B599 #7771B5 #B5718D
split-complementary
#AFB571 #718DB5 #9971B5
monochromatic
#6C713B #939950 #AFB571 #C6CA99 #DCDFC1

Accessibility & contrast

On white

2.17
#AFB571 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.67
#AFB571 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFB571
9.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFB571#FFFFFF#000000##000000
##AFB5711.002.179.679.67
#FFFFFF2.171.0021.0021.00
#0000009.6721.001.001.00
##0000009.6721.001.001.00

Color blindness preview

Protanopia (red-blind)
#BEAF6C
Deuteranopia (green-blind)
#BEB174
Tritanopia (blue-blind)
#B7AEA4
Achromatopsia (no color)
#B0B0B0

Design tokens & code

CSS
--color: #afb571;
/* rgb */ color: rgb(175, 181, 113);
/* oklch */ color: oklch(75.2% 0.090 112.7);
Tailwind
colors: {
  custom: {
    50: '#c8cb9a',
    500: '#afb571',
    950: '#000000',
  },
}
SCSS
$custom: #afb571;
$custom-light: #c8cb9a;
$custom-dark: #000000;
JSON
{
  "hex": "#afb571",
  "rgb": {
    "r": 175,
    "g": 181,
    "b": 113
  },
  "hsl": {
    "h": 65.294,
    "s": 31.481,
    "l": 57.647
  },
  "oklch": {
    "l": 0.75238,
    "c": 0.09022,
    "h": 112.7
  },
  "luminance": 0.43354
}

Semantic roles & 50–950 ramp

primary
#AFB571
secondary
#B6B3CF
accent
#60C869
background
#FCFCF9
surface
#F8F8F2
border
#D1D1CC
text
#13130E
muted
#82827E

Preview Lab

Preview with #AFB571

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

Preview Lab → · Contrast checker → · Palette generator →

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