#AFB72E#AFB72E

#AFB72E 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#AFB72E
RGBrgb(175, 183, 46)
HSLhsl(64, 60%, 45%)
HSVhsv(64, 75%, 72%)
CMYKcmyk(4.4%, 0%, 74.9%, 28.2%)
CIE-LABlab(71.68, -19.17, 63.82)
CIE-LCHlch(71.68, 66.64, 106.72°)
OKLaboklab(74.93% -0.0594 0.1403)
OKLCHoklch(74.93% 0.152 112.9)
XYZxyz(35.1069, 43.1790, 9.0693)
Luminance0.4318 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFB72E #362EB7
analogous
#B77B2E #AFB72E #6AB72E
triadic
#AFB72E #2EAFB7 #B72EAF
tetradic
#AFB72E #2EB77B #362EB7 #B72E6A
square
#AFB72E #2EB77B #362EB7 #B72E6A
split-complementary
#AFB72E #2E6AB7 #7B2EB7
monochromatic
#515515 #808622 #AFB72E #CBD34F #DADF80

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##AFB72E#FFFFFF#000000##000000
##AFB72E1.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)
#C5AE0E
Deuteranopia (green-blind)
#C5B13A
Tritanopia (blue-blind)
#BBAC9D
Achromatopsia (no color)
#B0B0B0

Design tokens & code

CSS
--color: #afb72e;
/* rgb */ color: rgb(175, 183, 46);
/* oklch */ color: oklch(74.9% 0.152 112.9);
Tailwind
colors: {
  custom: {
    50: '#cacc72',
    500: '#afb72e',
    950: '#000000',
  },
}
SCSS
$custom: #afb72e;
$custom-light: #cacc72;
$custom-dark: #000000;
JSON
{
  "hex": "#afb72e",
  "rgb": {
    "r": 175,
    "g": 183,
    "b": 46
  },
  "hsl": {
    "h": 63.504,
    "s": 59.825,
    "l": 44.902
  },
  "oklch": {
    "l": 0.74926,
    "c": 0.15238,
    "h": 112.9
  },
  "luminance": 0.43178
}

Semantic roles & 50–950 ramp

primary
#AFB72E
secondary
#7D79C8
accent
#45E34E
background
#FCFCF7
surface
#F9F8ED
border
#D2D1C8
text
#141308
muted
#82827B

Preview Lab

Preview with #AFB72E

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

Preview Lab → · Contrast checker → · Palette generator →

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