#AFA15B#AFA15B

#AFA15B is a light, moderate yellow. Relative luminance 0.354; OKLCH L 70.6% C 0.092 H 98.3°. Best body text is #000000 at 8.07:1 contrast (WCAG AA passes).

Color values

HEX#AFA15B
RGBrgb(175, 161, 91)
HSLhsl(50, 34%, 52%)
HSVhsv(50, 48%, 69%)
CMYKcmyk(0%, 8%, 48%, 31.4%)
CIE-LABlab(66.03, -4.60, 38.09)
CIE-LCHlch(66.03, 38.37, 96.89°)
OKLaboklab(70.56% -0.0133 0.0913)
OKLCHoklch(70.56% 0.092 98.3)
XYZxyz(32.3133, 35.3602, 15.0186)
Luminance0.3536 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFA15B #5B69AF
analogous
#AF775B #AFA15B #93AF5B
triadic
#AFA15B #5BAFA1 #A15BAF
tetradic
#AFA15B #5BAF77 #5B69AF #AF5B93
square
#AFA15B #5BAF77 #5B69AF #AF5B93
split-complementary
#AFA15B #5B93AF #775BAF
monochromatic
#61582F #8A7E43 #AFA15B #C3B984 #D7D0AD

Accessibility & contrast

On white

2.60
#AFA15B on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.07
#AFA15B on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFA15B
8.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFA15B#FFFFFF#000000##000000
##AFA15B1.002.608.078.07
#FFFFFF2.601.0021.0021.00
#0000008.0721.001.001.00
##0000008.0721.001.001.00

Color blindness preview

Protanopia (red-blind)
#AD9E55
Deuteranopia (green-blind)
#B1A35E
Tritanopia (blue-blind)
#BA9890
Achromatopsia (no color)
#A0A0A0

Design tokens & code

CSS
--color: #afa15b;
/* rgb */ color: rgb(175, 161, 91);
/* oklch */ color: oklch(70.6% 0.092 98.3);
Tailwind
colors: {
  custom: {
    50: '#c8bc8b',
    500: '#afa15b',
    950: '#000000',
  },
}
SCSS
$custom: #afa15b;
$custom-light: #c8bc8b;
$custom-dark: #000000;
JSON
{
  "hex": "#afa15b",
  "rgb": {
    "r": 175,
    "g": 161,
    "b": 91
  },
  "hsl": {
    "h": 50,
    "s": 34.426,
    "l": 52.157
  },
  "oklch": {
    "l": 0.70557,
    "c": 0.09227,
    "h": 98.3
  },
  "luminance": 0.35359
}

Semantic roles & 50–950 ramp

primary
#AFA15B
secondary
#A1A7C5
accent
#6FCB5D
background
#FCFBF8
surface
#F8F6F0
border
#D1D0CB
text
#13120C
muted
#82817D

Preview Lab

Preview with #AFA15B

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

Preview Lab → · Contrast checker → · Palette generator →

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