#AFA15C#AFA15C

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

Color values

HEX#AFA15C
RGBrgb(175, 161, 92)
HSLhsl(50, 34%, 52%)
HSVhsv(50, 47%, 69%)
CMYKcmyk(0%, 8%, 47.4%, 31.4%)
CIE-LABlab(66.04, -4.50, 37.59)
CIE-LCHlch(66.04, 37.86, 96.83°)
OKLaboklab(70.57% -0.0129 0.0903)
OKLCHoklch(70.57% 0.091 98.1)
XYZxyz(32.3567, 35.3776, 15.2473)
Luminance0.3538 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFA15C #5C6AAF
analogous
#AF785C #AFA15C #93AF5C
triadic
#AFA15C #5CAFA1 #A15CAF
tetradic
#AFA15C #5CAF78 #5C6AAF #AF5C93
square
#AFA15C #5CAF78 #5C6AAF #AF5C93
split-complementary
#AFA15C #5C93AF #785CAF
monochromatic
#615930 #8A7E44 #AFA15C #C3B985 #D7D0AE

Accessibility & contrast

On white

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

On black

8.08
#AFA15C on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFA15C
8.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFA15C#FFFFFF#000000##000000
##AFA15C1.002.608.088.08
#FFFFFF2.601.0021.0021.00
#0000008.0821.001.001.00
##0000008.0821.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #afa15c;
/* rgb */ color: rgb(175, 161, 92);
/* oklch */ color: oklch(70.6% 0.091 98.1);
Tailwind
colors: {
  custom: {
    50: '#c8bc8b',
    500: '#afa15c',
    950: '#000000',
  },
}
SCSS
$custom: #afa15c;
$custom-light: #c8bc8b;
$custom-dark: #000000;
JSON
{
  "hex": "#afa15c",
  "rgb": {
    "r": 175,
    "g": 161,
    "b": 92
  },
  "hsl": {
    "h": 49.88,
    "s": 34.156,
    "l": 52.353
  },
  "oklch": {
    "l": 0.70572,
    "c": 0.09119,
    "h": 98.1
  },
  "luminance": 0.35376
}

Semantic roles & 50–950 ramp

primary
#AFA15C
secondary
#A1A7C5
accent
#70CA5E
background
#FCFBF8
surface
#F8F6F0
border
#D1D0CB
text
#13120C
muted
#82817D

Preview Lab

Preview with #AFA15C

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

Preview Lab → · Contrast checker → · Palette generator →

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