#AFB72F#AFB72F

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

Color values

HEX#AFB72F
RGBrgb(175, 183, 47)
HSLhsl(64, 59%, 45%)
HSVhsv(64, 74%, 72%)
CMYKcmyk(4.4%, 0%, 74.3%, 28.2%)
CIE-LABlab(71.68, -19.12, 63.50)
CIE-LCHlch(71.68, 66.31, 106.76°)
OKLaboklab(74.93% -0.0592 0.1398)
OKLCHoklch(74.93% 0.152 112.9)
XYZxyz(35.1269, 43.1870, 9.1743)
Luminance0.4319 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFB72F #372FB7
analogous
#B77B2F #AFB72F #6BB72F
triadic
#AFB72F #2FAFB7 #B72FAF
tetradic
#AFB72F #2FB77B #372FB7 #B72F6B
square
#AFB72F #2FB77B #372FB7 #B72F6B
split-complementary
#AFB72F #2F6BB7 #7B2FB7
monochromatic
#525616 #808622 #AFB72F #CBD251 #D9DF82

Accessibility & contrast

On white

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

On black

9.64
#AFB72F on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFB72F
9.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFB72F#FFFFFF#000000##000000
##AFB72F1.002.189.649.64
#FFFFFF2.181.0021.0021.00
#0000009.6421.001.001.00
##0000009.6421.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #afb72f;
/* rgb */ color: rgb(175, 183, 47);
/* oklch */ color: oklch(74.9% 0.152 112.9);
Tailwind
colors: {
  custom: {
    50: '#cacc72',
    500: '#afb72f',
    950: '#000000',
  },
}
SCSS
$custom: #afb72f;
$custom-light: #cacc72;
$custom-dark: #000000;
JSON
{
  "hex": "#afb72f",
  "rgb": {
    "r": 175,
    "g": 183,
    "b": 47
  },
  "hsl": {
    "h": 63.529,
    "s": 59.13,
    "l": 45.098
  },
  "oklch": {
    "l": 0.74932,
    "c": 0.15182,
    "h": 112.9
  },
  "luminance": 0.43186
}

Semantic roles & 50–950 ramp

primary
#AFB72F
secondary
#7F7AC8
accent
#45E24F
background
#FCFCF7
surface
#F9F8ED
border
#D2D1C8
text
#141308
muted
#82827B

Preview Lab

Preview with #AFB72F

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

Preview Lab → · Contrast checker → · Palette generator →

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