#AFA781#AFA781

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

Color values

HEX#AFA781
RGBrgb(175, 167, 129)
HSLhsl(50, 22%, 60%)
HSVhsv(50, 26%, 69%)
CMYKcmyk(0%, 4.6%, 26.3%, 31.4%)
CIE-LABlab(68.27, -3.28, 20.74)
CIE-LCHlch(68.27, 21.00, 98.98°)
OKLaboklab(72.53% -0.007 0.0525)
OKLCHoklch(72.53% 0.053 97.6)
XYZxyz(35.4605, 38.3371, 26.2964)
Luminance0.3834 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFA781 #8189AF
analogous
#AF9081 #AFA781 #A0AF81
triadic
#AFA781 #81AFA7 #A781AF
tetradic
#AFA781 #81AF90 #8189AF #AF81A0
square
#AFA781 #81AF90 #8189AF #AF81A0
split-complementary
#AFA781 #81A0AF #9081AF
monochromatic
#6F6847 #958B5E #AFA781 #C7C1A6 #DFDBCC

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##AFA781#FFFFFF#000000##000000
##AFA7811.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)
#AFA57F
Deuteranopia (green-blind)
#B1A882
Tritanopia (blue-blind)
#B6A19D
Achromatopsia (no color)
#A6A6A6

Design tokens & code

CSS
--color: #afa781;
/* rgb */ color: rgb(175, 167, 129);
/* oklch */ color: oklch(72.5% 0.053 97.6);
Tailwind
colors: {
  custom: {
    50: '#c7c1a5',
    500: '#afa781',
    950: '#000000',
  },
}
SCSS
$custom: #afa781;
$custom-light: #c7c1a5;
$custom-dark: #000000;
JSON
{
  "hex": "#afa781",
  "rgb": {
    "r": 175,
    "g": 167,
    "b": 129
  },
  "hsl": {
    "h": 49.565,
    "s": 22.33,
    "l": 59.608
  },
  "oklch": {
    "l": 0.72532,
    "c": 0.05299,
    "h": 97.6
  },
  "luminance": 0.38336
}

Semantic roles & 50–950 ramp

primary
#AFA781
secondary
#BDC0CF
accent
#78BF69
background
#FCFBFA
surface
#F8F7F4
border
#D1D0CE
text
#13120F
muted
#82817F

Preview Lab

Preview with #AFA781

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

Preview Lab → · Contrast checker → · Palette generator →

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