#AFA071#AFA071

#AFA071 is a light, moderate yellow. Relative luminance 0.354; OKLCH L 70.7% C 0.066 H 92.5°. Best body text is #000000 at 8.09:1 contrast (WCAG AA passes).

Color values

HEX#AFA071
RGBrgb(175, 160, 113)
HSLhsl(45, 28%, 56%)
HSVhsv(45, 35%, 69%)
CMYKcmyk(0%, 8.6%, 35.4%, 31.4%)
CIE-LABlab(66.10, -1.62, 26.52)
CIE-LCHlch(66.10, 26.57, 93.50°)
OKLaboklab(70.72% -0.0028 0.066)
OKLCHoklch(70.72% 0.066 92.5)
XYZxyz(33.2312, 35.4489, 20.7114)
Luminance0.3545 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFA071 #7180AF
analogous
#AF8171 #AFA071 #9FAF71
triadic
#AFA071 #71AFA0 #A071AF
tetradic
#AFA071 #71AF81 #7180AF #AF719F
square
#AFA071 #71AF81 #7180AF #AF719F
split-complementary
#AFA071 #719FAF #8171AF
monochromatic
#6A5F3C #918252 #AFA071 #C5BA98 #DBD4BF

Accessibility & contrast

On white

2.60
#AFA071 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

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

Best text color

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

Contrast matrix

fg \ bg##AFA071#FFFFFF#000000##000000
##AFA0711.002.608.098.09
#FFFFFF2.601.0021.0021.00
#0000008.0921.001.001.00
##0000008.0921.001.001.00

Color blindness preview

Protanopia (red-blind)
#AA9E6E
Deuteranopia (green-blind)
#AEA373
Tritanopia (blue-blind)
#B89994
Achromatopsia (no color)
#A1A1A1

Design tokens & code

CSS
--color: #afa071;
/* rgb */ color: rgb(175, 160, 113);
/* oklch */ color: oklch(70.7% 0.066 92.5);
Tailwind
colors: {
  custom: {
    50: '#c8bc9a',
    500: '#afa071',
    950: '#000000',
  },
}
SCSS
$custom: #afa071;
$custom-light: #c8bc9a;
$custom-dark: #000000;
JSON
{
  "hex": "#afa071",
  "rgb": {
    "r": 175,
    "g": 160,
    "b": 113
  },
  "hsl": {
    "h": 45.484,
    "s": 27.928,
    "l": 56.471
  },
  "oklch": {
    "l": 0.70721,
    "c": 0.06605,
    "h": 92.5
  },
  "luminance": 0.35448
}

Semantic roles & 50–950 ramp

primary
#AFA071
secondary
#B1B7CB
accent
#7BC464
background
#FCFBF9
surface
#F8F6F2
border
#D1D0CC
text
#13110E
muted
#82807E

Preview Lab

Preview with #AFA071

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

Preview Lab → · Contrast checker → · Palette generator →

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