#2A7C13#2A7C13

#2A7C13 is a mid, vivid green. Relative luminance 0.150; OKLCH L 51.6% C 0.156 H 140.2°. Best body text is #FFFFFF at 5.26:1 contrast (WCAG AA passes).

Color values

HEX#2A7C13
RGBrgb(42, 124, 19)
HSLhsl(107, 73%, 28%)
HSVhsv(107, 85%, 49%)
CMYKcmyk(66.1%, 0%, 84.7%, 51.4%)
CIE-LABlab(45.57, -43.75, 45.31)
CIE-LCHlch(45.57, 62.98, 133.99°)
OKLaboklab(51.64% -0.1201 0.1002)
OKLCHoklch(51.64% 0.156 140.2)
XYZxyz(8.2796, 14.9538, 3.0660)
Luminance0.1495 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A7C13 #65137C
analogous
#5E7C13 #2A7C13 #137C30
triadic
#2A7C13 #132A7C #7C132A
tetradic
#2A7C13 #135E7C #65137C #7C3013
square
#2A7C13 #135E7C #65137C #7C3013
split-complementary
#2A7C13 #30137C #7C135E
monochromatic
#091B04 #18470B #2A7C13 #3CB11B #52DF2B

Accessibility & contrast

On white

5.26
#2A7C13 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.99
#2A7C13 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2A7C13
5.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A7C13#FFFFFF#000000##FFFFFF
##2A7C131.005.263.995.26
#FFFFFF5.261.0021.001.00
#0000003.9921.001.0021.00
##FFFFFF5.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#807000
Deuteranopia (green-blind)
#766920
Tritanopia (blue-blind)
#1D7869
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #2a7c13;
/* rgb */ color: rgb(42, 124, 19);
/* oklch */ color: oklch(51.6% 0.156 140.2);
Tailwind
colors: {
  custom: {
    50: '#70a35b',
    500: '#2a7c13',
    950: '#000000',
  },
}
SCSS
$custom: #2a7c13;
$custom-light: #70a35b;
$custom-dark: #000000;
JSON
{
  "hex": "#2a7c13",
  "rgb": {
    "r": 42,
    "g": 124,
    "b": 19
  },
  "hsl": {
    "h": 106.857,
    "s": 73.427,
    "l": 28.039
  },
  "oklch": {
    "l": 0.51642,
    "c": 0.15638,
    "h": 140.2
  },
  "luminance": 0.14955
}

Semantic roles & 50–950 ramp

primary
#2A7C13
secondary
#9739B2
accent
#38F0C8
background
#F7FAF5
surface
#EDF4E9
border
#C8CEC5
text
#080F04
muted
#7B7F79

Preview Lab

Preview with #2A7C13

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

Preview Lab → · Contrast checker → · Palette generator →

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