#AFA86E#AFA86E

#AFA86E is a light, moderate yellow. Relative luminance 0.382; OKLCH L 72.4% C 0.078 H 102.2°. Best body text is #000000 at 8.65:1 contrast (WCAG AA passes).

Color values

HEX#AFA86E
RGBrgb(175, 168, 110)
HSLhsl(54, 29%, 56%)
HSVhsv(54, 37%, 69%)
CMYKcmyk(0%, 4%, 37.1%, 31.4%)
CIE-LABlab(68.20, -6.28, 30.89)
CIE-LCHlch(68.20, 31.53, 101.49°)
OKLaboklab(72.37% -0.0165 0.0761)
OKLCHoklch(72.37% 0.078 102.2)
XYZxyz(34.4968, 38.2459, 20.3138)
Luminance0.3825 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFA86E #6E75AF
analogous
#AF876E #AFA86E #95AF6E
triadic
#AFA86E #6EAFA8 #A86EAF
tetradic
#AFA86E #6EAF87 #6E75AF #AF6E95
square
#AFA86E #6EAF87 #6E75AF #AF6E95
split-complementary
#AFA86E #6E95AF #876EAF
monochromatic
#69643A #908950 #AFA86E #C5C095 #DBD7BD

Accessibility & contrast

On white

2.43
#AFA86E on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.65
#AFA86E on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFA86E
8.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFA86E#FFFFFF#000000##000000
##AFA86E1.002.438.658.65
#FFFFFF2.431.0021.0021.00
#0000008.6521.001.001.00
##0000008.6521.001.001.00

Color blindness preview

Protanopia (red-blind)
#B2A46A
Deuteranopia (green-blind)
#B4A870
Tritanopia (blue-blind)
#B8A099
Achromatopsia (no color)
#A6A6A6

Design tokens & code

CSS
--color: #afa86e;
/* rgb */ color: rgb(175, 168, 110);
/* oklch */ color: oklch(72.4% 0.078 102.2);
Tailwind
colors: {
  custom: {
    50: '#c8c198',
    500: '#afa86e',
    950: '#000000',
  },
}
SCSS
$custom: #afa86e;
$custom-light: #c8c198;
$custom-dark: #000000;
JSON
{
  "hex": "#afa86e",
  "rgb": {
    "r": 175,
    "g": 168,
    "b": 110
  },
  "hsl": {
    "h": 53.538,
    "s": 28.889,
    "l": 55.882
  },
  "oklch": {
    "l": 0.72368,
    "c": 0.07783,
    "h": 102.2
  },
  "luminance": 0.38245
}

Semantic roles & 50–950 ramp

primary
#AFA86E
secondary
#AFB2CA
accent
#6DC563
background
#FCFBF9
surface
#F8F7F2
border
#D1D0CC
text
#13120E
muted
#82817E

Preview Lab

Preview with #AFA86E

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

Preview Lab → · Contrast checker → · Palette generator →

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