#AFAB77#AFAB77

#AFAB77 is a light, moderate yellow. Relative luminance 0.396; OKLCH L 73.2% C 0.070 H 104.3°. Best body text is #000000 at 8.91:1 contrast (WCAG AA passes).

Color values

HEX#AFAB77
RGBrgb(175, 171, 119)
HSLhsl(56, 26%, 58%)
HSVhsv(56, 32%, 69%)
CMYKcmyk(0%, 2.3%, 32%, 31.4%)
CIE-LABlab(69.16, -6.76, 27.36)
CIE-LCHlch(69.16, 28.18, 103.88°)
OKLaboklab(73.18% -0.0173 0.0681)
OKLCHoklch(73.18% 0.07 104.3)
XYZxyz(35.5722, 39.5724, 23.2135)
Luminance0.3957 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFAB77 #777BAF
analogous
#AF8F77 #AFAB77 #97AF77
triadic
#AFAB77 #77AFAB #AB77AF
tetradic
#AFAB77 #77AF8F #777BAF #AF7797
square
#AFAB77 #77AF8F #777BAF #AF7797
split-complementary
#AFAB77 #7797AF #8F77AF
monochromatic
#6C6940 #938E56 #AFAB77 #C6C39E #DCDBC4

Accessibility & contrast

On white

2.36
#AFAB77 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.91
#AFAB77 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFAB77
8.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFAB77#FFFFFF#000000##000000
##AFAB771.002.368.918.91
#FFFFFF2.361.0021.0021.00
#0000008.9121.001.001.00
##0000008.9121.001.001.00

Color blindness preview

Protanopia (red-blind)
#B4A773
Deuteranopia (green-blind)
#B6AA79
Tritanopia (blue-blind)
#B7A49E
Achromatopsia (no color)
#A9A9A9

Design tokens & code

CSS
--color: #afab77;
/* rgb */ color: rgb(175, 171, 119);
/* oklch */ color: oklch(73.2% 0.070 104.3);
Tailwind
colors: {
  custom: {
    50: '#c7c39e',
    500: '#afab77',
    950: '#000000',
  },
}
SCSS
$custom: #afab77;
$custom-light: #c7c39e;
$custom-dark: #000000;
JSON
{
  "hex": "#afab77",
  "rgb": {
    "r": 175,
    "g": 171,
    "b": 119
  },
  "hsl": {
    "h": 55.714,
    "s": 25.926,
    "l": 57.647
  },
  "oklch": {
    "l": 0.7318,
    "c": 0.07029,
    "h": 104.3
  },
  "luminance": 0.39572
}

Semantic roles & 50–950 ramp

primary
#AFAB77
secondary
#B6B7CC
accent
#6CC265
background
#FCFCF9
surface
#F8F8F2
border
#D1D1CC
text
#13120E
muted
#82817E

Preview Lab

Preview with #AFAB77

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

Preview Lab → · Contrast checker → · Palette generator →

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