#5FAF28#5FAF28

#5FAF28 is a light, vivid yellow-green. Relative luminance 0.332; OKLCH L 67.7% C 0.182 H 135.8°. Best body text is #000000 at 7.65:1 contrast (WCAG AA passes).

Color values

HEX#5FAF28
RGBrgb(95, 175, 40)
HSLhsl(96, 63%, 42%)
HSVhsv(96, 77%, 69%)
CMYKcmyk(45.7%, 0%, 77.1%, 31.4%)
CIE-LABlab(64.36, -46.85, 57.13)
CIE-LCHlch(64.36, 73.88, 129.36°)
OKLaboklab(67.71% -0.1307 0.1273)
OKLCHoklch(67.71% 0.182 135.8)
XYZxyz(20.4318, 33.2448, 7.3473)
Luminance0.3325 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5FAF28 #7828AF
analogous
#A2AF28 #5FAF28 #28AF35
triadic
#5FAF28 #285FAF #AF285F
tetradic
#5FAF28 #28A2AF #7828AF #AF3528
square
#5FAF28 #28A2AF #7828AF #AF3528
split-complementary
#5FAF28 #3528AF #AF28A2
monochromatic
#294B11 #447D1D #5FAF28 #7DD441 #9FDF73

Accessibility & contrast

On white

2.75
#5FAF28 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.65
#5FAF28 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #5FAF28
7.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5FAF28#FFFFFF#000000##000000
##5FAF281.002.757.657.65
#FFFFFF2.751.0021.0021.00
#0000007.6521.001.001.00
##0000007.6521.001.001.00

Color blindness preview

Protanopia (red-blind)
#B5A004
Deuteranopia (green-blind)
#AB9A37
Tritanopia (blue-blind)
#5CA896
Achromatopsia (no color)
#9C9C9C

Design tokens & code

CSS
--color: #5faf28;
/* rgb */ color: rgb(95, 175, 40);
/* oklch */ color: oklch(67.7% 0.182 135.8);
Tailwind
colors: {
  custom: {
    50: '#94c76d',
    500: '#5faf28',
    950: '#000000',
  },
}
SCSS
$custom: #5faf28;
$custom-light: #94c76d;
$custom-dark: #000000;
JSON
{
  "hex": "#5faf28",
  "rgb": {
    "r": 95,
    "g": 175,
    "b": 40
  },
  "hsl": {
    "h": 95.556,
    "s": 62.791,
    "l": 42.157
  },
  "oklch": {
    "l": 0.67713,
    "c": 0.18245,
    "h": 135.8
  },
  "luminance": 0.33246
}

Semantic roles & 50–950 ramp

primary
#5FAF28
secondary
#A26DC6
accent
#42E6A3
background
#F9FCF6
surface
#F2F8EC
border
#CCD1C7
text
#0E1307
muted
#7E827A

Preview Lab

Preview with #5FAF28

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

Preview Lab → · Contrast checker → · Palette generator →

#5FAF28 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva