#AFBD22#AFBD22

#AFBD22 is a light, vivid yellow. Relative luminance 0.456; OKLCH L 76.2% C 0.164 H 115.1°. Best body text is #000000 at 10.12:1 contrast (WCAG AA passes).

Color values

HEX#AFBD22
RGBrgb(175, 189, 34)
HSLhsl(65, 70%, 44%)
HSVhsv(65, 82%, 74%)
CMYKcmyk(7.4%, 0%, 82%, 25.9%)
CIE-LABlab(73.30, -22.60, 68.78)
CIE-LCHlch(73.30, 72.40, 108.19°)
OKLaboklab(76.21% -0.0698 0.1488)
OKLCHoklch(76.21% 0.164 115.1)
XYZxyz(36.1666, 45.6253, 8.4144)
Luminance0.4562 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFBD22 #3022BD
analogous
#BD7D22 #AFBD22 #61BD22
triadic
#AFBD22 #22AFBD #BD22AF
tetradic
#AFBD22 #22BD7D #3022BD #BD2261
square
#AFBD22 #22BD7D #3022BD #BD2261
split-complementary
#AFBD22 #2261BD #7D22BD
monochromatic
#4F550F #7F8919 #AFBD22 #CEDD40 #DCE673

Accessibility & contrast

On white

2.07
#AFBD22 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

10.12
#AFBD22 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFBD22
10.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFBD22#FFFFFF#000000##000000
##AFBD221.002.0710.1210.12
#FFFFFF2.071.0021.0021.00
#00000010.1221.001.001.00
##00000010.1221.001.001.00

Color blindness preview

Protanopia (red-blind)
#CBB300
Deuteranopia (green-blind)
#CAB532
Tritanopia (blue-blind)
#BBB1A1
Achromatopsia (no color)
#B4B4B4

Design tokens & code

CSS
--color: #afbd22;
/* rgb */ color: rgb(175, 189, 34);
/* oklch */ color: oklch(76.2% 0.164 115.1);
Tailwind
colors: {
  custom: {
    50: '#cbd06d',
    500: '#afbd22',
    950: '#000000',
  },
}
SCSS
$custom: #afbd22;
$custom-light: #cbd06d;
$custom-dark: #000000;
JSON
{
  "hex": "#afbd22",
  "rgb": {
    "r": 175,
    "g": 189,
    "b": 34
  },
  "hsl": {
    "h": 65.419,
    "s": 69.507,
    "l": 43.725
  },
  "oklch": {
    "l": 0.76212,
    "c": 0.16435,
    "h": 115.1
  },
  "luminance": 0.45625
}

Semantic roles & 50–950 ramp

primary
#AFBD22
secondary
#766ECD
accent
#3BEC4B
background
#FDFCF7
surface
#FAF9ED
border
#D3D2C8
text
#141408
muted
#83827B

Preview Lab

Preview with #AFBD22

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

Preview Lab → · Contrast checker → · Palette generator →

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