#AFA170#AFA170

#AFA170 is a light, moderate yellow. Relative luminance 0.358; OKLCH L 70.9% C 0.068 H 94.1°. Best body text is #000000 at 8.15:1 contrast (WCAG AA passes).

Color values

HEX#AFA170
RGBrgb(175, 161, 112)
HSLhsl(47, 28%, 56%)
HSVhsv(47, 36%, 69%)
CMYKcmyk(0%, 8%, 36%, 31.4%)
CIE-LABlab(66.35, -2.29, 27.40)
CIE-LCHlch(66.35, 27.49, 94.78°)
OKLaboklab(70.91% -0.0048 0.068)
OKLCHoklch(70.91% 0.068 94.1)
XYZxyz(33.3492, 35.7746, 20.4745)
Luminance0.3577 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFA170 #707EAF
analogous
#AF8270 #AFA170 #9EAF70
triadic
#AFA170 #70AFA1 #A170AF
tetradic
#AFA170 #70AF82 #707EAF #AF709E
square
#AFA170 #70AF82 #707EAF #AF709E
split-complementary
#AFA170 #709EAF #8270AF
monochromatic
#6A5F3B #918351 #AFA170 #C5BB97 #DBD5BE

Accessibility & contrast

On white

2.58
#AFA170 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.15
#AFA170 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFA170
8.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFA170#FFFFFF#000000##000000
##AFA1701.002.588.158.15
#FFFFFF2.581.0021.0021.00
#0000008.1521.001.001.00
##0000008.1521.001.001.00

Color blindness preview

Protanopia (red-blind)
#AB9F6D
Deuteranopia (green-blind)
#AFA372
Tritanopia (blue-blind)
#B89A94
Achromatopsia (no color)
#A1A1A1

Design tokens & code

CSS
--color: #afa170;
/* rgb */ color: rgb(175, 161, 112);
/* oklch */ color: oklch(70.9% 0.068 94.1);
Tailwind
colors: {
  custom: {
    50: '#c8bc99',
    500: '#afa170',
    950: '#000000',
  },
}
SCSS
$custom: #afa170;
$custom-light: #c8bc99;
$custom-dark: #000000;
JSON
{
  "hex": "#afa170",
  "rgb": {
    "r": 175,
    "g": 161,
    "b": 112
  },
  "hsl": {
    "h": 46.667,
    "s": 28.251,
    "l": 56.275
  },
  "oklch": {
    "l": 0.70913,
    "c": 0.06817,
    "h": 94.1
  },
  "luminance": 0.35774
}

Semantic roles & 50–950 ramp

primary
#AFA170
secondary
#B0B6CA
accent
#79C563
background
#FCFBF9
surface
#F8F6F2
border
#D1D0CC
text
#13120E
muted
#82817E

Preview Lab

Preview with #AFA170

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

Preview Lab → · Contrast checker → · Palette generator →

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