#AFA161#AFA161

#AFA161 is a light, moderate yellow. Relative luminance 0.355; OKLCH L 70.6% C 0.086 H 97.3°. Best body text is #000000 at 8.09:1 contrast (WCAG AA passes).

Color values

HEX#AFA161
RGBrgb(175, 161, 97)
HSLhsl(49, 33%, 53%)
HSVhsv(49, 45%, 69%)
CMYKcmyk(0%, 8%, 44.6%, 31.4%)
CIE-LABlab(66.11, -3.99, 35.08)
CIE-LCHlch(66.11, 35.31, 96.50°)
OKLaboklab(70.65% -0.0109 0.085)
OKLCHoklch(70.65% 0.086 97.3)
XYZxyz(32.5826, 35.4679, 16.4366)
Luminance0.3547 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFA161 #616FAF
analogous
#AF7A61 #AFA161 #96AF61
triadic
#AFA161 #61AFA1 #A161AF
tetradic
#AFA161 #61AF7A #616FAF #AF6196
square
#AFA161 #61AF7A #616FAF #AF6196
split-complementary
#AFA161 #6196AF #7A61AF
monochromatic
#635B32 #8C8047 #AFA161 #C4B98A #D8D1B2

Accessibility & contrast

On white

2.59
#AFA161 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.09
#AFA161 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFA161
8.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFA161#FFFFFF#000000##000000
##AFA1611.002.598.098.09
#FFFFFF2.591.0021.0021.00
#0000008.0921.001.001.00
##0000008.0921.001.001.00

Color blindness preview

Protanopia (red-blind)
#AD9E5C
Deuteranopia (green-blind)
#B1A363
Tritanopia (blue-blind)
#BA9891
Achromatopsia (no color)
#A1A1A1

Design tokens & code

CSS
--color: #afa161;
/* rgb */ color: rgb(175, 161, 97);
/* oklch */ color: oklch(70.6% 0.086 97.3);
Tailwind
colors: {
  custom: {
    50: '#c8bc8f',
    500: '#afa161',
    950: '#000000',
  },
}
SCSS
$custom: #afa161;
$custom-light: #c8bc8f;
$custom-dark: #000000;
JSON
{
  "hex": "#afa161",
  "rgb": {
    "r": 175,
    "g": 161,
    "b": 97
  },
  "hsl": {
    "h": 49.231,
    "s": 32.773,
    "l": 53.333
  },
  "oklch": {
    "l": 0.70649,
    "c": 0.08567,
    "h": 97.3
  },
  "luminance": 0.35467
}

Semantic roles & 50–950 ramp

primary
#AFA161
secondary
#A5ABC7
accent
#72C95F
background
#FCFBF8
surface
#F8F6F0
border
#D1D0CB
text
#13120C
muted
#82817D

Preview Lab

Preview with #AFA161

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

Preview Lab → · Contrast checker → · Palette generator →

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