#AFA156#AFA156

#AFA156 is a light, moderate yellow. Relative luminance 0.353; OKLCH L 70.5% C 0.098 H 99.0°. Best body text is #000000 at 8.06:1 contrast (WCAG AA passes).

Color values

HEX#AFA156
RGBrgb(175, 161, 86)
HSLhsl(51, 36%, 51%)
HSVhsv(51, 51%, 69%)
CMYKcmyk(0%, 8%, 50.9%, 31.4%)
CIE-LABlab(65.96, -5.08, 40.56)
CIE-LCHlch(65.96, 40.88, 97.13°)
OKLaboklab(70.49% -0.0152 0.0964)
OKLCHoklch(70.49% 0.098 99)
XYZxyz(32.1048, 35.2768, 13.9203)
Luminance0.3528 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFA156 #5664AF
analogous
#AF7456 #AFA156 #90AF56
triadic
#AFA156 #56AFA1 #A156AF
tetradic
#AFA156 #56AF74 #5664AF #AF5690
square
#AFA156 #56AF74 #5664AF #AF5690
split-complementary
#AFA156 #5690AF #7456AF
monochromatic
#5E562D #887C40 #AFA156 #C3B880 #D6CFA9

Accessibility & contrast

On white

2.61
#AFA156 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.06
#AFA156 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFA156
8.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFA156#FFFFFF#000000##000000
##AFA1561.002.618.068.06
#FFFFFF2.611.0021.0021.00
#0000008.0621.001.001.00
##0000008.0621.001.001.00

Color blindness preview

Protanopia (red-blind)
#AE9D4F
Deuteranopia (green-blind)
#B2A359
Tritanopia (blue-blind)
#BB988F
Achromatopsia (no color)
#A0A0A0

Design tokens & code

CSS
--color: #afa156;
/* rgb */ color: rgb(175, 161, 86);
/* oklch */ color: oklch(70.5% 0.098 99.0);
Tailwind
colors: {
  custom: {
    50: '#c9bc87',
    500: '#afa156',
    950: '#000000',
  },
}
SCSS
$custom: #afa156;
$custom-light: #c9bc87;
$custom-dark: #000000;
JSON
{
  "hex": "#afa156",
  "rgb": {
    "r": 175,
    "g": 161,
    "b": 86
  },
  "hsl": {
    "h": 50.562,
    "s": 35.743,
    "l": 51.176
  },
  "oklch": {
    "l": 0.70485,
    "c": 0.09756,
    "h": 99
  },
  "luminance": 0.35276
}

Semantic roles & 50–950 ramp

primary
#AFA156
secondary
#9DA3C4
accent
#6ECC5C
background
#FCFBF8
surface
#F8F6F0
border
#D1D0CB
text
#13120B
muted
#82817C

Preview Lab

Preview with #AFA156

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

Preview Lab → · Contrast checker → · Palette generator →

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