#AFA76C#AFA76C

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

Color values

HEX#AFA76C
RGBrgb(175, 167, 108)
HSLhsl(53, 30%, 55%)
HSVhsv(53, 38%, 69%)
CMYKcmyk(0%, 4.6%, 38.3%, 31.4%)
CIE-LABlab(67.90, -5.98, 31.56)
CIE-LCHlch(67.90, 32.13, 100.74°)
OKLaboklab(72.12% -0.0158 0.0775)
OKLCHoklch(72.12% 0.079 101.5)
XYZxyz(34.2052, 37.8350, 19.6855)
Luminance0.3783 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFA76C #6C74AF
analogous
#AF856C #AFA76C #95AF6C
triadic
#AFA76C #6CAFA7 #A76CAF
tetradic
#AFA76C #6CAF85 #6C74AF #AF6C95
square
#AFA76C #6CAF85 #6C74AF #AF6C95
split-complementary
#AFA76C #6C95AF #856CAF
monochromatic
#686239 #90884E #AFA76C #C5BF94 #DAD6BB

Accessibility & contrast

On white

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

On black

8.57
#AFA76C on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFA76C
8.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFA76C#FFFFFF#000000##000000
##AFA76C1.002.458.578.57
#FFFFFF2.451.0021.0021.00
#0000008.5721.001.001.00
##0000008.5721.001.001.00

Color blindness preview

Protanopia (red-blind)
#B1A368
Deuteranopia (green-blind)
#B4A76E
Tritanopia (blue-blind)
#B89F98
Achromatopsia (no color)
#A5A5A5

Design tokens & code

CSS
--color: #afa76c;
/* rgb */ color: rgb(175, 167, 108);
/* oklch */ color: oklch(72.1% 0.079 101.5);
Tailwind
colors: {
  custom: {
    50: '#c8c197',
    500: '#afa76c',
    950: '#000000',
  },
}
SCSS
$custom: #afa76c;
$custom-light: #c8c197;
$custom-dark: #000000;
JSON
{
  "hex": "#afa76c",
  "rgb": {
    "r": 175,
    "g": 167,
    "b": 108
  },
  "hsl": {
    "h": 52.836,
    "s": 29.515,
    "l": 55.49
  },
  "oklch": {
    "l": 0.72118,
    "c": 0.07912,
    "h": 101.5
  },
  "luminance": 0.37834
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #AFA76C

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

Preview Lab → · Contrast checker → · Palette generator →

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