#AFB22A#AFB22A

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

Color values

HEX#AFB22A
RGBrgb(175, 178, 42)
HSLhsl(61, 62%, 43%)
HSVhsv(61, 76%, 70%)
CMYKcmyk(1.7%, 0%, 76.4%, 30.2%)
CIE-LABlab(70.26, -16.82, 63.81)
CIE-LCHlch(70.26, 65.98, 104.77°)
OKLaboklab(73.79% -0.0532 0.1396)
OKLCHoklch(73.79% 0.149 110.9)
XYZxyz(34.0187, 41.1229, 8.3355)
Luminance0.4112 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFB22A #2D2AB2
analogous
#B2712A #AFB22A #6BB22A
triadic
#AFB22A #2AAFB2 #B22AAF
tetradic
#AFB22A #2AB271 #2D2AB2 #B22A6B
square
#AFB22A #2AB271 #2D2AB2 #B22A6B
split-complementary
#AFB22A #2A6BB2 #712AB2
monochromatic
#4E4F13 #7E801E #AFB22A #D0D346 #DDDF77

Accessibility & contrast

On white

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

On black

9.22
#AFB22A on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFB22A
9.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFB22A#FFFFFF#000000##000000
##AFB22A1.002.289.229.22
#FFFFFF2.281.0021.0021.00
#0000009.2221.001.001.00
##0000009.2221.001.001.00

Color blindness preview

Protanopia (red-blind)
#C0AA04
Deuteranopia (green-blind)
#C1AD36
Tritanopia (blue-blind)
#BCA799
Achromatopsia (no color)
#ACACAC

Design tokens & code

CSS
--color: #afb22a;
/* rgb */ color: rgb(175, 178, 42);
/* oklch */ color: oklch(73.8% 0.149 110.9);
Tailwind
colors: {
  custom: {
    50: '#cbc86f',
    500: '#afb22a',
    950: '#000000',
  },
}
SCSS
$custom: #afb22a;
$custom-light: #cbc86f;
$custom-dark: #000000;
JSON
{
  "hex": "#afb22a",
  "rgb": {
    "r": 175,
    "g": 178,
    "b": 42
  },
  "hsl": {
    "h": 61.324,
    "s": 61.818,
    "l": 43.137
  },
  "oklch": {
    "l": 0.73787,
    "c": 0.14936,
    "h": 110.9
  },
  "luminance": 0.41122
}

Semantic roles & 50–950 ramp

primary
#AFB22A
secondary
#7371C7
accent
#43E546
background
#FCFCF7
surface
#F9F8ED
border
#D2D1C8
text
#141308
muted
#82827B

Preview Lab

Preview with #AFB22A

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

Preview Lab → · Contrast checker → · Palette generator →

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