#AFAF80#AFAF80

#AFAF80 is a light, moderate yellow. Relative luminance 0.413; OKLCH L 74.2% C 0.064 H 107.9°. Best body text is #000000 at 9.27:1 contrast (WCAG AA passes).

Color values

HEX#AFAF80
RGBrgb(175, 175, 128)
HSLhsl(60, 23%, 59%)
HSVhsv(60, 27%, 69%)
CMYKcmyk(0%, 0%, 26.9%, 31.4%)
CIE-LABlab(70.41, -7.68, 24.19)
CIE-LCHlch(70.41, 25.38, 107.62°)
OKLaboklab(74.22% -0.0196 0.0608)
OKLCHoklch(74.22% 0.064 107.9)
XYZxyz(36.9055, 41.3330, 26.4518)
Luminance0.4133 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFAF80 #8080AF
analogous
#AF9880 #AFAF80 #98AF80
triadic
#AFAF80 #80AFAF #AF80AF
tetradic
#AFAF80 #80AF98 #8080AF #AF8098
square
#AFAF80 #80AF98 #8080AF #AF8098
split-complementary
#AFAF80 #8098AF #9880AF
monochromatic
#6F6F46 #94945D #AFAF80 #C7C7A6 #DEDECB

Accessibility & contrast

On white

2.27
#AFAF80 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.27
#AFAF80 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFAF80
9.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFAF80#FFFFFF#000000##000000
##AFAF801.002.279.279.27
#FFFFFF2.271.0021.0021.00
#0000009.2721.001.001.00
##0000009.2721.001.001.00

Color blindness preview

Protanopia (red-blind)
#B7AB7D
Deuteranopia (green-blind)
#B8AD82
Tritanopia (blue-blind)
#B6A9A3
Achromatopsia (no color)
#ACACAC

Design tokens & code

CSS
--color: #afaf80;
/* rgb */ color: rgb(175, 175, 128);
/* oklch */ color: oklch(74.2% 0.064 107.9);
Tailwind
colors: {
  custom: {
    50: '#c7c6a5',
    500: '#afaf80',
    950: '#000000',
  },
}
SCSS
$custom: #afaf80;
$custom-light: #c7c6a5;
$custom-dark: #000000;
JSON
{
  "hex": "#afaf80",
  "rgb": {
    "r": 175,
    "g": 175,
    "b": 128
  },
  "hsl": {
    "h": 60,
    "s": 22.705,
    "l": 59.412
  },
  "oklch": {
    "l": 0.74219,
    "c": 0.06389,
    "h": 107.9
  },
  "luminance": 0.41332
}

Semantic roles & 50–950 ramp

primary
#AFAF80
secondary
#BCBCCF
accent
#69BF69
background
#FCFCFA
surface
#F8F8F4
border
#D1D1CE
text
#13130F
muted
#82827F

Preview Lab

Preview with #AFAF80

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

Preview Lab → · Contrast checker → · Palette generator →

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