#AFAA71#AFAA71

#AFAA71 is a light, moderate yellow. Relative luminance 0.391; OKLCH L 72.9% C 0.076 H 103.8°. Best body text is #000000 at 8.81:1 contrast (WCAG AA passes).

Color values

HEX#AFAA71
RGBrgb(175, 170, 113)
HSLhsl(55, 28%, 56%)
HSVhsv(55, 35%, 69%)
CMYKcmyk(0%, 2.9%, 35.4%, 31.4%)
CIE-LABlab(68.79, -6.98, 30.07)
CIE-LCHlch(68.79, 30.87, 103.07°)
OKLaboklab(72.85% -0.0183 0.0743)
OKLCHoklch(72.85% 0.076 103.8)
XYZxyz(35.0350, 39.0565, 21.3127)
Luminance0.3906 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFAA71 #7176AF
analogous
#AF8B71 #AFAA71 #95AF71
triadic
#AFAA71 #71AFAA #AA71AF
tetradic
#AFAA71 #71AF8B #7176AF #AF7195
square
#AFAA71 #71AF8B #7176AF #AF7195
split-complementary
#AFAA71 #7195AF #8B71AF
monochromatic
#6A663C #918C52 #AFAA71 #C5C198 #DBD9BF

Accessibility & contrast

On white

2.38
#AFAA71 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.81
#AFAA71 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFAA71
8.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFAA71#FFFFFF#000000##000000
##AFAA711.002.388.818.81
#FFFFFF2.381.0021.0021.00
#0000008.8121.001.001.00
##0000008.8121.001.001.00

Color blindness preview

Protanopia (red-blind)
#B4A66D
Deuteranopia (green-blind)
#B6A973
Tritanopia (blue-blind)
#B8A39C
Achromatopsia (no color)
#A8A8A8

Design tokens & code

CSS
--color: #afaa71;
/* rgb */ color: rgb(175, 170, 113);
/* oklch */ color: oklch(72.9% 0.076 103.8);
Tailwind
colors: {
  custom: {
    50: '#c8c39a',
    500: '#afaa71',
    950: '#000000',
  },
}
SCSS
$custom: #afaa71;
$custom-light: #c8c39a;
$custom-dark: #000000;
JSON
{
  "hex": "#afaa71",
  "rgb": {
    "r": 175,
    "g": 170,
    "b": 113
  },
  "hsl": {
    "h": 55.161,
    "s": 27.928,
    "l": 56.471
  },
  "oklch": {
    "l": 0.72852,
    "c": 0.07649,
    "h": 103.8
  },
  "luminance": 0.39056
}

Semantic roles & 50–950 ramp

primary
#AFAA71
secondary
#B1B3CB
accent
#6BC464
background
#FCFBF9
surface
#F8F7F2
border
#D1D0CC
text
#13120E
muted
#82817E

Preview Lab

Preview with #AFAA71

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

Preview Lab → · Contrast checker → · Palette generator →

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