#28AF2F#28AF2F

#28AF2F is a light, highly saturated green. Relative luminance 0.313; OKLCH L 66.0% C 0.200 H 143.4°. Best body text is #000000 at 7.26:1 contrast (WCAG AA passes).

Color values

HEX#28AF2F
RGBrgb(40, 175, 47)
HSLhsl(123, 63%, 42%)
HSVhsv(123, 77%, 69%)
CMYKcmyk(77.1%, 0%, 73.1%, 31.4%)
CIE-LABlab(62.77, -59.39, 52.57)
CIE-LCHlch(62.77, 79.31, 138.49°)
OKLaboklab(65.96% -0.1609 0.1193)
OKLCHoklch(65.96% 0.2 143.4)
XYZxyz(16.7171, 31.3143, 7.8520)
Luminance0.3132 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#28AF2F #AF28A8
analogous
#65AF28 #28AF2F #28AF73
triadic
#28AF2F #2F28AF #AF2F28
tetradic
#28AF2F #2865AF #AF28A8 #AF7328
square
#28AF2F #2865AF #AF28A8 #AF7328
split-complementary
#28AF2F #7328AF #AF2865
monochromatic
#114B14 #1D7D22 #28AF2F #41D448 #73DF78

Accessibility & contrast

On white

2.89
#28AF2F on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.26
#28AF2F on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #28AF2F
7.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##28AF2F#FFFFFF#000000##000000
##28AF2F1.002.897.267.26
#FFFFFF2.891.0021.0021.00
#0000007.2621.001.001.00
##0000007.2621.001.001.00

Color blindness preview

Protanopia (red-blind)
#B39E18
Deuteranopia (green-blind)
#A4943C
Tritanopia (blue-blind)
#00AA96
Achromatopsia (no color)
#989898

Design tokens & code

CSS
--color: #28af2f;
/* rgb */ color: rgb(40, 175, 47);
/* oklch */ color: oklch(66.0% 0.200 143.4);
Tailwind
colors: {
  custom: {
    50: '#79c870',
    500: '#28af2f',
    950: '#000000',
  },
}
SCSS
$custom: #28af2f;
$custom-light: #79c870;
$custom-dark: #000000;
JSON
{
  "hex": "#28af2f",
  "rgb": {
    "r": 40,
    "g": 175,
    "b": 47
  },
  "hsl": {
    "h": 123.111,
    "s": 62.791,
    "l": 42.157
  },
  "oklch": {
    "l": 0.65959,
    "c": 0.2003,
    "h": 143.4
  },
  "luminance": 0.31316
}

Semantic roles & 50–950 ramp

primary
#28AF2F
secondary
#C66DC1
accent
#42DDE6
background
#F8FCF7
surface
#EFF8ED
border
#CAD1C8
text
#0B1308
muted
#7C827B

Preview Lab

Preview with #28AF2F

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

Preview Lab → · Contrast checker → · Palette generator →

#28AF2F Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva