#AFB22C#AFB22C

#AFB22C is a light, vivid yellow. Relative luminance 0.411; OKLCH L 73.8% C 0.148 H 110.9°. Best body text is #000000 at 9.23:1 contrast (WCAG AA passes).

Color values

HEX#AFB22C
RGBrgb(175, 178, 44)
HSLhsl(61, 60%, 44%)
HSVhsv(61, 75%, 70%)
CMYKcmyk(1.7%, 0%, 75.3%, 30.2%)
CIE-LABlab(70.27, -16.73, 63.17)
CIE-LCHlch(70.27, 65.35, 104.84°)
OKLaboklab(73.8% -0.0528 0.1386)
OKLCHoklch(73.8% 0.148 110.9)
XYZxyz(34.0554, 41.1375, 8.5288)
Luminance0.4114 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFB22C #2F2CB2
analogous
#B2722C #AFB22C #6CB22C
triadic
#AFB22C #2CAFB2 #B22CAF
tetradic
#AFB22C #2CB272 #2F2CB2 #B22C6C
square
#AFB22C #2CB272 #2F2CB2 #B22C6C
split-complementary
#AFB22C #2C6CB2 #722CB2
monochromatic
#4F5014 #7F8120 #AFB22C #CFD249 #DCDE7A

Accessibility & contrast

On white

2.28
#AFB22C on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.23
#AFB22C on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFB22C
9.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFB22C#FFFFFF#000000##000000
##AFB22C1.002.289.239.23
#FFFFFF2.281.0021.0021.00
#0000009.2321.001.001.00
##0000009.2321.001.001.00

Color blindness preview

Protanopia (red-blind)
#C0AA0B
Deuteranopia (green-blind)
#C1AE37
Tritanopia (blue-blind)
#BBA799
Achromatopsia (no color)
#ACACAC

Design tokens & code

CSS
--color: #afb22c;
/* rgb */ color: rgb(175, 178, 44);
/* oklch */ color: oklch(73.8% 0.148 110.9);
Tailwind
colors: {
  custom: {
    50: '#cbc870',
    500: '#afb22c',
    950: '#000000',
  },
}
SCSS
$custom: #afb22c;
$custom-light: #cbc870;
$custom-dark: #000000;
JSON
{
  "hex": "#afb22c",
  "rgb": {
    "r": 175,
    "g": 178,
    "b": 44
  },
  "hsl": {
    "h": 61.343,
    "s": 60.36,
    "l": 43.529
  },
  "oklch": {
    "l": 0.73799,
    "c": 0.1483,
    "h": 110.9
  },
  "luminance": 0.41137
}

Semantic roles & 50–950 ramp

primary
#AFB22C
secondary
#7573C6
accent
#44E448
background
#FCFCF7
surface
#F9F8ED
border
#D2D1C8
text
#141308
muted
#82827B

Preview Lab

Preview with #AFB22C

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

Preview Lab → · Contrast checker → · Palette generator →

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