#2A7B16#2A7B16

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

Color values

HEX#2A7B16
RGBrgb(42, 123, 22)
HSLhsl(108, 70%, 28%)
HSVhsv(108, 82%, 48%)
CMYKcmyk(65.9%, 0%, 82.1%, 51.8%)
CIE-LABlab(45.24, -43.20, 44.08)
CIE-LCHlch(45.24, 61.72, 134.42°)
OKLaboklab(51.37% -0.1184 0.0981)
OKLCHoklch(51.37% 0.154 140.4)
XYZxyz(8.1822, 14.7153, 3.1680)
Luminance0.1472 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A7B16 #67167B
analogous
#5C7B16 #2A7B16 #167B34
triadic
#2A7B16 #162A7B #7B162A
tetradic
#2A7B16 #165C7B #67167B #7B3416
square
#2A7B16 #165C7B #67167B #7B3416
split-complementary
#2A7B16 #34167B #7B165C
monochromatic
#091A05 #18470D #2A7B16 #3CAF1F #53DA31

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##2A7B16#FFFFFF#000000##FFFFFF
##2A7B161.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)
#7E6F00
Deuteranopia (green-blind)
#756922
Tritanopia (blue-blind)
#1D7768
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #2a7b16;
/* rgb */ color: rgb(42, 123, 22);
/* oklch */ color: oklch(51.4% 0.154 140.4);
Tailwind
colors: {
  custom: {
    50: '#6fa25c',
    500: '#2a7b16',
    950: '#000000',
  },
}
SCSS
$custom: #2a7b16;
$custom-light: #6fa25c;
$custom-dark: #000000;
JSON
{
  "hex": "#2a7b16",
  "rgb": {
    "r": 42,
    "g": 123,
    "b": 22
  },
  "hsl": {
    "h": 108.119,
    "s": 69.655,
    "l": 28.431
  },
  "oklch": {
    "l": 0.51374,
    "c": 0.15377,
    "h": 140.4
  },
  "luminance": 0.14716
}

Semantic roles & 50–950 ramp

primary
#2A7B16
secondary
#993DB0
accent
#3BECC9
background
#F7FAF5
surface
#EDF4E9
border
#C8CEC5
text
#080F04
muted
#7B7F79

Preview Lab

Preview with #2A7B16

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

Preview Lab → · Contrast checker → · Palette generator →

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