#AFA941#AFA941

#AFA941 is a light, vivid yellow. Relative luminance 0.379; OKLCH L 72.0% C 0.125 H 106.0°. Best body text is #000000 at 8.57:1 contrast (WCAG AA passes).

Color values

HEX#AFA941
RGBrgb(175, 169, 65)
HSLhsl(57, 46%, 47%)
HSVhsv(57, 63%, 69%)
CMYKcmyk(0%, 3.4%, 62.9%, 31.4%)
CIE-LABlab(67.93, -10.96, 52.75)
CIE-LCHlch(67.93, 53.88, 101.74°)
OKLaboklab(71.97% -0.0344 0.1201)
OKLCHoklch(71.97% 0.125 106)
XYZxyz(32.8224, 37.8726, 10.5812)
Luminance0.3787 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFA941 #4147AF
analogous
#AF7241 #AFA941 #7EAF41
triadic
#AFA941 #41AFA9 #A941AF
tetradic
#AFA941 #41AF72 #4147AF #AF417E
square
#AFA941 #41AF72 #4147AF #AF417E
split-complementary
#AFA941 #417EAF #7241AF
monochromatic
#565320 #827E30 #AFA941 #C6C167 #D7D393

Accessibility & contrast

On white

2.45
#AFA941 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.57
#AFA941 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFA941
8.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFA941#FFFFFF#000000##000000
##AFA9411.002.458.578.57
#FFFFFF2.451.0021.0021.00
#0000008.5721.001.001.00
##0000008.5721.001.001.00

Color blindness preview

Protanopia (red-blind)
#B7A334
Deuteranopia (green-blind)
#B9A847
Tritanopia (blue-blind)
#BB9E93
Achromatopsia (no color)
#A5A5A5

Design tokens & code

CSS
--color: #afa941;
/* rgb */ color: rgb(175, 169, 65);
/* oklch */ color: oklch(72.0% 0.125 106.0);
Tailwind
colors: {
  custom: {
    50: '#cac27a',
    500: '#afa941',
    950: '#000000',
  },
}
SCSS
$custom: #afa941;
$custom-light: #cac27a;
$custom-dark: #000000;
JSON
{
  "hex": "#afa941",
  "rgb": {
    "r": 175,
    "g": 169,
    "b": 65
  },
  "hsl": {
    "h": 56.727,
    "s": 45.833,
    "l": 47.059
  },
  "oklch": {
    "l": 0.71973,
    "c": 0.12497,
    "h": 106
  },
  "luminance": 0.37872
}

Semantic roles & 50–950 ramp

primary
#AFA941
secondary
#898CC2
accent
#59D552
background
#FCFBF7
surface
#F9F7EE
border
#D2D0C9
text
#14120A
muted
#82817C

Preview Lab

Preview with #AFA941

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

Preview Lab → · Contrast checker → · Palette generator →

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