#AFA96E#AFA96E

#AFA96E is a light, moderate yellow. Relative luminance 0.386; OKLCH L 72.6% C 0.079 H 103.2°. Best body text is #000000 at 8.72:1 contrast (WCAG AA passes).

Color values

HEX#AFA96E
RGBrgb(175, 169, 110)
HSLhsl(54, 29%, 56%)
HSVhsv(54, 37%, 69%)
CMYKcmyk(0%, 3.4%, 37.1%, 31.4%)
CIE-LABlab(68.47, -6.81, 31.25)
CIE-LCHlch(68.47, 31.98, 102.30°)
OKLaboklab(72.58% -0.018 0.0769)
OKLCHoklch(72.58% 0.079 103.2)
XYZxyz(34.6821, 38.6165, 20.3756)
Luminance0.3862 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFA96E #6E74AF
analogous
#AF886E #AFA96E #94AF6E
triadic
#AFA96E #6EAFA9 #A96EAF
tetradic
#AFA96E #6EAF88 #6E74AF #AF6E94
square
#AFA96E #6EAF88 #6E74AF #AF6E94
split-complementary
#AFA96E #6E94AF #886EAF
monochromatic
#69643A #908A50 #AFA96E #C5C095 #DBD8BD

Accessibility & contrast

On white

2.41
#AFA96E on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.72
#AFA96E on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFA96E
8.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFA96E#FFFFFF#000000##000000
##AFA96E1.002.418.728.72
#FFFFFF2.411.0021.0021.00
#0000008.7221.001.001.00
##0000008.7221.001.001.00

Color blindness preview

Protanopia (red-blind)
#B3A56A
Deuteranopia (green-blind)
#B5A970
Tritanopia (blue-blind)
#B8A19A
Achromatopsia (no color)
#A7A7A7

Design tokens & code

CSS
--color: #afa96e;
/* rgb */ color: rgb(175, 169, 110);
/* oklch */ color: oklch(72.6% 0.079 103.2);
Tailwind
colors: {
  custom: {
    50: '#c8c298',
    500: '#afa96e',
    950: '#000000',
  },
}
SCSS
$custom: #afa96e;
$custom-light: #c8c298;
$custom-dark: #000000;
JSON
{
  "hex": "#afa96e",
  "rgb": {
    "r": 175,
    "g": 169,
    "b": 110
  },
  "hsl": {
    "h": 54.462,
    "s": 28.889,
    "l": 55.882
  },
  "oklch": {
    "l": 0.72583,
    "c": 0.07896,
    "h": 103.2
  },
  "luminance": 0.38616
}

Semantic roles & 50–950 ramp

primary
#AFA96E
secondary
#AFB1CA
accent
#6CC563
background
#FCFBF9
surface
#F8F7F2
border
#D1D0CC
text
#13120E
muted
#82817E

Preview Lab

Preview with #AFA96E

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

Preview Lab → · Contrast checker → · Palette generator →

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