#AFB72D#AFB72D

#AFB72D 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#AFB72D
RGBrgb(175, 183, 45)
HSLhsl(63, 61%, 45%)
HSVhsv(63, 75%, 72%)
CMYKcmyk(4.4%, 0%, 75.4%, 28.2%)
CIE-LABlab(71.67, -19.21, 64.14)
CIE-LCHlch(71.67, 66.96, 106.67°)
OKLaboklab(74.92% -0.0596 0.1408)
OKLCHoklch(74.92% 0.153 112.9)
XYZxyz(35.0875, 43.1712, 8.9667)
Luminance0.4317 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFB72D #352DB7
analogous
#B77A2D #AFB72D #6AB72D
triadic
#AFB72D #2DAFB7 #B72DAF
tetradic
#AFB72D #2DB77A #352DB7 #B72D6A
square
#AFB72D #2DB77A #352DB7 #B72D6A
split-complementary
#AFB72D #2D6AB7 #7A2DB7
monochromatic
#515515 #808621 #AFB72D #CCD34E #DADF7F

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##AFB72D#FFFFFF#000000##000000
##AFB72D1.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)
#C5AE0A
Deuteranopia (green-blind)
#C5B139
Tritanopia (blue-blind)
#BBAC9D
Achromatopsia (no color)
#B0B0B0

Design tokens & code

CSS
--color: #afb72d;
/* rgb */ color: rgb(175, 183, 45);
/* oklch */ color: oklch(74.9% 0.153 112.9);
Tailwind
colors: {
  custom: {
    50: '#cacc71',
    500: '#afb72d',
    950: '#000000',
  },
}
SCSS
$custom: #afb72d;
$custom-light: #cacc71;
$custom-dark: #000000;
JSON
{
  "hex": "#afb72d",
  "rgb": {
    "r": 175,
    "g": 183,
    "b": 45
  },
  "hsl": {
    "h": 63.478,
    "s": 60.526,
    "l": 44.706
  },
  "oklch": {
    "l": 0.7492,
    "c": 0.15292,
    "h": 112.9
  },
  "luminance": 0.4317
}

Semantic roles & 50–950 ramp

primary
#AFB72D
secondary
#7C78C8
accent
#44E44D
background
#FCFCF7
surface
#F9F8ED
border
#D2D1C8
text
#141308
muted
#82827B

Preview Lab

Preview with #AFB72D

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

Preview Lab → · Contrast checker → · Palette generator →

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