#AFA856#AFA856

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

Color values

HEX#AFA856
RGBrgb(175, 168, 86)
HSLhsl(55, 36%, 51%)
HSVhsv(55, 51%, 69%)
CMYKcmyk(0%, 4%, 50.9%, 31.4%)
CIE-LABlab(67.87, -8.79, 42.84)
CIE-LCHlch(67.87, 43.74, 101.60°)
OKLaboklab(72% -0.0259 0.1014)
OKLCHoklch(72% 0.105 104.3)
XYZxyz(33.3624, 37.7921, 14.3395)
Luminance0.3779 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFA856 #565DAF
analogous
#AF7B56 #AFA856 #89AF56
triadic
#AFA856 #56AFA8 #A856AF
tetradic
#AFA856 #56AF7B #565DAF #AF5689
square
#AFA856 #56AF7B #565DAF #AF5689
split-complementary
#AFA856 #5689AF #7B56AF
monochromatic
#5E5A2D #888240 #AFA856 #C3BD80 #D6D3A9

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##AFA856#FFFFFF#000000##000000
##AFA8561.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)
#B4A34F
Deuteranopia (green-blind)
#B7A75A
Tritanopia (blue-blind)
#BA9F95
Achromatopsia (no color)
#A5A5A5

Design tokens & code

CSS
--color: #afa856;
/* rgb */ color: rgb(175, 168, 86);
/* oklch */ color: oklch(72.0% 0.105 104.3);
Tailwind
colors: {
  custom: {
    50: '#c9c188',
    500: '#afa856',
    950: '#000000',
  },
}
SCSS
$custom: #afa856;
$custom-light: #c9c188;
$custom-dark: #000000;
JSON
{
  "hex": "#afa856",
  "rgb": {
    "r": 175,
    "g": 168,
    "b": 86
  },
  "hsl": {
    "h": 55.281,
    "s": 35.743,
    "l": 51.176
  },
  "oklch": {
    "l": 0.71995,
    "c": 0.10462,
    "h": 104.3
  },
  "luminance": 0.37791
}

Semantic roles & 50–950 ramp

primary
#AFA856
secondary
#9DA0C4
accent
#65CC5C
background
#FCFBF8
surface
#F8F7F0
border
#D1D0CB
text
#13120B
muted
#82817C

Preview Lab

Preview with #AFA856

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

Preview Lab → · Contrast checker → · Palette generator →

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