#2A8A42#2A8A42

#2A8A42 is a mid, vivid green. Relative luminance 0.191; OKLCH L 56.1% C 0.139 H 148.1°. Best body text is #000000 at 4.81:1 contrast (WCAG AA passes).

Color values

HEX#2A8A42
RGBrgb(42, 138, 66)
HSLhsl(135, 53%, 35%)
HSVhsv(135, 70%, 54%)
CMYKcmyk(69.6%, 0%, 52.2%, 45.9%)
CIE-LABlab(50.76, -43.90, 30.47)
CIE-LCHlch(50.76, 53.44, 145.24°)
OKLaboklab(56.07% -0.1183 0.0737)
OKLCHoklch(56.07% 0.139 148.1)
XYZxyz(11.0259, 19.0614, 8.2513)
Luminance0.1906 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A8A42 #8A2A72
analogous
#428A2A #2A8A42 #2A8A72
triadic
#2A8A42 #422A8A #8A422A
tetradic
#2A8A42 #2A428A #8A2A72 #8A722A
square
#2A8A42 #2A428A #8A2A72 #8A722A
split-complementary
#2A8A42 #722A8A #8A2A42
monochromatic
#0D2C15 #1C5B2C #2A8A42 #38B958 #60CF7C

Accessibility & contrast

On white

4.36
#2A8A42 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.81
#2A8A42 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #2A8A42
4.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A8A42#FFFFFF#000000##000000
##2A8A421.004.364.814.81
#FFFFFF4.361.0021.0021.00
#0000004.8121.001.001.00
##0000004.8121.001.001.00

Color blindness preview

Protanopia (red-blind)
#8B7E3C
Deuteranopia (green-blind)
#807647
Tritanopia (blue-blind)
#008779
Achromatopsia (no color)
#797979

Design tokens & code

CSS
--color: #2a8a42;
/* rgb */ color: rgb(42, 138, 66);
/* oklch */ color: oklch(56.1% 0.139 148.1);
Tailwind
colors: {
  custom: {
    50: '#71ad78',
    500: '#2a8a42',
    950: '#000000',
  },
}
SCSS
$custom: #2a8a42;
$custom-light: #71ad78;
$custom-dark: #000000;
JSON
{
  "hex": "#2a8a42",
  "rgb": {
    "r": 42,
    "g": 138,
    "b": 66
  },
  "hsl": {
    "h": 135,
    "s": 53.333,
    "l": 35.294
  },
  "oklch": {
    "l": 0.56074,
    "c": 0.13939,
    "h": 148.1
  },
  "luminance": 0.19063
}

Semantic roles & 50–950 ramp

primary
#2A8A42
secondary
#B45B9E
accent
#4BB8DD
background
#F7FAF7
surface
#EDF4ED
border
#C8CEC8
text
#081009
muted
#7B7F7B

Preview Lab

Preview with #2A8A42

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

Preview Lab → · Contrast checker → · Palette generator →

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