#2A951F#2A951F

#2A951F is a mid, vivid green. Relative luminance 0.221; OKLCH L 58.7% C 0.179 H 141.8°. Best body text is #000000 at 5.42:1 contrast (WCAG AA passes).

Color values

HEX#2A951F
RGBrgb(42, 149, 31)
HSLhsl(114, 66%, 35%)
HSVhsv(114, 79%, 58%)
CMYKcmyk(71.8%, 0%, 79.2%, 41.6%)
CIE-LABlab(54.12, -51.75, 49.61)
CIE-LCHlch(54.12, 71.69, 136.21°)
OKLaboklab(58.75% -0.141 0.1109)
OKLCHoklch(58.75% 0.179 141.8)
XYZxyz(11.9489, 22.0848, 4.9291)
Luminance0.2209 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A951F #8A1F95
analogous
#65951F #2A951F #1F954F
triadic
#2A951F #1F2A95 #951F2A
tetradic
#2A951F #1F6595 #8A1F95 #954F1F
square
#2A951F #1F6595 #8A1F95 #954F1F
split-complementary
#2A951F #4F1F95 #951F65
monochromatic
#0D300A #1C6214 #2A951F #38C82A #60DB53

Accessibility & contrast

On white

3.88
#2A951F on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.42
#2A951F on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #2A951F
5.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A951F#FFFFFF#000000##000000
##2A951F1.003.885.425.42
#FFFFFF3.881.0021.0021.00
#0000005.4221.001.001.00
##0000005.4221.001.001.00

Color blindness preview

Protanopia (red-blind)
#998600
Deuteranopia (green-blind)
#8C7E2D
Tritanopia (blue-blind)
#0C907F
Achromatopsia (no color)
#818181

Design tokens & code

CSS
--color: #2a951f;
/* rgb */ color: rgb(42, 149, 31);
/* oklch */ color: oklch(58.7% 0.179 141.8);
Tailwind
colors: {
  custom: {
    50: '#75b564',
    500: '#2a951f',
    950: '#000000',
  },
}
SCSS
$custom: #2a951f;
$custom-light: #75b564;
$custom-dark: #000000;
JSON
{
  "hex": "#2a951f",
  "rgb": {
    "r": 42,
    "g": 149,
    "b": 31
  },
  "hsl": {
    "h": 114.407,
    "s": 65.556,
    "l": 35.294
  },
  "oklch": {
    "l": 0.58749,
    "c": 0.17945,
    "h": 141.8
  },
  "luminance": 0.22086
}

Semantic roles & 50–950 ramp

primary
#2A951F
secondary
#B451BF
accent
#3FE9D9
background
#F7FBF6
surface
#EEF6EB
border
#C9D0C6
text
#0A1106
muted
#7C807A

Preview Lab

Preview with #2A951F

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

Preview Lab → · Contrast checker → · Palette generator →

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