#AFB72A#AFB72A

#AFB72A is a light, vivid yellow. Relative luminance 0.431; OKLCH L 74.9% C 0.154 H 112.9°. Best body text is #000000 at 9.63:1 contrast (WCAG AA passes).

Color values

HEX#AFB72A
RGBrgb(175, 183, 42)
HSLhsl(63, 63%, 44%)
HSVhsv(63, 77%, 72%)
CMYKcmyk(4.4%, 0%, 77%, 28.2%)
CIE-LABlab(71.66, -19.34, 65.08)
CIE-LCHlch(71.66, 67.89, 106.55°)
OKLaboklab(74.9% -0.0602 0.1423)
OKLCHoklch(74.9% 0.154 112.9)
XYZxyz(35.0317, 43.1489, 8.6732)
Luminance0.4315 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFB72A #322AB7
analogous
#B7792A #AFB72A #69B72A
triadic
#AFB72A #2AAFB7 #B72AAF
tetradic
#AFB72A #2AB779 #322AB7 #B72A69
square
#AFB72A #2AB779 #322AB7 #B72A69
split-complementary
#AFB72A #2A69B7 #792AB7
monochromatic
#505313 #7F851F #AFB72A #CDD549 #DBE17B

Accessibility & contrast

On white

2.18
#AFB72A on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.63
#AFB72A on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFB72A
9.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFB72A#FFFFFF#000000##000000
##AFB72A1.002.189.639.63
#FFFFFF2.181.0021.0021.00
#0000009.6321.001.001.00
##0000009.6321.001.001.00

Color blindness preview

Protanopia (red-blind)
#C5AE00
Deuteranopia (green-blind)
#C5B137
Tritanopia (blue-blind)
#BBAC9D
Achromatopsia (no color)
#B0B0B0

Design tokens & code

CSS
--color: #afb72a;
/* rgb */ color: rgb(175, 183, 42);
/* oklch */ color: oklch(74.9% 0.154 112.9);
Tailwind
colors: {
  custom: {
    50: '#cbcc70',
    500: '#afb72a',
    950: '#000000',
  },
}
SCSS
$custom: #afb72a;
$custom-light: #cbcc70;
$custom-dark: #000000;
JSON
{
  "hex": "#afb72a",
  "rgb": {
    "r": 175,
    "g": 183,
    "b": 42
  },
  "hsl": {
    "h": 63.404,
    "s": 62.667,
    "l": 44.118
  },
  "oklch": {
    "l": 0.74903,
    "c": 0.15449,
    "h": 112.9
  },
  "luminance": 0.43148
}

Semantic roles & 50–950 ramp

primary
#AFB72A
secondary
#7974C9
accent
#42E64B
background
#FCFCF7
surface
#F9F8ED
border
#D2D1C8
text
#141308
muted
#82827B

Preview Lab

Preview with #AFB72A

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

Preview Lab → · Contrast checker → · Palette generator →

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