#AFA159#AFA159

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

Color values

HEX#AFA159
RGBrgb(175, 161, 89)
HSLhsl(50, 35%, 52%)
HSVhsv(50, 49%, 69%)
CMYKcmyk(0%, 8%, 49.1%, 31.4%)
CIE-LABlab(66.00, -4.80, 39.08)
CIE-LCHlch(66.00, 39.38, 97.00°)
OKLaboklab(70.53% -0.0141 0.0934)
OKLCHoklch(70.53% 0.094 98.6)
XYZxyz(32.2282, 35.3261, 14.5702)
Luminance0.3533 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFA159 #5967AF
analogous
#AF7659 #AFA159 #92AF59
triadic
#AFA159 #59AFA1 #A159AF
tetradic
#AFA159 #59AF76 #5967AF #AF5992
square
#AFA159 #59AF76 #5967AF #AF5992
split-complementary
#AFA159 #5992AF #7659AF
monochromatic
#60572E #897D42 #AFA159 #C3B882 #D7D0AC

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##AFA159#FFFFFF#000000##000000
##AFA1591.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)
#AD9D53
Deuteranopia (green-blind)
#B1A35C
Tritanopia (blue-blind)
#BA9890
Achromatopsia (no color)
#A0A0A0

Design tokens & code

CSS
--color: #afa159;
/* rgb */ color: rgb(175, 161, 89);
/* oklch */ color: oklch(70.5% 0.094 98.6);
Tailwind
colors: {
  custom: {
    50: '#c9bc89',
    500: '#afa159',
    950: '#000000',
  },
}
SCSS
$custom: #afa159;
$custom-light: #c9bc89;
$custom-dark: #000000;
JSON
{
  "hex": "#afa159",
  "rgb": {
    "r": 175,
    "g": 161,
    "b": 89
  },
  "hsl": {
    "h": 50.233,
    "s": 34.959,
    "l": 51.765
  },
  "oklch": {
    "l": 0.70527,
    "c": 0.09441,
    "h": 98.6
  },
  "luminance": 0.35325
}

Semantic roles & 50–950 ramp

primary
#AFA159
secondary
#9FA5C5
accent
#6FCB5D
background
#FCFBF8
surface
#F8F6F0
border
#D1D0CB
text
#13120C
muted
#82817D

Preview Lab

Preview with #AFA159

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

Preview Lab → · Contrast checker → · Palette generator →

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