#2A7B15#2A7B15

#2A7B15 is a mid, vivid green. Relative luminance 0.147; OKLCH L 51.4% C 0.154 H 140.3°. Best body text is #FFFFFF at 5.33:1 contrast (WCAG AA passes).

Color values

HEX#2A7B15
RGBrgb(42, 123, 21)
HSLhsl(108, 71%, 28%)
HSVhsv(108, 83%, 48%)
CMYKcmyk(65.9%, 0%, 82.9%, 51.8%)
CIE-LABlab(45.24, -43.26, 44.39)
CIE-LCHlch(45.24, 61.98, 134.26°)
OKLaboklab(51.37% -0.1187 0.0986)
OKLCHoklch(51.37% 0.154 140.3)
XYZxyz(8.1728, 14.7115, 3.1182)
Luminance0.1471 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A7B15 #66157B
analogous
#5D7B15 #2A7B15 #157B33
triadic
#2A7B15 #152A7B #7B152A
tetradic
#2A7B15 #155D7B #66157B #7B3315
square
#2A7B15 #155D7B #66157B #7B3315
split-complementary
#2A7B15 #33157B #7B155D
monochromatic
#091A04 #18470C #2A7B15 #3CAF1E #52DB2F

Accessibility & contrast

On white

5.33
#2A7B15 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.94
#2A7B15 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2A7B15
5.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A7B15#FFFFFF#000000##FFFFFF
##2A7B151.005.333.945.33
#FFFFFF5.331.0021.001.00
#0000003.9421.001.0021.00
##FFFFFF5.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7F6F00
Deuteranopia (green-blind)
#756921
Tritanopia (blue-blind)
#1D7768
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #2a7b15;
/* rgb */ color: rgb(42, 123, 21);
/* oklch */ color: oklch(51.4% 0.154 140.3);
Tailwind
colors: {
  custom: {
    50: '#6fa25c',
    500: '#2a7b15',
    950: '#000000',
  },
}
SCSS
$custom: #2a7b15;
$custom-light: #6fa25c;
$custom-dark: #000000;
JSON
{
  "hex": "#2a7b15",
  "rgb": {
    "r": 42,
    "g": 123,
    "b": 21
  },
  "hsl": {
    "h": 107.647,
    "s": 70.833,
    "l": 28.235
  },
  "oklch": {
    "l": 0.51368,
    "c": 0.15426,
    "h": 140.3
  },
  "luminance": 0.14712
}

Semantic roles & 50–950 ramp

primary
#2A7B15
secondary
#983BB0
accent
#3AEEC9
background
#F7FAF5
surface
#EDF4E9
border
#C8CEC5
text
#080F04
muted
#7B7F79

Preview Lab

Preview with #2A7B15

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

Preview Lab → · Contrast checker → · Palette generator →

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