#AFAC71#AFAC71

#AFAC71 is a light, moderate yellow. Relative luminance 0.398; OKLCH L 73.3% C 0.079 H 105.7°. Best body text is #000000 at 8.96:1 contrast (WCAG AA passes).

Color values

HEX#AFAC71
RGBrgb(175, 172, 113)
HSLhsl(57, 28%, 56%)
HSVhsv(57, 35%, 69%)
CMYKcmyk(0%, 1.7%, 35.4%, 31.4%)
CIE-LABlab(69.34, -8.04, 30.78)
CIE-LCHlch(69.34, 31.81, 104.64°)
OKLaboklab(73.28% -0.0213 0.0759)
OKLCHoklch(73.28% 0.079 105.7)
XYZxyz(35.4128, 39.8120, 21.4386)
Luminance0.3981 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFAC71 #7174AF
analogous
#AF8D71 #AFAC71 #93AF71
triadic
#AFAC71 #71AFAC #AC71AF
tetradic
#AFAC71 #71AF8D #7174AF #AF7193
square
#AFAC71 #71AF8D #7174AF #AF7193
split-complementary
#AFAC71 #7193AF #8D71AF
monochromatic
#6A683C #918E52 #AFAC71 #C5C398 #DBDABF

Accessibility & contrast

On white

2.34
#AFAC71 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.96
#AFAC71 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFAC71
8.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFAC71#FFFFFF#000000##000000
##AFAC711.002.348.968.96
#FFFFFF2.341.0021.0021.00
#0000008.9621.001.001.00
##0000008.9621.001.001.00

Color blindness preview

Protanopia (red-blind)
#B6A86D
Deuteranopia (green-blind)
#B7AB73
Tritanopia (blue-blind)
#B8A59D
Achromatopsia (no color)
#A9A9A9

Design tokens & code

CSS
--color: #afac71;
/* rgb */ color: rgb(175, 172, 113);
/* oklch */ color: oklch(73.3% 0.079 105.7);
Tailwind
colors: {
  custom: {
    50: '#c8c49a',
    500: '#afac71',
    950: '#000000',
  },
}
SCSS
$custom: #afac71;
$custom-light: #c8c49a;
$custom-dark: #000000;
JSON
{
  "hex": "#afac71",
  "rgb": {
    "r": 175,
    "g": 172,
    "b": 113
  },
  "hsl": {
    "h": 57.097,
    "s": 27.928,
    "l": 56.471
  },
  "oklch": {
    "l": 0.73283,
    "c": 0.07886,
    "h": 105.7
  },
  "luminance": 0.39811
}

Semantic roles & 50–950 ramp

primary
#AFAC71
secondary
#B1B2CB
accent
#68C464
background
#FCFCF9
surface
#F8F8F2
border
#D1D1CC
text
#13120E
muted
#82817E

Preview Lab

Preview with #AFAC71

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

Preview Lab → · Contrast checker → · Palette generator →

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