#2A9526#2A9526

#2A9526 is a mid, vivid green. Relative luminance 0.221; OKLCH L 58.8% C 0.176 H 142.5°. Best body text is #000000 at 5.43:1 contrast (WCAG AA passes).

Color values

HEX#2A9526
RGBrgb(42, 149, 38)
HSLhsl(118, 59%, 37%)
HSVhsv(118, 74%, 58%)
CMYKcmyk(71.8%, 0%, 74.5%, 41.6%)
CIE-LABlab(54.16, -51.22, 47.17)
CIE-LCHlch(54.16, 69.64, 137.36°)
OKLaboklab(58.8% -0.1393 0.1068)
OKLCHoklch(58.8% 0.176 142.5)
XYZxyz(12.0514, 22.1258, 5.4689)
Luminance0.2213 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A9526 #912695
analogous
#629526 #2A9526 #26955A
triadic
#2A9526 #262A95 #95262A
tetradic
#2A9526 #266295 #912695 #955A26
square
#2A9526 #266295 #912695 #955A26
split-complementary
#2A9526 #5A2695 #952662
monochromatic
#0F330D #1C641A #2A9526 #38C632 #63D65F

Accessibility & contrast

On white

3.87
#2A9526 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.43
#2A9526 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #2A9526
5.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A9526#FFFFFF#000000##000000
##2A95261.003.875.435.43
#FFFFFF3.871.0021.0021.00
#0000005.4321.001.001.00
##0000005.4321.001.001.00

Color blindness preview

Protanopia (red-blind)
#988712
Deuteranopia (green-blind)
#8C7E32
Tritanopia (blue-blind)
#08907F
Achromatopsia (no color)
#818181

Design tokens & code

CSS
--color: #2a9526;
/* rgb */ color: rgb(42, 149, 38);
/* oklch */ color: oklch(58.8% 0.176 142.5);
Tailwind
colors: {
  custom: {
    50: '#74b568',
    500: '#2a9526',
    950: '#000000',
  },
}
SCSS
$custom: #2a9526;
$custom-light: #74b568;
$custom-dark: #000000;
JSON
{
  "hex": "#2a9526",
  "rgb": {
    "r": 42,
    "g": 149,
    "b": 38
  },
  "hsl": {
    "h": 117.838,
    "s": 59.358,
    "l": 36.667
  },
  "oklch": {
    "l": 0.58799,
    "c": 0.17552,
    "h": 142.5
  },
  "luminance": 0.22127
}

Semantic roles & 50–950 ramp

primary
#2A9526
secondary
#B85BBB
accent
#45E3DD
background
#F7FBF6
surface
#EEF6EB
border
#C9D0C6
text
#091106
muted
#7B807A

Preview Lab

Preview with #2A9526

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

Preview Lab → · Contrast checker → · Palette generator →

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