#AFD45B#AFD45B

#AFD45B is a light, vivid yellow-green. Relative luminance 0.570; OKLCH L 81.8% C 0.154 H 124.0°. Best body text is #000000 at 12.39:1 contrast (WCAG AA passes).

Color values

HEX#AFD45B
RGBrgb(175, 212, 91)
HSLhsl(78, 58%, 59%)
HSVhsv(78, 57%, 83%)
CMYKcmyk(17.5%, 0%, 57.1%, 16.9%)
CIE-LABlab(80.15, -30.29, 54.78)
CIE-LCHlch(80.15, 62.59, 118.94°)
OKLaboklab(81.85% -0.0861 0.1277)
OKLCHoklch(81.85% 0.154 124)
XYZxyz(43.1112, 56.9560, 18.6179)
Luminance0.5696 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFD45B #805BD4
analogous
#D4BD5B #AFD45B #73D45B
triadic
#AFD45B #5BAFD4 #D45BAF
tetradic
#AFD45B #5BD4BD #805BD4 #D45B73
square
#AFD45B #5BD4BD #805BD4 #D45B73
split-complementary
#AFD45B #5B73D4 #BD5BD4
monochromatic
#6F8F26 #94C032 #AFD45B #C7E18B #DEEDBC

Accessibility & contrast

On white

1.69
#AFD45B on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

12.39
#AFD45B on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFD45B
12.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFD45B#FFFFFF#000000##000000
##AFD45B1.001.6912.3912.39
#FFFFFF1.691.0021.0021.00
#00000012.3921.001.001.00
##00000012.3921.001.001.00

Color blindness preview

Protanopia (red-blind)
#DFC84E
Deuteranopia (green-blind)
#DAC663
Tritanopia (blue-blind)
#B6CBBA
Achromatopsia (no color)
#C7C7C7

Design tokens & code

CSS
--color: #afd45b;
/* rgb */ color: rgb(175, 212, 91);
/* oklch */ color: oklch(81.8% 0.154 124.0);
Tailwind
colors: {
  custom: {
    50: '#c9e18d',
    500: '#afd45b',
    950: '#000000',
  },
}
SCSS
$custom: #afd45b;
$custom-light: #c9e18d;
$custom-dark: #000000;
JSON
{
  "hex": "#afd45b",
  "rgb": {
    "r": 175,
    "g": 212,
    "b": 91
  },
  "hsl": {
    "h": 78.347,
    "s": 58.454,
    "l": 59.412
  },
  "oklch": {
    "l": 0.8185,
    "c": 0.154,
    "h": 124
  },
  "luminance": 0.56956
}

Semantic roles & 50–950 ramp

primary
#AFD45B
secondary
#593E95
accent
#46E276
background
#FEFEFC
surface
#FAFCF4
border
#D3D5CE
text
#13150C
muted
#83847F

Preview Lab

Preview with #AFD45B

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

Preview Lab → · Contrast checker → · Palette generator →

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