#2A8A23#2A8A23

#2A8A23 is a mid, vivid green. Relative luminance 0.188; OKLCH L 55.7% C 0.164 H 142.1°. Best body text is #000000 at 4.76:1 contrast (WCAG AA passes).

Color values

HEX#2A8A23
RGBrgb(42, 138, 35)
HSLhsl(116, 60%, 34%)
HSVhsv(116, 75%, 54%)
CMYKcmyk(69.6%, 0%, 74.6%, 45.9%)
CIE-LABlab(50.44, -47.64, 44.54)
CIE-LCHlch(50.44, 65.22, 136.93°)
OKLaboklab(55.71% -0.1297 0.1009)
OKLCHoklch(55.71% 0.164 142.1)
XYZxyz(10.3461, 18.7895, 4.6713)
Luminance0.1879 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A8A23 #83238A
analogous
#5E8A23 #2A8A23 #238A50
triadic
#2A8A23 #232A8A #8A232A
tetradic
#2A8A23 #235E8A #83238A #8A5023
square
#2A8A23 #235E8A #83238A #8A5023
split-complementary
#2A8A23 #50238A #8A235E
monochromatic
#0C280A #1B5917 #2A8A23 #39BB2F #5DD454

Accessibility & contrast

On white

4.41
#2A8A23 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.76
#2A8A23 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #2A8A23
4.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A8A23#FFFFFF#000000##000000
##2A8A231.004.414.764.76
#FFFFFF4.411.0021.0021.00
#0000004.7621.001.001.00
##0000004.7621.001.001.00

Color blindness preview

Protanopia (red-blind)
#8D7D10
Deuteranopia (green-blind)
#82752E
Tritanopia (blue-blind)
#138676
Achromatopsia (no color)
#787878

Design tokens & code

CSS
--color: #2a8a23;
/* rgb */ color: rgb(42, 138, 35);
/* oklch */ color: oklch(55.7% 0.164 142.1);
Tailwind
colors: {
  custom: {
    50: '#72ad65',
    500: '#2a8a23',
    950: '#000000',
  },
}
SCSS
$custom: #2a8a23;
$custom-light: #72ad65;
$custom-dark: #000000;
JSON
{
  "hex": "#2a8a23",
  "rgb": {
    "r": 42,
    "g": 138,
    "b": 35
  },
  "hsl": {
    "h": 115.922,
    "s": 59.538,
    "l": 33.922
  },
  "oklch": {
    "l": 0.55707,
    "c": 0.16436,
    "h": 142.1
  },
  "luminance": 0.18791
}

Semantic roles & 50–950 ramp

primary
#2A8A23
secondary
#B151B7
accent
#45E3D8
background
#F7FAF6
surface
#EDF4EB
border
#C8CEC6
text
#091006
muted
#7B7F7A

Preview Lab

Preview with #2A8A23

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

Preview Lab → · Contrast checker → · Palette generator →

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