#AFA77C#AFA77C

#AFA77C is a light, muted yellow. Relative luminance 0.382; OKLCH L 72.4% C 0.059 H 98.8°. Best body text is #000000 at 8.64:1 contrast (WCAG AA passes).

Color values

HEX#AFA77C
RGBrgb(175, 167, 124)
HSLhsl(51, 24%, 59%)
HSVhsv(51, 29%, 69%)
CMYKcmyk(0%, 4.6%, 29.1%, 31.4%)
CIE-LABlab(68.17, -3.97, 23.33)
CIE-LCHlch(68.17, 23.67, 99.65°)
OKLaboklab(72.43% -0.0091 0.0587)
OKLCHoklch(72.43% 0.059 98.8)
XYZxyz(35.1362, 38.2074, 24.5887)
Luminance0.3821 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFA77C #7C84AF
analogous
#AF8D7C #AFA77C #9DAF7C
triadic
#AFA77C #7CAFA7 #A77CAF
tetradic
#AFA77C #7CAF8D #7C84AF #AF7C9D
square
#AFA77C #7CAF8D #7C84AF #AF7C9D
split-complementary
#AFA77C #7C9DAF #8D7CAF
monochromatic
#6E6743 #948B5A #AFA77C #C6C1A2 #DDDAC8

Accessibility & contrast

On white

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

On black

8.64
#AFA77C on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFA77C
8.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFA77C#FFFFFF#000000##000000
##AFA77C1.002.438.648.64
#FFFFFF2.431.0021.0021.00
#0000008.6421.001.001.00
##0000008.6421.001.001.00

Color blindness preview

Protanopia (red-blind)
#AFA479
Deuteranopia (green-blind)
#B2A87D
Tritanopia (blue-blind)
#B7A19C
Achromatopsia (no color)
#A6A6A6

Design tokens & code

CSS
--color: #afa77c;
/* rgb */ color: rgb(175, 167, 124);
/* oklch */ color: oklch(72.4% 0.059 98.8);
Tailwind
colors: {
  custom: {
    50: '#c7c1a2',
    500: '#afa77c',
    950: '#000000',
  },
}
SCSS
$custom: #afa77c;
$custom-light: #c7c1a2;
$custom-dark: #000000;
JSON
{
  "hex": "#afa77c",
  "rgb": {
    "r": 175,
    "g": 167,
    "b": 124
  },
  "hsl": {
    "h": 50.588,
    "s": 24.171,
    "l": 58.627
  },
  "oklch": {
    "l": 0.72425,
    "c": 0.05939,
    "h": 98.8
  },
  "luminance": 0.38207
}

Semantic roles & 50–950 ramp

primary
#AFA77C
secondary
#B9BCCD
accent
#75C167
background
#FCFBFA
surface
#F8F7F3
border
#D1D0CD
text
#13120F
muted
#82817F

Preview Lab

Preview with #AFA77C

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

Preview Lab → · Contrast checker → · Palette generator →

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