#2A8B23#2A8B23

#2A8B23 is a mid, vivid green. Relative luminance 0.191; OKLCH L 56.0% C 0.166 H 142.1°. Best body text is #000000 at 4.82:1 contrast (WCAG AA passes).

Color values

HEX#2A8B23
RGBrgb(42, 139, 35)
HSLhsl(116, 60%, 34%)
HSVhsv(116, 75%, 55%)
CMYKcmyk(69.8%, 0%, 74.8%, 45.5%)
CIE-LABlab(50.78, -48.00, 44.88)
CIE-LCHlch(50.78, 65.71, 136.92°)
OKLaboklab(55.99% -0.1307 0.1016)
OKLCHoklch(55.99% 0.166 142.1)
XYZxyz(10.4902, 19.0777, 4.7193)
Luminance0.1908 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A8B23 #84238B
analogous
#5E8B23 #2A8B23 #238B50
triadic
#2A8B23 #232A8B #8B232A
tetradic
#2A8B23 #235E8B #84238B #8B5023
square
#2A8B23 #235E8B #84238B #8B5023
split-complementary
#2A8B23 #50238B #8B235E
monochromatic
#0C290A #1B5A17 #2A8B23 #39BC2F #5DD454

Accessibility & contrast

On white

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

On black

4.82
#2A8B23 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #2A8B23
4.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A8B23#FFFFFF#000000##000000
##2A8B231.004.364.824.82
#FFFFFF4.361.0021.0021.00
#0000004.8221.001.001.00
##0000004.8221.001.001.00

Color blindness preview

Protanopia (red-blind)
#8E7E10
Deuteranopia (green-blind)
#83762E
Tritanopia (blue-blind)
#128777
Achromatopsia (no color)
#797979

Design tokens & code

CSS
--color: #2a8b23;
/* rgb */ color: rgb(42, 139, 35);
/* oklch */ color: oklch(56.0% 0.166 142.1);
Tailwind
colors: {
  custom: {
    50: '#72ae65',
    500: '#2a8b23',
    950: '#000000',
  },
}
SCSS
$custom: #2a8b23;
$custom-light: #72ae65;
$custom-dark: #000000;
JSON
{
  "hex": "#2a8b23",
  "rgb": {
    "r": 42,
    "g": 139,
    "b": 35
  },
  "hsl": {
    "h": 115.962,
    "s": 59.77,
    "l": 34.118
  },
  "oklch": {
    "l": 0.55987,
    "c": 0.16556,
    "h": 142.1
  },
  "luminance": 0.19079
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2A8B23

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

Preview Lab → · Contrast checker → · Palette generator →

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