#AFAB41#AFAB41

#AFAB41 is a light, vivid yellow. Relative luminance 0.386; OKLCH L 72.4% C 0.127 H 107.1°. Best body text is #000000 at 8.72:1 contrast (WCAG AA passes).

Color values

HEX#AFAB41
RGBrgb(175, 171, 65)
HSLhsl(58, 46%, 47%)
HSVhsv(58, 63%, 69%)
CMYKcmyk(0%, 2.3%, 62.9%, 31.4%)
CIE-LABlab(68.48, -12.00, 53.34)
CIE-LCHlch(68.48, 54.67, 102.68°)
OKLaboklab(72.41% -0.0374 0.1214)
OKLCHoklch(72.41% 0.127 107.1)
XYZxyz(33.1974, 38.6225, 10.7062)
Luminance0.3862 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFAB41 #4145AF
analogous
#AF7441 #AFAB41 #7CAF41
triadic
#AFAB41 #41AFAB #AB41AF
tetradic
#AFAB41 #41AF74 #4145AF #AF417C
square
#AFAB41 #41AF74 #4145AF #AF417C
split-complementary
#AFAB41 #417CAF #7441AF
monochromatic
#565420 #827F30 #AFAB41 #C6C367 #D7D593

Accessibility & contrast

On white

2.41
#AFAB41 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.72
#AFAB41 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFAB41
8.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFAB41#FFFFFF#000000##000000
##AFAB411.002.418.728.72
#FFFFFF2.411.0021.0021.00
#0000008.7221.001.001.00
##0000008.7221.001.001.00

Color blindness preview

Protanopia (red-blind)
#B9A534
Deuteranopia (green-blind)
#BBA947
Tritanopia (blue-blind)
#BBA095
Achromatopsia (no color)
#A7A7A7

Design tokens & code

CSS
--color: #afab41;
/* rgb */ color: rgb(175, 171, 65);
/* oklch */ color: oklch(72.4% 0.127 107.1);
Tailwind
colors: {
  custom: {
    50: '#cac37b',
    500: '#afab41',
    950: '#000000',
  },
}
SCSS
$custom: #afab41;
$custom-light: #cac37b;
$custom-dark: #000000;
JSON
{
  "hex": "#afab41",
  "rgb": {
    "r": 175,
    "g": 171,
    "b": 65
  },
  "hsl": {
    "h": 57.818,
    "s": 45.833,
    "l": 47.059
  },
  "oklch": {
    "l": 0.72411,
    "c": 0.127,
    "h": 107.1
  },
  "luminance": 0.38621
}

Semantic roles & 50–950 ramp

primary
#AFAB41
secondary
#898BC2
accent
#57D552
background
#FCFBF7
surface
#F9F7EE
border
#D2D0C9
text
#14120A
muted
#82817C

Preview Lab

Preview with #AFAB41

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

Preview Lab → · Contrast checker → · Palette generator →

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