#AFBB22#AFBB22

#AFBB22 is a light, vivid yellow. Relative luminance 0.448; OKLCH L 75.8% C 0.162 H 114.4°. Best body text is #000000 at 9.95:1 contrast (WCAG AA passes).

Color values

HEX#AFBB22
RGBrgb(175, 187, 34)
HSLhsl(65, 69%, 43%)
HSVhsv(65, 82%, 73%)
CMYKcmyk(6.4%, 0%, 81.8%, 26.7%)
CIE-LABlab(72.74, -21.61, 68.30)
CIE-LCHlch(72.74, 71.63, 107.56°)
OKLaboklab(75.76% -0.0671 0.1478)
OKLCHoklch(75.76% 0.162 114.4)
XYZxyz(35.7394, 44.7708, 8.2720)
Luminance0.4477 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFBB22 #2E22BB
analogous
#BB7A22 #AFBB22 #62BB22
triadic
#AFBB22 #22AFBB #BB22AF
tetradic
#AFBB22 #22BB7A #2E22BB #BB2262
square
#AFBB22 #22BB7A #2E22BB #BB2262
split-complementary
#AFBB22 #2262BB #7A22BB
monochromatic
#4E530F #7F8719 #AFBB22 #D0DC3E #DCE572

Accessibility & contrast

On white

2.11
#AFBB22 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.95
#AFBB22 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFBB22
9.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFBB22#FFFFFF#000000##000000
##AFBB221.002.119.959.95
#FFFFFF2.111.0021.0021.00
#0000009.9521.001.001.00
##0000009.9521.001.001.00

Color blindness preview

Protanopia (red-blind)
#C9B100
Deuteranopia (green-blind)
#C9B432
Tritanopia (blue-blind)
#BBAFA0
Achromatopsia (no color)
#B2B2B2

Design tokens & code

CSS
--color: #afbb22;
/* rgb */ color: rgb(175, 187, 34);
/* oklch */ color: oklch(75.8% 0.162 114.4);
Tailwind
colors: {
  custom: {
    50: '#cbcf6d',
    500: '#afbb22',
    950: '#000000',
  },
}
SCSS
$custom: #afbb22;
$custom-light: #cbcf6d;
$custom-dark: #000000;
JSON
{
  "hex": "#afbb22",
  "rgb": {
    "r": 175,
    "g": 187,
    "b": 34
  },
  "hsl": {
    "h": 64.706,
    "s": 69.231,
    "l": 43.333
  },
  "oklch": {
    "l": 0.75762,
    "c": 0.16227,
    "h": 114.4
  },
  "luminance": 0.4477
}

Semantic roles & 50–950 ramp

primary
#AFBB22
secondary
#746DCC
accent
#3CEC4A
background
#FDFCF7
surface
#FAF9ED
border
#D3D2C8
text
#141308
muted
#83827B

Preview Lab

Preview with #AFBB22

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

Preview Lab → · Contrast checker → · Palette generator →

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