#AFAA41#AFAA41

#AFAA41 is a light, vivid yellow. Relative luminance 0.382; OKLCH L 72.2% C 0.126 H 106.6°. Best body text is #000000 at 8.65:1 contrast (WCAG AA passes).

Color values

HEX#AFAA41
RGBrgb(175, 170, 65)
HSLhsl(57, 46%, 47%)
HSVhsv(57, 63%, 69%)
CMYKcmyk(0%, 2.9%, 62.9%, 31.4%)
CIE-LABlab(68.20, -11.48, 53.04)
CIE-LCHlch(68.20, 54.27, 102.22°)
OKLaboklab(72.19% -0.0359 0.1208)
OKLCHoklch(72.19% 0.126 106.6)
XYZxyz(33.0092, 38.2461, 10.6434)
Luminance0.3825 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFAA41 #4146AF
analogous
#AF7341 #AFAA41 #7DAF41
triadic
#AFAA41 #41AFAA #AA41AF
tetradic
#AFAA41 #41AF73 #4146AF #AF417D
square
#AFAA41 #41AF73 #4146AF #AF417D
split-complementary
#AFAA41 #417DAF #7341AF
monochromatic
#565320 #827F30 #AFAA41 #C6C267 #D7D493

Accessibility & contrast

On white

2.43
#AFAA41 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.65
#AFAA41 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFAA41
8.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFAA41#FFFFFF#000000##000000
##AFAA411.002.438.658.65
#FFFFFF2.431.0021.0021.00
#0000008.6521.001.001.00
##0000008.6521.001.001.00

Color blindness preview

Protanopia (red-blind)
#B8A434
Deuteranopia (green-blind)
#BAA847
Tritanopia (blue-blind)
#BB9F94
Achromatopsia (no color)
#A6A6A6

Design tokens & code

CSS
--color: #afaa41;
/* rgb */ color: rgb(175, 170, 65);
/* oklch */ color: oklch(72.2% 0.126 106.6);
Tailwind
colors: {
  custom: {
    50: '#cac37a',
    500: '#afaa41',
    950: '#000000',
  },
}
SCSS
$custom: #afaa41;
$custom-light: #cac37a;
$custom-dark: #000000;
JSON
{
  "hex": "#afaa41",
  "rgb": {
    "r": 175,
    "g": 170,
    "b": 65
  },
  "hsl": {
    "h": 57.273,
    "s": 45.833,
    "l": 47.059
  },
  "oklch": {
    "l": 0.72192,
    "c": 0.12598,
    "h": 106.6
  },
  "luminance": 0.38245
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #AFAA41

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

Preview Lab → · Contrast checker → · Palette generator →

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