#2A7F13#2A7F13

#2A7F13 is a mid, vivid green. Relative luminance 0.157; OKLCH L 52.5% C 0.160 H 140.3°. Best body text is #FFFFFF at 5.07:1 contrast (WCAG AA passes).

Color values

HEX#2A7F13
RGBrgb(42, 127, 19)
HSLhsl(107, 74%, 29%)
HSVhsv(107, 85%, 50%)
CMYKcmyk(66.9%, 0%, 85%, 50.2%)
CIE-LABlab(46.60, -44.83, 46.26)
CIE-LCHlch(46.60, 64.42, 134.10°)
OKLaboklab(52.5% -0.123 0.1022)
OKLCHoklch(52.5% 0.16 140.3)
XYZxyz(8.6613, 15.7171, 3.1932)
Luminance0.1572 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A7F13 #68137F
analogous
#607F13 #2A7F13 #137F32
triadic
#2A7F13 #132A7F #7F132A
tetradic
#2A7F13 #13607F #68137F #7F3213
square
#2A7F13 #13607F #68137F #7F3213
split-complementary
#2A7F13 #32137F #7F1360
monochromatic
#091B04 #184A0B #2A7F13 #3CB41B #53E02D

Accessibility & contrast

On white

5.07
#2A7F13 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.14
#2A7F13 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2A7F13
5.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A7F13#FFFFFF#000000##FFFFFF
##2A7F131.005.074.145.07
#FFFFFF5.071.0021.001.00
#0000004.1421.001.0021.00
##FFFFFF5.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#837300
Deuteranopia (green-blind)
#796C21
Tritanopia (blue-blind)
#1C7B6C
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #2a7f13;
/* rgb */ color: rgb(42, 127, 19);
/* oklch */ color: oklch(52.5% 0.160 140.3);
Tailwind
colors: {
  custom: {
    50: '#70a55c',
    500: '#2a7f13',
    950: '#000000',
  },
}
SCSS
$custom: #2a7f13;
$custom-light: #70a55c;
$custom-dark: #000000;
JSON
{
  "hex": "#2a7f13",
  "rgb": {
    "r": 42,
    "g": 127,
    "b": 19
  },
  "hsl": {
    "h": 107.222,
    "s": 73.973,
    "l": 28.627
  },
  "oklch": {
    "l": 0.52496,
    "c": 0.15989,
    "h": 140.3
  },
  "luminance": 0.15718
}

Semantic roles & 50–950 ramp

primary
#2A7F13
secondary
#9A39B4
accent
#37F1C9
background
#F7FAF5
surface
#EDF4E9
border
#C8CEC5
text
#080F04
muted
#7B7F79

Preview Lab

Preview with #2A7F13

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

Preview Lab → · Contrast checker → · Palette generator →

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