#2A9927#2A9927

#2A9927 is a mid, vivid green. Relative luminance 0.234; OKLCH L 59.9% C 0.180 H 142.6°. Best body text is #000000 at 5.68:1 contrast (WCAG AA passes).

Color values

HEX#2A9927
RGBrgb(42, 153, 39)
HSLhsl(118, 59%, 38%)
HSVhsv(118, 75%, 60%)
CMYKcmyk(72.5%, 0%, 74.5%, 40%)
CIE-LABlab(55.50, -52.50, 48.16)
CIE-LCHlch(55.50, 71.25, 137.47°)
OKLaboklab(59.91% -0.1427 0.109)
OKLCHoklch(59.91% 0.18 142.6)
XYZxyz(12.7115, 23.4198, 5.7696)
Luminance0.2342 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A9927 #962799
analogous
#639927 #2A9927 #27995D
triadic
#2A9927 #272A99 #99272A
tetradic
#2A9927 #276399 #962799 #995D27
square
#2A9927 #276399 #962799 #995D27
split-complementary
#2A9927 #5D2799 #992763
monochromatic
#0F370E #1D681B #2A9927 #37CA33 #66D763

Accessibility & contrast

On white

3.69
#2A9927 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.68
#2A9927 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #2A9927
5.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A9927#FFFFFF#000000##000000
##2A99271.003.695.685.68
#FFFFFF3.691.0021.0021.00
#0000005.6821.001.001.00
##0000005.6821.001.001.00

Color blindness preview

Protanopia (red-blind)
#9C8A12
Deuteranopia (green-blind)
#908233
Tritanopia (blue-blind)
#039483
Achromatopsia (no color)
#858585

Design tokens & code

CSS
--color: #2a9927;
/* rgb */ color: rgb(42, 153, 39);
/* oklch */ color: oklch(59.9% 0.180 142.6);
Tailwind
colors: {
  custom: {
    50: '#75b869',
    500: '#2a9927',
    950: '#000000',
  },
}
SCSS
$custom: #2a9927;
$custom-light: #75b869;
$custom-dark: #000000;
JSON
{
  "hex": "#2a9927",
  "rgb": {
    "r": 42,
    "g": 153,
    "b": 39
  },
  "hsl": {
    "h": 118.421,
    "s": 59.375,
    "l": 37.647
  },
  "oklch": {
    "l": 0.59914,
    "c": 0.17957,
    "h": 142.6
  },
  "luminance": 0.23421
}

Semantic roles & 50–950 ramp

primary
#2A9927
secondary
#BA5FBD
accent
#45E3DE
background
#F7FBF6
surface
#EEF6EB
border
#C9D0C6
text
#0A1107
muted
#7C807A

Preview Lab

Preview with #2A9927

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

Preview Lab → · Contrast checker → · Palette generator →

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