#AFAB22#AFAB22

#AFAB22 is a light, vivid yellow. Relative luminance 0.384; OKLCH L 72.2% C 0.146 H 107.8°. Best body text is #000000 at 8.67:1 contrast (WCAG AA passes).

Color values

HEX#AFAB22
RGBrgb(175, 171, 34)
HSLhsl(58, 67%, 41%)
HSVhsv(58, 81%, 69%)
CMYKcmyk(0%, 2.3%, 80.6%, 31.4%)
CIE-LABlab(68.28, -13.53, 64.43)
CIE-LCHlch(68.28, 65.83, 101.86°)
OKLaboklab(72.19% -0.0447 0.1394)
OKLCHoklch(72.19% 0.146 107.8)
XYZxyz(32.5322, 38.3564, 7.2029)
Luminance0.3836 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFAB22 #2226AF
analogous
#AF6422 #AFAB22 #6CAF22
triadic
#AFAB22 #22AFAB #AB22AF
tetradic
#AFAB22 #22AF64 #2226AF #AF226C
square
#AFAB22 #22AF64 #2226AF #AF226C
split-complementary
#AFAB22 #226CAF #6422AF
monochromatic
#49470E #7C7918 #AFAB22 #D8D336 #E2DF69

Accessibility & contrast

On white

2.42
#AFAB22 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.67
#AFAB22 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFAB22
8.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFAB22#FFFFFF#000000##000000
##AFAB221.002.428.678.67
#FFFFFF2.421.0021.0021.00
#0000008.6721.001.001.00
##0000008.6721.001.001.00

Color blindness preview

Protanopia (red-blind)
#BAA400
Deuteranopia (green-blind)
#BCA92F
Tritanopia (blue-blind)
#BC9F92
Achromatopsia (no color)
#A6A6A6

Design tokens & code

CSS
--color: #afab22;
/* rgb */ color: rgb(175, 171, 34);
/* oklch */ color: oklch(72.2% 0.146 107.8);
Tailwind
colors: {
  custom: {
    50: '#cbc36b',
    500: '#afab22',
    950: '#000000',
  },
}
SCSS
$custom: #afab22;
$custom-light: #cbc36b;
$custom-dark: #000000;
JSON
{
  "hex": "#afab22",
  "rgb": {
    "r": 175,
    "g": 171,
    "b": 34
  },
  "hsl": {
    "h": 58.298,
    "s": 67.464,
    "l": 40.98
  },
  "oklch": {
    "l": 0.72194,
    "c": 0.14641,
    "h": 107.8
  },
  "luminance": 0.38355
}

Semantic roles & 50–950 ramp

primary
#AFAB22
secondary
#6568C8
accent
#42EA3D
background
#FDFBF6
surface
#FAF7EC
border
#D3D0C7
text
#141207
muted
#83817A

Preview Lab

Preview with #AFAB22

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

Preview Lab → · Contrast checker → · Palette generator →

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