#AFA77F#AFA77F

#AFA77F is a light, muted yellow. Relative luminance 0.383; OKLCH L 72.5% C 0.056 H 98.1°. Best body text is #000000 at 8.66:1 contrast (WCAG AA passes).

Color values

HEX#AFA77F
RGBrgb(175, 167, 127)
HSLhsl(50, 23%, 59%)
HSVhsv(50, 27%, 69%)
CMYKcmyk(0%, 4.6%, 27.4%, 31.4%)
CIE-LABlab(68.23, -3.56, 21.78)
CIE-LCHlch(68.23, 22.07, 99.28°)
OKLaboklab(72.49% -0.0078 0.055)
OKLCHoklch(72.49% 0.056 98.1)
XYZxyz(35.3288, 38.2844, 25.6031)
Luminance0.3828 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFA77F #7F87AF
analogous
#AF8F7F #AFA77F #9FAF7F
triadic
#AFA77F #7FAFA7 #A77FAF
tetradic
#AFA77F #7FAF8F #7F87AF #AF7F9F
square
#AFA77F #7FAF8F #7F87AF #AF7F9F
split-complementary
#AFA77F #7F9FAF #8F7FAF
monochromatic
#6F6845 #948B5D #AFA77F #C7C1A5 #DEDBCA

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##AFA77F#FFFFFF#000000##000000
##AFA77F1.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)
#AFA57C
Deuteranopia (green-blind)
#B1A880
Tritanopia (blue-blind)
#B6A19C
Achromatopsia (no color)
#A6A6A6

Design tokens & code

CSS
--color: #afa77f;
/* rgb */ color: rgb(175, 167, 127);
/* oklch */ color: oklch(72.5% 0.056 98.1);
Tailwind
colors: {
  custom: {
    50: '#c7c1a4',
    500: '#afa77f',
    950: '#000000',
  },
}
SCSS
$custom: #afa77f;
$custom-light: #c7c1a4;
$custom-dark: #000000;
JSON
{
  "hex": "#afa77f",
  "rgb": {
    "r": 175,
    "g": 167,
    "b": 127
  },
  "hsl": {
    "h": 50,
    "s": 23.077,
    "l": 59.216
  },
  "oklch": {
    "l": 0.72488,
    "c": 0.05556,
    "h": 98.1
  },
  "luminance": 0.38284
}

Semantic roles & 50–950 ramp

primary
#AFA77F
secondary
#BCBFCE
accent
#77C068
background
#FCFBFA
surface
#F8F7F4
border
#D1D0CE
text
#13120F
muted
#82817F

Preview Lab

Preview with #AFA77F

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

Preview Lab → · Contrast checker → · Palette generator →

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