#AFA15F#AFA15F

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

Color values

HEX#AFA15F
RGBrgb(175, 161, 95)
HSLhsl(50, 33%, 53%)
HSVhsv(50, 46%, 69%)
CMYKcmyk(0%, 8%, 45.7%, 31.4%)
CIE-LABlab(66.08, -4.20, 36.09)
CIE-LCHlch(66.08, 36.33, 96.64°)
OKLaboklab(70.62% -0.0117 0.0871)
OKLCHoklch(70.62% 0.088 97.7)
XYZxyz(32.4905, 35.4311, 15.9517)
Luminance0.3543 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFA15F #5F6DAF
analogous
#AF795F #AFA15F #95AF5F
triadic
#AFA15F #5FAFA1 #A15FAF
tetradic
#AFA15F #5FAF79 #5F6DAF #AF5F95
square
#AFA15F #5FAF79 #5F6DAF #AF5F95
split-complementary
#AFA15F #5F95AF #795FAF
monochromatic
#625A31 #8B7F46 #AFA15F #C3B988 #D8D1B1

Accessibility & contrast

On white

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

On black

8.09
#AFA15F on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFA15F
8.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFA15F#FFFFFF#000000##000000
##AFA15F1.002.608.098.09
#FFFFFF2.601.0021.0021.00
#0000008.0921.001.001.00
##0000008.0921.001.001.00

Color blindness preview

Protanopia (red-blind)
#AD9E5A
Deuteranopia (green-blind)
#B1A362
Tritanopia (blue-blind)
#BA9891
Achromatopsia (no color)
#A1A1A1

Design tokens & code

CSS
--color: #afa15f;
/* rgb */ color: rgb(175, 161, 95);
/* oklch */ color: oklch(70.6% 0.088 97.7);
Tailwind
colors: {
  custom: {
    50: '#c8bc8d',
    500: '#afa15f',
    950: '#000000',
  },
}
SCSS
$custom: #afa15f;
$custom-light: #c8bc8d;
$custom-dark: #000000;
JSON
{
  "hex": "#afa15f",
  "rgb": {
    "r": 175,
    "g": 161,
    "b": 95
  },
  "hsl": {
    "h": 49.5,
    "s": 33.333,
    "l": 52.941
  },
  "oklch": {
    "l": 0.70618,
    "c": 0.0879,
    "h": 97.7
  },
  "luminance": 0.3543
}

Semantic roles & 50–950 ramp

primary
#AFA15F
secondary
#A4AAC6
accent
#71C95E
background
#FCFBF8
surface
#F8F6F0
border
#D1D0CB
text
#13120C
muted
#82817D

Preview Lab

Preview with #AFA15F

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

Preview Lab → · Contrast checker → · Palette generator →

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