#AFA76B#AFA76B

#AFA76B is a light, moderate yellow. Relative luminance 0.378; OKLCH L 72.1% C 0.080 H 101.6°. Best body text is #000000 at 8.56:1 contrast (WCAG AA passes).

Color values

HEX#AFA76B
RGBrgb(175, 167, 107)
HSLhsl(53, 30%, 55%)
HSVhsv(53, 39%, 69%)
CMYKcmyk(0%, 4.6%, 38.9%, 31.4%)
CIE-LABlab(67.88, -6.10, 32.07)
CIE-LCHlch(67.88, 32.65, 100.77°)
OKLaboklab(72.1% -0.0162 0.0787)
OKLCHoklch(72.1% 0.08 101.6)
XYZxyz(34.1523, 37.8138, 19.4068)
Luminance0.3781 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFA76B #6B73AF
analogous
#AF856B #AFA76B #95AF6B
triadic
#AFA76B #6BAFA7 #A76BAF
tetradic
#AFA76B #6BAF85 #6B73AF #AF6B95
square
#AFA76B #6BAF85 #6B73AF #AF6B95
split-complementary
#AFA76B #6B95AF #856BAF
monochromatic
#686238 #8F884D #AFA76B #C4BF93 #DAD6BA

Accessibility & contrast

On white

2.45
#AFA76B on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.56
#AFA76B on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFA76B
8.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFA76B#FFFFFF#000000##000000
##AFA76B1.002.458.568.56
#FFFFFF2.451.0021.0021.00
#0000008.5621.001.001.00
##0000008.5621.001.001.00

Color blindness preview

Protanopia (red-blind)
#B1A367
Deuteranopia (green-blind)
#B4A76D
Tritanopia (blue-blind)
#B99F98
Achromatopsia (no color)
#A5A5A5

Design tokens & code

CSS
--color: #afa76b;
/* rgb */ color: rgb(175, 167, 107);
/* oklch */ color: oklch(72.1% 0.080 101.6);
Tailwind
colors: {
  custom: {
    50: '#c8c196',
    500: '#afa76b',
    950: '#000000',
  },
}
SCSS
$custom: #afa76b;
$custom-light: #c8c196;
$custom-dark: #000000;
JSON
{
  "hex": "#afa76b",
  "rgb": {
    "r": 175,
    "g": 167,
    "b": 107
  },
  "hsl": {
    "h": 52.941,
    "s": 29.825,
    "l": 55.294
  },
  "oklch": {
    "l": 0.72101,
    "c": 0.0803,
    "h": 101.6
  },
  "luminance": 0.37813
}

Semantic roles & 50–950 ramp

primary
#AFA76B
secondary
#ADB0C9
accent
#6EC662
background
#FCFBF9
surface
#F8F7F2
border
#D1D0CC
text
#13120D
muted
#82817E

Preview Lab

Preview with #AFA76B

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

Preview Lab → · Contrast checker → · Palette generator →

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