#AFA158#AFA158

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

Color values

HEX#AFA158
RGBrgb(175, 161, 88)
HSLhsl(50, 35%, 52%)
HSVhsv(50, 50%, 69%)
CMYKcmyk(0%, 8%, 49.7%, 31.4%)
CIE-LABlab(65.99, -4.89, 39.58)
CIE-LCHlch(65.99, 39.88, 97.04°)
OKLaboklab(70.51% -0.0144 0.0944)
OKLCHoklch(70.51% 0.095 98.7)
XYZxyz(32.1865, 35.3095, 14.3506)
Luminance0.3531 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFA158 #5866AF
analogous
#AF7658 #AFA158 #92AF58
triadic
#AFA158 #58AFA1 #A158AF
tetradic
#AFA158 #58AF76 #5866AF #AF5892
square
#AFA158 #58AF76 #5866AF #AF5892
split-complementary
#AFA158 #5892AF #7658AF
monochromatic
#5F572E #887D41 #AFA158 #C3B881 #D7D0AB

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##AFA158#FFFFFF#000000##000000
##AFA1581.002.608.068.06
#FFFFFF2.601.0021.0021.00
#0000008.0621.001.001.00
##0000008.0621.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #afa158;
/* rgb */ color: rgb(175, 161, 88);
/* oklch */ color: oklch(70.5% 0.095 98.7);
Tailwind
colors: {
  custom: {
    50: '#c9bc89',
    500: '#afa158',
    950: '#000000',
  },
}
SCSS
$custom: #afa158;
$custom-light: #c9bc89;
$custom-dark: #000000;
JSON
{
  "hex": "#afa158",
  "rgb": {
    "r": 175,
    "g": 161,
    "b": 88
  },
  "hsl": {
    "h": 50.345,
    "s": 35.223,
    "l": 51.569
  },
  "oklch": {
    "l": 0.70513,
    "c": 0.09547,
    "h": 98.7
  },
  "luminance": 0.35308
}

Semantic roles & 50–950 ramp

primary
#AFA158
secondary
#9EA4C5
accent
#6ECB5D
background
#FCFBF8
surface
#F8F6F0
border
#D1D0CB
text
#13120B
muted
#82817C

Preview Lab

Preview with #AFA158

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

Preview Lab → · Contrast checker → · Palette generator →

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