#AFB581#AFB581

#AFB581 is a light, moderate yellow. Relative luminance 0.437; OKLCH L 75.5% C 0.071 H 113.5°. Best body text is #000000 at 9.75:1 contrast (WCAG AA passes).

Color values

HEX#AFB581
RGBrgb(175, 181, 129)
HSLhsl(67, 26%, 61%)
HSVhsv(67, 29%, 71%)
CMYKcmyk(3.3%, 0%, 28.7%, 29%)
CIE-LABlab(72.06, -10.69, 25.87)
CIE-LCHlch(72.06, 27.99, 112.45°)
OKLaboklab(75.53% -0.0281 0.0649)
OKLCHoklch(75.53% 0.071 113.5)
XYZxyz(38.1655, 43.7471, 27.1981)
Luminance0.4375 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFB581 #8781B5
analogous
#B5A181 #AFB581 #95B581
triadic
#AFB581 #81AFB5 #B581AF
tetradic
#AFB581 #81B5A1 #8781B5 #B58195
square
#AFB581 #81B5A1 #8781B5 #B58195
split-complementary
#AFB581 #8195B5 #A181B5
monochromatic
#717645 #959D5C #AFB581 #C7CCA8 #E0E2CE

Accessibility & contrast

On white

2.15
#AFB581 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.75
#AFB581 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFB581
9.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFB581#FFFFFF#000000##000000
##AFB5811.002.159.759.75
#FFFFFF2.151.0021.0021.00
#0000009.7521.001.001.00
##0000009.7521.001.001.00

Color blindness preview

Protanopia (red-blind)
#BDB07E
Deuteranopia (green-blind)
#BCB183
Tritanopia (blue-blind)
#B5AFA7
Achromatopsia (no color)
#B1B1B1

Design tokens & code

CSS
--color: #afb581;
/* rgb */ color: rgb(175, 181, 129);
/* oklch */ color: oklch(75.5% 0.071 113.5);
Tailwind
colors: {
  custom: {
    50: '#c7cba6',
    500: '#afb581',
    950: '#000000',
  },
}
SCSS
$custom: #afb581;
$custom-light: #c7cba6;
$custom-dark: #000000;
JSON
{
  "hex": "#afb581",
  "rgb": {
    "r": 175,
    "g": 181,
    "b": 129
  },
  "hsl": {
    "h": 66.923,
    "s": 26,
    "l": 60.784
  },
  "oklch": {
    "l": 0.75534,
    "c": 0.07069,
    "h": 113.5
  },
  "luminance": 0.43747
}

Semantic roles & 50–950 ramp

primary
#AFB581
secondary
#C1BFD3
accent
#41A54C
background
#FCFCFA
surface
#F8F8F4
border
#D1D1CE
text
#13130F
muted
#82827F

Preview Lab

Preview with #AFB581

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

Preview Lab → · Contrast checker → · Palette generator →

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