#AFA772#AFA772

#AFA772 is a light, moderate yellow. Relative luminance 0.380; OKLCH L 72.2% C 0.072 H 100.7°. Best body text is #000000 at 8.59:1 contrast (WCAG AA passes).

Color values

HEX#AFA772
RGBrgb(175, 167, 114)
HSLhsl(52, 28%, 57%)
HSVhsv(52, 35%, 69%)
CMYKcmyk(0%, 4.6%, 34.9%, 31.4%)
CIE-LABlab(68.00, -5.26, 28.49)
CIE-LCHlch(68.00, 28.97, 100.47°)
OKLaboklab(72.23% -0.0133 0.0706)
OKLCHoklch(72.23% 0.072 100.7)
XYZxyz(34.5356, 37.9672, 21.4255)
Luminance0.3797 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFA772 #727AAF
analogous
#AF8972 #AFA772 #99AF72
triadic
#AFA772 #72AFA7 #A772AF
tetradic
#AFA772 #72AF89 #727AAF #AF7299
square
#AFA772 #72AF89 #727AAF #AF7299
split-complementary
#AFA772 #7299AF #8972AF
monochromatic
#6A643C #918952 #AFA772 #C5BF99 #DBD8C0

Accessibility & contrast

On white

2.44
#AFA772 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.59
#AFA772 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFA772
8.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFA772#FFFFFF#000000##000000
##AFA7721.002.448.598.59
#FFFFFF2.441.0021.0021.00
#0000008.5921.001.001.00
##0000008.5921.001.001.00

Color blindness preview

Protanopia (red-blind)
#B1A46E
Deuteranopia (green-blind)
#B3A774
Tritanopia (blue-blind)
#B8A099
Achromatopsia (no color)
#A6A6A6

Design tokens & code

CSS
--color: #afa772;
/* rgb */ color: rgb(175, 167, 114);
/* oklch */ color: oklch(72.2% 0.072 100.7);
Tailwind
colors: {
  custom: {
    50: '#c8c19b',
    500: '#afa772',
    950: '#000000',
  },
}
SCSS
$custom: #afa772;
$custom-light: #c8c19b;
$custom-dark: #000000;
JSON
{
  "hex": "#afa772",
  "rgb": {
    "r": 175,
    "g": 167,
    "b": 114
  },
  "hsl": {
    "h": 52.131,
    "s": 27.602,
    "l": 56.667
  },
  "oklch": {
    "l": 0.72228,
    "c": 0.07187,
    "h": 100.7
  },
  "luminance": 0.37966
}

Semantic roles & 50–950 ramp

primary
#AFA772
secondary
#B2B5CB
accent
#70C464
background
#FCFBF9
surface
#F8F7F2
border
#D1D0CC
text
#13120E
muted
#82817E

Preview Lab

Preview with #AFA772

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

Preview Lab → · Contrast checker → · Palette generator →

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