#2A6F15#2A6F15

#2A6F15 is a mid, vivid green. Relative luminance 0.119; OKLCH L 47.9% C 0.140 H 139.7°. Best body text is #FFFFFF at 6.21:1 contrast (WCAG AA passes).

Color values

HEX#2A6F15
RGBrgb(42, 111, 21)
HSLhsl(106, 68%, 26%)
HSVhsv(106, 81%, 44%)
CMYKcmyk(62.2%, 0%, 81.1%, 56.5%)
CIE-LABlab(41.08, -38.73, 40.44)
CIE-LCHlch(41.08, 55.99, 133.76°)
OKLaboklab(47.93% -0.1065 0.0903)
OKLCHoklch(47.93% 0.14 139.7)
XYZxyz(6.7743, 11.9147, 2.6521)
Luminance0.1192 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A6F15 #5A156F
analogous
#576F15 #2A6F15 #156F2D
triadic
#2A6F15 #152A6F #6F152A
tetradic
#2A6F15 #15576F #5A156F #6F2D15
square
#2A6F15 #15576F #5A156F #6F2D15
split-complementary
#2A6F15 #2D156F #6F1557
monochromatic
#0A1A05 #173C0B #2A6F15 #3DA21F #51D628

Accessibility & contrast

On white

6.21
#2A6F15 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.38
#2A6F15 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2A6F15
6.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A6F15#FFFFFF#000000##FFFFFF
##2A6F151.006.213.386.21
#FFFFFF6.211.0021.001.00
#0000003.3821.001.0021.00
##FFFFFF6.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#726400
Deuteranopia (green-blind)
#6A5F1F
Tritanopia (blue-blind)
#216B5E
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #2a6f15;
/* rgb */ color: rgb(42, 111, 21);
/* oklch */ color: oklch(47.9% 0.140 139.7);
Tailwind
colors: {
  custom: {
    50: '#6d995a',
    500: '#2a6f15',
    950: '#000000',
  },
}
SCSS
$custom: #2a6f15;
$custom-light: #6d995a;
$custom-dark: #000000;
JSON
{
  "hex": "#2a6f15",
  "rgb": {
    "r": 42,
    "g": 111,
    "b": 21
  },
  "hsl": {
    "h": 106,
    "s": 68.182,
    "l": 25.882
  },
  "oklch": {
    "l": 0.47929,
    "c": 0.13961,
    "h": 139.7
  },
  "luminance": 0.11915
}

Semantic roles & 50–950 ramp

primary
#2A6F15
secondary
#8C3AA5
accent
#3DEBC2
background
#F6F9F5
surface
#ECF2E9
border
#C7CCC5
text
#080E04
muted
#7A7E79

Preview Lab

Preview with #2A6F15

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

Preview Lab → · Contrast checker → · Palette generator →

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