#AFA77D#AFA77D

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

Color values

HEX#AFA77D
RGBrgb(175, 167, 125)
HSLhsl(50, 24%, 59%)
HSVhsv(50, 29%, 69%)
CMYKcmyk(0%, 4.6%, 28.6%, 31.4%)
CIE-LABlab(68.19, -3.83, 22.82)
CIE-LCHlch(68.19, 23.13, 99.54°)
OKLaboklab(72.45% -0.0087 0.0575)
OKLCHoklch(72.45% 0.058 98.6)
XYZxyz(35.1998, 38.2328, 24.9235)
Luminance0.3823 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFA77D #7D85AF
analogous
#AF8E7D #AFA77D #9EAF7D
triadic
#AFA77D #7DAFA7 #A77DAF
tetradic
#AFA77D #7DAF8E #7D85AF #AF7D9E
square
#AFA77D #7DAF8E #7D85AF #AF7D9E
split-complementary
#AFA77D #7D9EAF #8E7DAF
monochromatic
#6E6744 #948B5B #AFA77D #C6C1A3 #DEDAC9

Accessibility & contrast

On white

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

On black

8.65
#AFA77D on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFA77D
8.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFA77D#FFFFFF#000000##000000
##AFA77D1.002.438.658.65
#FFFFFF2.431.0021.0021.00
#0000008.6521.001.001.00
##0000008.6521.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #afa77d;
/* rgb */ color: rgb(175, 167, 125);
/* oklch */ color: oklch(72.4% 0.058 98.6);
Tailwind
colors: {
  custom: {
    50: '#c7c1a3',
    500: '#afa77d',
    950: '#000000',
  },
}
SCSS
$custom: #afa77d;
$custom-light: #c7c1a3;
$custom-dark: #000000;
JSON
{
  "hex": "#afa77d",
  "rgb": {
    "r": 175,
    "g": 167,
    "b": 125
  },
  "hsl": {
    "h": 50.4,
    "s": 23.81,
    "l": 58.824
  },
  "oklch": {
    "l": 0.72446,
    "c": 0.05812,
    "h": 98.6
  },
  "luminance": 0.38232
}

Semantic roles & 50–950 ramp

primary
#AFA77D
secondary
#BABDCE
accent
#76C068
background
#FCFBFA
surface
#F8F7F3
border
#D1D0CD
text
#13120F
muted
#82817F

Preview Lab

Preview with #AFA77D

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

Preview Lab → · Contrast checker → · Palette generator →

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