#AFB72B#AFB72B

#AFB72B is a light, vivid yellow. Relative luminance 0.432; 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#AFB72B
RGBrgb(175, 183, 43)
HSLhsl(63, 62%, 44%)
HSVhsv(63, 77%, 72%)
CMYKcmyk(4.4%, 0%, 76.5%, 28.2%)
CIE-LABlab(71.66, -19.30, 64.77)
CIE-LCHlch(71.66, 67.58, 106.59°)
OKLaboklab(74.91% -0.06 0.1418)
OKLCHoklch(74.91% 0.154 112.9)
XYZxyz(35.0499, 43.1562, 8.7687)
Luminance0.4315 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFB72B #332BB7
analogous
#B7792B #AFB72B #69B72B
triadic
#AFB72B #2BAFB7 #B72BAF
tetradic
#AFB72B #2BB779 #332BB7 #B72B69
square
#AFB72B #2BB779 #332BB7 #B72B69
split-complementary
#AFB72B #2B69B7 #792BB7
monochromatic
#505414 #80851F #AFB72B #CDD54B #DBE07C

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##AFB72B#FFFFFF#000000##000000
##AFB72B1.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)
#C5AE03
Deuteranopia (green-blind)
#C5B137
Tritanopia (blue-blind)
#BBAC9D
Achromatopsia (no color)
#B0B0B0

Design tokens & code

CSS
--color: #afb72b;
/* rgb */ color: rgb(175, 183, 43);
/* oklch */ color: oklch(74.9% 0.154 112.9);
Tailwind
colors: {
  custom: {
    50: '#cbcc70',
    500: '#afb72b',
    950: '#000000',
  },
}
SCSS
$custom: #afb72b;
$custom-light: #cbcc70;
$custom-dark: #000000;
JSON
{
  "hex": "#afb72b",
  "rgb": {
    "r": 175,
    "g": 183,
    "b": 43
  },
  "hsl": {
    "h": 63.429,
    "s": 61.947,
    "l": 44.314
  },
  "oklch": {
    "l": 0.74909,
    "c": 0.15398,
    "h": 112.9
  },
  "luminance": 0.43155
}

Semantic roles & 50–950 ramp

primary
#AFB72B
secondary
#7A75C9
accent
#43E54C
background
#FCFCF7
surface
#F9F8ED
border
#D2D1C8
text
#141308
muted
#82827B

Preview Lab

Preview with #AFB72B

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

Preview Lab → · Contrast checker → · Palette generator →

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