#AFB72C#AFB72C

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

Color values

HEX#AFB72C
RGBrgb(175, 183, 44)
HSLhsl(63, 61%, 45%)
HSVhsv(63, 76%, 72%)
CMYKcmyk(4.4%, 0%, 76%, 28.2%)
CIE-LABlab(71.67, -19.25, 64.46)
CIE-LCHlch(71.67, 67.27, 106.63°)
OKLaboklab(74.91% -0.0598 0.1413)
OKLCHoklch(74.91% 0.153 112.9)
XYZxyz(35.0684, 43.1636, 8.8665)
Luminance0.4316 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFB72C #342CB7
analogous
#B7792C #AFB72C #6AB72C
triadic
#AFB72C #2CAFB7 #B72CAF
tetradic
#AFB72C #2CB779 #342CB7 #B72C6A
square
#AFB72C #2CB779 #342CB7 #B72C6A
split-complementary
#AFB72C #2C6AB7 #792CB7
monochromatic
#515414 #808620 #AFB72C #CCD44C #DAE07E

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##AFB72C#FFFFFF#000000##000000
##AFB72C1.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)
#C5AE07
Deuteranopia (green-blind)
#C5B138
Tritanopia (blue-blind)
#BBAC9D
Achromatopsia (no color)
#B0B0B0

Design tokens & code

CSS
--color: #afb72c;
/* rgb */ color: rgb(175, 183, 44);
/* oklch */ color: oklch(74.9% 0.153 112.9);
Tailwind
colors: {
  custom: {
    50: '#cbcc71',
    500: '#afb72c',
    950: '#000000',
  },
}
SCSS
$custom: #afb72c;
$custom-light: #cbcc71;
$custom-dark: #000000;
JSON
{
  "hex": "#afb72c",
  "rgb": {
    "r": 175,
    "g": 183,
    "b": 44
  },
  "hsl": {
    "h": 63.453,
    "s": 61.233,
    "l": 44.51
  },
  "oklch": {
    "l": 0.74914,
    "c": 0.15345,
    "h": 112.9
  },
  "luminance": 0.43163
}

Semantic roles & 50–950 ramp

primary
#AFB72C
secondary
#7B76C8
accent
#43E44D
background
#FCFCF7
surface
#F9F8ED
border
#D2D1C8
text
#141308
muted
#82827B

Preview Lab

Preview with #AFB72C

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

Preview Lab → · Contrast checker → · Palette generator →

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