#AFA780#AFA780

#AFA780 is a light, muted yellow. Relative luminance 0.383; OKLCH L 72.5% C 0.054 H 97.8°. Best body text is #000000 at 8.66:1 contrast (WCAG AA passes).

Color values

HEX#AFA780
RGBrgb(175, 167, 128)
HSLhsl(50, 23%, 59%)
HSVhsv(50, 27%, 69%)
CMYKcmyk(0%, 4.6%, 26.9%, 31.4%)
CIE-LABlab(68.25, -3.42, 21.26)
CIE-LCHlch(68.25, 21.53, 99.14°)
OKLaboklab(72.51% -0.0074 0.0538)
OKLCHoklch(72.51% 0.054 97.8)
XYZxyz(35.3943, 38.3106, 25.9481)
Luminance0.3831 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFA780 #8088AF
analogous
#AF9080 #AFA780 #A0AF80
triadic
#AFA780 #80AFA7 #A780AF
tetradic
#AFA780 #80AF90 #8088AF #AF80A0
square
#AFA780 #80AF90 #8088AF #AF80A0
split-complementary
#AFA780 #80A0AF #9080AF
monochromatic
#6F6846 #948B5D #AFA780 #C7C1A6 #DEDBCB

Accessibility & contrast

On white

2.42
#AFA780 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.66
#AFA780 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFA780
8.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFA780#FFFFFF#000000##000000
##AFA7801.002.428.668.66
#FFFFFF2.421.0021.0021.00
#0000008.6621.001.001.00
##0000008.6621.001.001.00

Color blindness preview

Protanopia (red-blind)
#AFA57D
Deuteranopia (green-blind)
#B1A881
Tritanopia (blue-blind)
#B6A19C
Achromatopsia (no color)
#A6A6A6

Design tokens & code

CSS
--color: #afa780;
/* rgb */ color: rgb(175, 167, 128);
/* oklch */ color: oklch(72.5% 0.054 97.8);
Tailwind
colors: {
  custom: {
    50: '#c7c1a5',
    500: '#afa780',
    950: '#000000',
  },
}
SCSS
$custom: #afa780;
$custom-light: #c7c1a5;
$custom-dark: #000000;
JSON
{
  "hex": "#afa780",
  "rgb": {
    "r": 175,
    "g": 167,
    "b": 128
  },
  "hsl": {
    "h": 49.787,
    "s": 22.705,
    "l": 59.412
  },
  "oklch": {
    "l": 0.7251,
    "c": 0.05428,
    "h": 97.8
  },
  "luminance": 0.3831
}

Semantic roles & 50–950 ramp

primary
#AFA780
secondary
#BCBFCF
accent
#77BF69
background
#FCFBFA
surface
#F8F7F4
border
#D1D0CE
text
#13120F
muted
#82817F

Preview Lab

Preview with #AFA780

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

Preview Lab → · Contrast checker → · Palette generator →

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