#AFB32B#AFB32B

#AFB32B is a light, vivid yellow. Relative luminance 0.415; OKLCH L 74.0% C 0.150 H 111.3°. Best body text is #000000 at 9.31:1 contrast (WCAG AA passes).

Color values

HEX#AFB32B
RGBrgb(175, 179, 43)
HSLhsl(62, 61%, 44%)
HSVhsv(62, 76%, 70%)
CMYKcmyk(2.2%, 0%, 76%, 29.8%)
CIE-LABlab(70.55, -17.28, 63.75)
CIE-LCHlch(70.55, 66.05, 105.17°)
OKLaboklab(74.02% -0.0544 0.1396)
OKLCHoklch(74.02% 0.15 111.3)
XYZxyz(34.2365, 41.5295, 8.4975)
Luminance0.4153 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFB32B #2F2BB3
analogous
#B3732B #AFB32B #6BB32B
triadic
#AFB32B #2BAFB3 #B32BAF
tetradic
#AFB32B #2BB373 #2F2BB3 #B32B6B
square
#AFB32B #2BB373 #2F2BB3 #B32B6B
split-complementary
#AFB32B #2B6BB3 #732BB3
monochromatic
#4F5013 #7F821F #AFB32B #CFD348 #DCDF79

Accessibility & contrast

On white

2.26
#AFB32B on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.31
#AFB32B on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFB32B
9.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFB32B#FFFFFF#000000##000000
##AFB32B1.002.269.319.31
#FFFFFF2.261.0021.0021.00
#0000009.3121.001.001.00
##0000009.3121.001.001.00

Color blindness preview

Protanopia (red-blind)
#C1AB07
Deuteranopia (green-blind)
#C2AE37
Tritanopia (blue-blind)
#BBA89A
Achromatopsia (no color)
#ADADAD

Design tokens & code

CSS
--color: #afb32b;
/* rgb */ color: rgb(175, 179, 43);
/* oklch */ color: oklch(74.0% 0.150 111.3);
Tailwind
colors: {
  custom: {
    50: '#cbc970',
    500: '#afb32b',
    950: '#000000',
  },
}
SCSS
$custom: #afb32b;
$custom-light: #cbc970;
$custom-dark: #000000;
JSON
{
  "hex": "#afb32b",
  "rgb": {
    "r": 175,
    "g": 179,
    "b": 43
  },
  "hsl": {
    "h": 61.765,
    "s": 61.261,
    "l": 43.529
  },
  "oklch": {
    "l": 0.74015,
    "c": 0.14985,
    "h": 111.3
  },
  "luminance": 0.41529
}

Semantic roles & 50–950 ramp

primary
#AFB32B
secondary
#7573C7
accent
#43E448
background
#FCFCF7
surface
#F9F8ED
border
#D2D1C8
text
#141308
muted
#82827B

Preview Lab

Preview with #AFB32B

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

Preview Lab → · Contrast checker → · Palette generator →

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