#AFE45B#AFE45B

#AFE45B is a very light, vivid yellow-green. Relative luminance 0.654; OKLCH L 85.5% C 0.175 H 127.6°. Best body text is #000000 at 14.07:1 contrast (WCAG AA passes).

Color values

HEX#AFE45B
RGBrgb(175, 228, 91)
HSLhsl(83, 72%, 63%)
HSVhsv(83, 60%, 89%)
CMYKcmyk(23.2%, 0%, 60.1%, 10.6%)
CIE-LABlab(84.67, -37.65, 59.84)
CIE-LCHlch(84.67, 70.70, 122.18°)
OKLaboklab(85.49% -0.1065 0.1385)
OKLCHoklch(85.49% 0.175 127.6)
XYZxyz(47.3108, 65.3553, 20.0178)
Luminance0.6536 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFE45B #905BE4
analogous
#E4D55B #AFE45B #6AE45B
triadic
#AFE45B #5BAFE4 #E45BAF
tetradic
#AFE45B #5BE4D5 #905BE4 #E45B6A
square
#AFE45B #5BE4D5 #905BE4 #E45B6A
split-complementary
#AFE45B #5B6AE4 #D55BE4
monochromatic
#72A91C #95DB26 #AFE45B #C9ED90 #E2F5C4

Accessibility & contrast

On white

1.49
#AFE45B on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

14.07
#AFE45B on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFE45B
14.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFE45B#FFFFFF#000000##000000
##AFE45B1.001.4914.0714.07
#FFFFFF1.491.0021.0021.00
#00000014.0721.001.001.00
##00000014.0721.001.001.00

Color blindness preview

Protanopia (red-blind)
#EFD64B
Deuteranopia (green-blind)
#E7D265
Tritanopia (blue-blind)
#B5DAC7
Achromatopsia (no color)
#D3D3D3

Design tokens & code

CSS
--color: #afe45b;
/* rgb */ color: rgb(175, 228, 91);
/* oklch */ color: oklch(85.5% 0.175 127.6);
Tailwind
colors: {
  custom: {
    50: '#caec8e',
    500: '#afe45b',
    950: '#000000',
  },
}
SCSS
$custom: #afe45b;
$custom-light: #caec8e;
$custom-dark: #000000;
JSON
{
  "hex": "#afe45b",
  "rgb": {
    "r": 175,
    "g": 228,
    "b": 91
  },
  "hsl": {
    "h": 83.212,
    "s": 71.728,
    "l": 62.549
  },
  "oklch": {
    "l": 0.85494,
    "c": 0.17472,
    "h": 127.6
  },
  "luminance": 0.65356
}

Semantic roles & 50–950 ramp

primary
#AFE45B
secondary
#6539AB
accent
#12D45D
background
#FEFEFC
surface
#FBFDF4
border
#D4D5CE
text
#14160D
muted
#83847F

Preview Lab

Preview with #AFE45B

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

Preview Lab → · Contrast checker → · Palette generator →

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