#AFA870#AFA870

#AFA870 is a light, moderate yellow. Relative luminance 0.383; OKLCH L 72.4% C 0.075 H 102.0°. Best body text is #000000 at 8.66:1 contrast (WCAG AA passes).

Color values

HEX#AFA870
RGBrgb(175, 168, 112)
HSLhsl(53, 28%, 56%)
HSVhsv(53, 36%, 69%)
CMYKcmyk(0%, 4%, 36%, 31.4%)
CIE-LABlab(68.23, -6.04, 29.87)
CIE-LCHlch(68.23, 30.48, 101.43°)
OKLaboklab(72.41% -0.0156 0.0738)
OKLCHoklch(72.41% 0.075 102)
XYZxyz(34.6069, 38.2899, 20.8938)
Luminance0.3829 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFA870 #7077AF
analogous
#AF8970 #AFA870 #97AF70
triadic
#AFA870 #70AFA8 #A870AF
tetradic
#AFA870 #70AF89 #7077AF #AF7097
square
#AFA870 #70AF89 #7077AF #AF7097
split-complementary
#AFA870 #7097AF #8970AF
monochromatic
#6A643B #918A51 #AFA870 #C5C097 #DBD8BE

Accessibility & contrast

On white

2.43
#AFA870 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.66
#AFA870 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFA870
8.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFA870#FFFFFF#000000##000000
##AFA8701.002.438.668.66
#FFFFFF2.431.0021.0021.00
#0000008.6621.001.001.00
##0000008.6621.001.001.00

Color blindness preview

Protanopia (red-blind)
#B2A46C
Deuteranopia (green-blind)
#B4A872
Tritanopia (blue-blind)
#B8A19A
Achromatopsia (no color)
#A6A6A6

Design tokens & code

CSS
--color: #afa870;
/* rgb */ color: rgb(175, 168, 112);
/* oklch */ color: oklch(72.4% 0.075 102.0);
Tailwind
colors: {
  custom: {
    50: '#c8c199',
    500: '#afa870',
    950: '#000000',
  },
}
SCSS
$custom: #afa870;
$custom-light: #c8c199;
$custom-dark: #000000;
JSON
{
  "hex": "#afa870",
  "rgb": {
    "r": 175,
    "g": 168,
    "b": 112
  },
  "hsl": {
    "h": 53.333,
    "s": 28.251,
    "l": 56.275
  },
  "oklch": {
    "l": 0.72405,
    "c": 0.07542,
    "h": 102
  },
  "luminance": 0.38289
}

Semantic roles & 50–950 ramp

primary
#AFA870
secondary
#B0B3CA
accent
#6EC563
background
#FCFBF9
surface
#F8F7F2
border
#D1D0CC
text
#13120E
muted
#82817E

Preview Lab

Preview with #AFA870

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

Preview Lab → · Contrast checker → · Palette generator →

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