#2A9228#2A9228

#2A9228 is a mid, vivid green. Relative luminance 0.212; OKLCH L 58.0% C 0.171 H 142.7°. Best body text is #000000 at 5.24:1 contrast (WCAG AA passes).

Color values

HEX#2A9228
RGBrgb(42, 146, 40)
HSLhsl(119, 57%, 36%)
HSVhsv(119, 73%, 57%)
CMYKcmyk(71.2%, 0%, 72.6%, 42.7%)
CIE-LABlab(53.17, -50.02, 45.38)
CIE-LCHlch(53.17, 67.54, 137.78°)
OKLaboklab(57.98% -0.1359 0.1034)
OKLCHoklch(57.98% 0.171 142.7)
XYZxyz(11.6160, 21.2020, 5.4873)
Luminance0.2120 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A9228 #902892
analogous
#5F9228 #2A9228 #28925B
triadic
#2A9228 #282A92 #92282A
tetradic
#2A9228 #285F92 #902892 #925B28
square
#2A9228 #285F92 #902892 #925B28
split-complementary
#2A9228 #5B2892 #92285F
monochromatic
#0E320E #1C621B #2A9228 #38C235 #63D461

Accessibility & contrast

On white

4.01
#2A9228 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.24
#2A9228 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #2A9228
5.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A9228#FFFFFF#000000##000000
##2A92281.004.015.245.24
#FFFFFF4.011.0021.0021.00
#0000005.2421.001.001.00
##0000005.2421.001.001.00

Color blindness preview

Protanopia (red-blind)
#958417
Deuteranopia (green-blind)
#897C33
Tritanopia (blue-blind)
#0B8E7D
Achromatopsia (no color)
#7F7F7F

Design tokens & code

CSS
--color: #2a9228;
/* rgb */ color: rgb(42, 146, 40);
/* oklch */ color: oklch(58.0% 0.171 142.7);
Tailwind
colors: {
  custom: {
    50: '#74b368',
    500: '#2a9228',
    950: '#000000',
  },
}
SCSS
$custom: #2a9228;
$custom-light: #74b368;
$custom-dark: #000000;
JSON
{
  "hex": "#2a9228",
  "rgb": {
    "r": 42,
    "g": 146,
    "b": 40
  },
  "hsl": {
    "h": 118.868,
    "s": 56.989,
    "l": 36.471
  },
  "oklch": {
    "l": 0.57982,
    "c": 0.17073,
    "h": 142.7
  },
  "luminance": 0.21203
}

Semantic roles & 50–950 ramp

primary
#2A9228
secondary
#B75DB9
accent
#48E0DD
background
#F7FBF6
surface
#EEF6EB
border
#C9D0C6
text
#091106
muted
#7B807A

Preview Lab

Preview with #2A9228

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

Preview Lab → · Contrast checker → · Palette generator →

#2A9228 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva