#AFA977#AFA977

#AFA977 is a light, moderate yellow. Relative luminance 0.388; OKLCH L 72.8% C 0.068 H 102.1°. Best body text is #000000 at 8.76:1 contrast (WCAG AA passes).

Color values

HEX#AFA977
RGBrgb(175, 169, 119)
HSLhsl(54, 26%, 58%)
HSVhsv(54, 32%, 69%)
CMYKcmyk(0%, 3.4%, 32%, 31.4%)
CIE-LABlab(68.62, -5.70, 26.64)
CIE-LCHlch(68.62, 27.24, 102.07°)
OKLaboklab(72.75% -0.0143 0.0664)
OKLCHoklch(72.75% 0.068 102.1)
XYZxyz(35.1973, 38.8226, 23.0886)
Luminance0.3882 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFA977 #777DAF
analogous
#AF8D77 #AFA977 #99AF77
triadic
#AFA977 #77AFA9 #A977AF
tetradic
#AFA977 #77AF8D #777DAF #AF7799
square
#AFA977 #77AF8D #777DAF #AF7799
split-complementary
#AFA977 #7799AF #8D77AF
monochromatic
#6C6740 #938C56 #AFA977 #C6C19E #DCDAC4

Accessibility & contrast

On white

2.40
#AFA977 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.76
#AFA977 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFA977
8.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFA977#FFFFFF#000000##000000
##AFA9771.002.408.768.76
#FFFFFF2.401.0021.0021.00
#0000008.7621.001.001.00
##0000008.7621.001.001.00

Color blindness preview

Protanopia (red-blind)
#B2A674
Deuteranopia (green-blind)
#B4A979
Tritanopia (blue-blind)
#B7A29C
Achromatopsia (no color)
#A7A7A7

Design tokens & code

CSS
--color: #afa977;
/* rgb */ color: rgb(175, 169, 119);
/* oklch */ color: oklch(72.8% 0.068 102.1);
Tailwind
colors: {
  custom: {
    50: '#c7c29e',
    500: '#afa977',
    950: '#000000',
  },
}
SCSS
$custom: #afa977;
$custom-light: #c7c29e;
$custom-dark: #000000;
JSON
{
  "hex": "#afa977",
  "rgb": {
    "r": 175,
    "g": 169,
    "b": 119
  },
  "hsl": {
    "h": 53.571,
    "s": 25.926,
    "l": 57.647
  },
  "oklch": {
    "l": 0.72751,
    "c": 0.06795,
    "h": 102.1
  },
  "luminance": 0.38822
}

Semantic roles & 50–950 ramp

primary
#AFA977
secondary
#B6B8CC
accent
#6FC265
background
#FCFBF9
surface
#F8F7F2
border
#D1D0CC
text
#13120E
muted
#82817E

Preview Lab

Preview with #AFA977

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

Preview Lab → · Contrast checker → · Palette generator →

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