#AFA777#AFA777

#AFA777 is a light, moderate yellow. Relative luminance 0.381; OKLCH L 72.3% C 0.066 H 99.8°. Best body text is #000000 at 8.62:1 contrast (WCAG AA passes).

Color values

HEX#AFA777
RGBrgb(175, 167, 119)
HSLhsl(51, 26%, 58%)
HSVhsv(51, 32%, 69%)
CMYKcmyk(0%, 4.6%, 32%, 31.4%)
CIE-LABlab(68.08, -4.63, 25.92)
CIE-LCHlch(68.08, 26.33, 100.13°)
OKLaboklab(72.32% -0.0112 0.0647)
OKLCHoklch(72.32% 0.066 99.8)
XYZxyz(34.8280, 38.0841, 22.9655)
Luminance0.3808 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFA777 #777FAF
analogous
#AF8B77 #AFA777 #9BAF77
triadic
#AFA777 #77AFA7 #A777AF
tetradic
#AFA777 #77AF8B #777FAF #AF779B
square
#AFA777 #77AF8B #777FAF #AF779B
split-complementary
#AFA777 #779BAF #8B77AF
monochromatic
#6C6640 #938A56 #AFA777 #C6C09E #DCD9C4

Accessibility & contrast

On white

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

On black

8.62
#AFA777 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFA777
8.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFA777#FFFFFF#000000##000000
##AFA7771.002.448.628.62
#FFFFFF2.441.0021.0021.00
#0000008.6221.001.001.00
##0000008.6221.001.001.00

Color blindness preview

Protanopia (red-blind)
#B0A474
Deuteranopia (green-blind)
#B3A779
Tritanopia (blue-blind)
#B7A09A
Achromatopsia (no color)
#A6A6A6

Design tokens & code

CSS
--color: #afa777;
/* rgb */ color: rgb(175, 167, 119);
/* oklch */ color: oklch(72.3% 0.066 99.8);
Tailwind
colors: {
  custom: {
    50: '#c7c19e',
    500: '#afa777',
    950: '#000000',
  },
}
SCSS
$custom: #afa777;
$custom-light: #c7c19e;
$custom-dark: #000000;
JSON
{
  "hex": "#afa777",
  "rgb": {
    "r": 175,
    "g": 167,
    "b": 119
  },
  "hsl": {
    "h": 51.429,
    "s": 25.926,
    "l": 57.647
  },
  "oklch": {
    "l": 0.72324,
    "c": 0.06569,
    "h": 99.8
  },
  "luminance": 0.38083
}

Semantic roles & 50–950 ramp

primary
#AFA777
secondary
#B6B9CC
accent
#73C265
background
#FCFBF9
surface
#F8F7F2
border
#D1D0CC
text
#13120E
muted
#82817E

Preview Lab

Preview with #AFA777

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

Preview Lab → · Contrast checker → · Palette generator →

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