#AFA162#AFA162

#AFA162 is a light, moderate yellow. Relative luminance 0.355; OKLCH L 70.7% C 0.085 H 97.2°. Best body text is #000000 at 8.10:1 contrast (WCAG AA passes).

Color values

HEX#AFA162
RGBrgb(175, 161, 98)
HSLhsl(49, 32%, 54%)
HSVhsv(49, 44%, 69%)
CMYKcmyk(0%, 8%, 44%, 31.4%)
CIE-LABlab(66.13, -3.89, 34.57)
CIE-LCHlch(66.13, 34.79, 96.42°)
OKLaboklab(70.67% -0.0105 0.0839)
OKLCHoklch(70.67% 0.085 97.2)
XYZxyz(32.6295, 35.4867, 16.6837)
Luminance0.3549 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFA162 #6270AF
analogous
#AF7A62 #AFA162 #96AF62
triadic
#AFA162 #62AFA1 #A162AF
tetradic
#AFA162 #62AF7A #6270AF #AF6296
square
#AFA162 #62AF7A #6270AF #AF6296
split-complementary
#AFA162 #6296AF #7A62AF
monochromatic
#645B33 #8C8047 #AFA162 #C4B98B #D8D2B3

Accessibility & contrast

On white

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

On black

8.10
#AFA162 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFA162
8.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFA162#FFFFFF#000000##000000
##AFA1621.002.598.108.10
#FFFFFF2.591.0021.0021.00
#0000008.1021.001.001.00
##0000008.1021.001.001.00

Color blindness preview

Protanopia (red-blind)
#AD9E5D
Deuteranopia (green-blind)
#B0A364
Tritanopia (blue-blind)
#BA9892
Achromatopsia (no color)
#A1A1A1

Design tokens & code

CSS
--color: #afa162;
/* rgb */ color: rgb(175, 161, 98);
/* oklch */ color: oklch(70.7% 0.085 97.2);
Tailwind
colors: {
  custom: {
    50: '#c8bc8f',
    500: '#afa162',
    950: '#000000',
  },
}
SCSS
$custom: #afa162;
$custom-light: #c8bc8f;
$custom-dark: #000000;
JSON
{
  "hex": "#afa162",
  "rgb": {
    "r": 175,
    "g": 161,
    "b": 98
  },
  "hsl": {
    "h": 49.091,
    "s": 32.489,
    "l": 53.529
  },
  "oklch": {
    "l": 0.70666,
    "c": 0.08455,
    "h": 97.2
  },
  "luminance": 0.35486
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #AFA162

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

Preview Lab → · Contrast checker → · Palette generator →

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