#AFA782#AFA782

#AFA782 is a light, muted yellow. Relative luminance 0.384; OKLCH L 72.6% C 0.052 H 97.3°. Best body text is #000000 at 8.67:1 contrast (WCAG AA passes).

Color values

HEX#AFA782
RGBrgb(175, 167, 130)
HSLhsl(49, 22%, 60%)
HSVhsv(49, 26%, 69%)
CMYKcmyk(0%, 4.6%, 25.7%, 31.4%)
CIE-LABlab(68.29, -3.14, 20.22)
CIE-LCHlch(68.29, 20.46, 98.82°)
OKLaboklab(72.55% -0.0065 0.0513)
OKLCHoklch(72.55% 0.052 97.3)
XYZxyz(35.5273, 38.3638, 26.6482)
Luminance0.3836 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFA782 #828AAF
analogous
#AF9182 #AFA782 #A1AF82
triadic
#AFA782 #82AFA7 #A782AF
tetradic
#AFA782 #82AF91 #828AAF #AF82A1
square
#AFA782 #82AF91 #828AAF #AF82A1
split-complementary
#AFA782 #82A1AF #9182AF
monochromatic
#6F6847 #958B5F #AFA782 #C7C1A7 #DFDCCD

Accessibility & contrast

On white

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

On black

8.67
#AFA782 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFA782
8.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFA782#FFFFFF#000000##000000
##AFA7821.002.428.678.67
#FFFFFF2.421.0021.0021.00
#0000008.6721.001.001.00
##0000008.6721.001.001.00

Color blindness preview

Protanopia (red-blind)
#AFA580
Deuteranopia (green-blind)
#B1A883
Tritanopia (blue-blind)
#B6A29D
Achromatopsia (no color)
#A6A6A6

Design tokens & code

CSS
--color: #afa782;
/* rgb */ color: rgb(175, 167, 130);
/* oklch */ color: oklch(72.6% 0.052 97.3);
Tailwind
colors: {
  custom: {
    50: '#c7c1a6',
    500: '#afa782',
    950: '#000000',
  },
}
SCSS
$custom: #afa782;
$custom-light: #c7c1a6;
$custom-dark: #000000;
JSON
{
  "hex": "#afa782",
  "rgb": {
    "r": 175,
    "g": 167,
    "b": 130
  },
  "hsl": {
    "h": 49.333,
    "s": 21.951,
    "l": 59.804
  },
  "oklch": {
    "l": 0.72553,
    "c": 0.05171,
    "h": 97.3
  },
  "luminance": 0.38363
}

Semantic roles & 50–950 ramp

primary
#AFA782
secondary
#BEC1CF
accent
#78BE69
background
#FCFBFA
surface
#F8F7F4
border
#D1D0CE
text
#13120F
muted
#82817F

Preview Lab

Preview with #AFA782

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

Preview Lab → · Contrast checker → · Palette generator →

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