#AFAE22#AFAE22

#AFAE22 is a light, vivid yellow. Relative luminance 0.395; OKLCH L 72.9% C 0.149 H 109.2°. Best body text is #000000 at 8.90:1 contrast (WCAG AA passes).

Color values

HEX#AFAE22
RGBrgb(175, 174, 34)
HSLhsl(60, 67%, 41%)
HSVhsv(60, 81%, 69%)
CMYKcmyk(0%, 0.6%, 80.6%, 31.4%)
CIE-LABlab(69.11, -15.07, 65.15)
CIE-LCHlch(69.11, 66.87, 103.03°)
OKLaboklab(72.86% -0.049 0.141)
OKLCHoklch(72.86% 0.149 109.2)
XYZxyz(33.1053, 39.5026, 7.3940)
Luminance0.3950 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFAE22 #2223AF
analogous
#AF6722 #AFAE22 #6AAF22
triadic
#AFAE22 #22AFAE #AE22AF
tetradic
#AFAE22 #22AF67 #2223AF #AF226A
square
#AFAE22 #22AF67 #2223AF #AF226A
split-complementary
#AFAE22 #226AAF #6722AF
monochromatic
#49480E #7C7B18 #AFAE22 #D8D736 #E2E169

Accessibility & contrast

On white

2.36
#AFAE22 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.90
#AFAE22 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFAE22
8.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFAE22#FFFFFF#000000##000000
##AFAE221.002.368.908.90
#FFFFFF2.361.0021.0021.00
#0000008.9021.001.001.00
##0000008.9021.001.001.00

Color blindness preview

Protanopia (red-blind)
#BDA600
Deuteranopia (green-blind)
#BFAB2F
Tritanopia (blue-blind)
#BCA295
Achromatopsia (no color)
#A9A9A9

Design tokens & code

CSS
--color: #afae22;
/* rgb */ color: rgb(175, 174, 34);
/* oklch */ color: oklch(72.9% 0.149 109.2);
Tailwind
colors: {
  custom: {
    50: '#cbc56b',
    500: '#afae22',
    950: '#000000',
  },
}
SCSS
$custom: #afae22;
$custom-light: #cbc56b;
$custom-dark: #000000;
JSON
{
  "hex": "#afae22",
  "rgb": {
    "r": 175,
    "g": 174,
    "b": 34
  },
  "hsl": {
    "h": 59.574,
    "s": 67.464,
    "l": 40.98
  },
  "oklch": {
    "l": 0.72858,
    "c": 0.14926,
    "h": 109.2
  },
  "luminance": 0.39502
}

Semantic roles & 50–950 ramp

primary
#AFAE22
secondary
#6566C8
accent
#3FEA3D
background
#FDFCF6
surface
#FAF8EC
border
#D3D1C7
text
#141207
muted
#83817A

Preview Lab

Preview with #AFAE22

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

Preview Lab → · Contrast checker → · Palette generator →

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