#AFA371#AFA371

#AFA371 is a light, moderate yellow. Relative luminance 0.365; OKLCH L 71.4% C 0.069 H 96.3°. Best body text is #000000 at 8.30:1 contrast (WCAG AA passes).

Color values

HEX#AFA371
RGBrgb(175, 163, 113)
HSLhsl(48, 28%, 56%)
HSVhsv(48, 35%, 69%)
CMYKcmyk(0%, 6.9%, 35.4%, 31.4%)
CIE-LABlab(66.90, -3.24, 27.59)
CIE-LCHlch(66.90, 27.78, 96.71°)
OKLaboklab(71.36% -0.0075 0.0685)
OKLCHoklch(71.36% 0.069 96.3)
XYZxyz(33.7575, 36.5016, 20.8868)
Luminance0.3650 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFA371 #717DAF
analogous
#AF8471 #AFA371 #9CAF71
triadic
#AFA371 #71AFA3 #A371AF
tetradic
#AFA371 #71AF84 #717DAF #AF719C
square
#AFA371 #71AF84 #717DAF #AF719C
split-complementary
#AFA371 #719CAF #8471AF
monochromatic
#6A613C #918552 #AFA371 #C5BC98 #DBD6BF

Accessibility & contrast

On white

2.53
#AFA371 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.30
#AFA371 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFA371
8.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFA371#FFFFFF#000000##000000
##AFA3711.002.538.308.30
#FFFFFF2.531.0021.0021.00
#0000008.3021.001.001.00
##0000008.3021.001.001.00

Color blindness preview

Protanopia (red-blind)
#ADA06E
Deuteranopia (green-blind)
#B0A573
Tritanopia (blue-blind)
#B89C96
Achromatopsia (no color)
#A3A3A3

Design tokens & code

CSS
--color: #afa371;
/* rgb */ color: rgb(175, 163, 113);
/* oklch */ color: oklch(71.4% 0.069 96.3);
Tailwind
colors: {
  custom: {
    50: '#c8be9a',
    500: '#afa371',
    950: '#000000',
  },
}
SCSS
$custom: #afa371;
$custom-light: #c8be9a;
$custom-dark: #000000;
JSON
{
  "hex": "#afa371",
  "rgb": {
    "r": 175,
    "g": 163,
    "b": 113
  },
  "hsl": {
    "h": 48.387,
    "s": 27.928,
    "l": 56.471
  },
  "oklch": {
    "l": 0.71356,
    "c": 0.06889,
    "h": 96.3
  },
  "luminance": 0.36501
}

Semantic roles & 50–950 ramp

primary
#AFA371
secondary
#B1B6CB
accent
#76C464
background
#FCFBF9
surface
#F8F6F2
border
#D1D0CC
text
#13120E
muted
#82817E

Preview Lab

Preview with #AFA371

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

Preview Lab → · Contrast checker → · Palette generator →

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