#2A9538#2A9538

#2A9538 is a mid, vivid green. Relative luminance 0.223; OKLCH L 59.0% C 0.163 H 145.1°. Best body text is #000000 at 5.45:1 contrast (WCAG AA passes).

Color values

HEX#2A9538
RGBrgb(42, 149, 56)
HSLhsl(128, 56%, 37%)
HSVhsv(128, 72%, 58%)
CMYKcmyk(71.8%, 0%, 62.4%, 41.6%)
CIE-LABlab(54.31, -49.38, 39.67)
CIE-LCHlch(54.31, 63.34, 141.23°)
OKLaboklab(58.98% -0.1334 0.0931)
OKLCHoklch(58.98% 0.163 145.1)
XYZxyz(12.4153, 22.2713, 7.3851)
Luminance0.2227 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A9538 #952A87
analogous
#52952A #2A9538 #2A956D
triadic
#2A9538 #382A95 #95382A
tetradic
#2A9538 #2A5295 #952A87 #956D2A
square
#2A9538 #2A5295 #952A87 #956D2A
split-complementary
#2A9538 #6D2A95 #952A52
monochromatic
#0F3614 #1D6526 #2A9538 #37C54A #66D474

Accessibility & contrast

On white

3.85
#2A9538 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.45
#2A9538 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #2A9538
5.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A9538#FFFFFF#000000##000000
##2A95381.003.855.455.45
#FFFFFF3.851.0021.0021.00
#0000005.4521.001.001.00
##0000005.4521.001.001.00

Color blindness preview

Protanopia (red-blind)
#98872E
Deuteranopia (green-blind)
#8B7F40
Tritanopia (blue-blind)
#009181
Achromatopsia (no color)
#828282

Design tokens & code

CSS
--color: #2a9538;
/* rgb */ color: rgb(42, 149, 56);
/* oklch */ color: oklch(59.0% 0.163 145.1);
Tailwind
colors: {
  custom: {
    50: '#74b572',
    500: '#2a9538',
    950: '#000000',
  },
}
SCSS
$custom: #2a9538;
$custom-light: #74b572;
$custom-dark: #000000;
JSON
{
  "hex": "#2a9538",
  "rgb": {
    "r": 42,
    "g": 149,
    "b": 56
  },
  "hsl": {
    "h": 127.85,
    "s": 56.021,
    "l": 37.451
  },
  "oklch": {
    "l": 0.58975,
    "c": 0.16267,
    "h": 145.1
  },
  "luminance": 0.22273
}

Semantic roles & 50–950 ramp

primary
#2A9538
secondary
#BA61AE
accent
#48CCDF
background
#F7FBF7
surface
#EDF6ED
border
#C8D0C8
text
#091108
muted
#7B807B

Preview Lab

Preview with #2A9538

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

Preview Lab → · Contrast checker → · Palette generator →

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