#AFAC22#AFAC22

#AFAC22 is a light, vivid yellow. Relative luminance 0.387; OKLCH L 72.4% C 0.147 H 108.2°. Best body text is #000000 at 8.75:1 contrast (WCAG AA passes).

Color values

HEX#AFAC22
RGBrgb(175, 172, 34)
HSLhsl(59, 67%, 41%)
HSVhsv(59, 81%, 69%)
CMYKcmyk(0%, 1.7%, 80.6%, 31.4%)
CIE-LABlab(68.56, -14.05, 64.67)
CIE-LCHlch(68.56, 66.18, 102.26°)
OKLaboklab(72.41% -0.0461 0.1399)
OKLCHoklch(72.41% 0.147 108.2)
XYZxyz(32.7218, 38.7356, 7.2661)
Luminance0.3874 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFAC22 #2225AF
analogous
#AF6522 #AFAC22 #6BAF22
triadic
#AFAC22 #22AFAC #AC22AF
tetradic
#AFAC22 #22AF65 #2225AF #AF226B
square
#AFAC22 #22AF65 #2225AF #AF226B
split-complementary
#AFAC22 #226BAF #6522AF
monochromatic
#49470E #7C7A18 #AFAC22 #D8D536 #E2DF69

Accessibility & contrast

On white

2.40
#AFAC22 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.75
#AFAC22 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFAC22
8.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFAC22#FFFFFF#000000##000000
##AFAC221.002.408.758.75
#FFFFFF2.401.0021.0021.00
#0000008.7521.001.001.00
##0000008.7521.001.001.00

Color blindness preview

Protanopia (red-blind)
#BBA500
Deuteranopia (green-blind)
#BDA92F
Tritanopia (blue-blind)
#BCA093
Achromatopsia (no color)
#A7A7A7

Design tokens & code

CSS
--color: #afac22;
/* rgb */ color: rgb(175, 172, 34);
/* oklch */ color: oklch(72.4% 0.147 108.2);
Tailwind
colors: {
  custom: {
    50: '#cbc46b',
    500: '#afac22',
    950: '#000000',
  },
}
SCSS
$custom: #afac22;
$custom-light: #cbc46b;
$custom-dark: #000000;
JSON
{
  "hex": "#afac22",
  "rgb": {
    "r": 175,
    "g": 172,
    "b": 34
  },
  "hsl": {
    "h": 58.723,
    "s": 67.464,
    "l": 40.98
  },
  "oklch": {
    "l": 0.72415,
    "c": 0.14735,
    "h": 108.2
  },
  "luminance": 0.38735
}

Semantic roles & 50–950 ramp

primary
#AFAC22
secondary
#6567C8
accent
#41EA3D
background
#FDFCF6
surface
#FAF8EC
border
#D3D1C7
text
#141207
muted
#83817A

Preview Lab

Preview with #AFAC22

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

Preview Lab → · Contrast checker → · Palette generator →

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