#2A6F17#2A6F17

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

Color values

HEX#2A6F17
RGBrgb(42, 111, 23)
HSLhsl(107, 66%, 26%)
HSVhsv(107, 79%, 44%)
CMYKcmyk(62.2%, 0%, 79.3%, 56.5%)
CIE-LABlab(41.09, -38.59, 39.73)
CIE-LCHlch(41.09, 55.38, 134.16°)
OKLaboklab(47.94% -0.1059 0.0891)
OKLCHoklch(47.94% 0.138 139.9)
XYZxyz(6.7936, 11.9224, 2.7537)
Luminance0.1192 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A6F17 #5C176F
analogous
#566F17 #2A6F17 #176F30
triadic
#2A6F17 #172A6F #6F172A
tetradic
#2A6F17 #17566F #5C176F #6F3017
square
#2A6F17 #17566F #5C176F #6F3017
split-complementary
#2A6F17 #30176F #6F1756
monochromatic
#0A1905 #173C0C #2A6F17 #3DA222 #51D32D

Accessibility & contrast

On white

6.20
#2A6F17 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #2A6F17
6.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A6F17#FFFFFF#000000##FFFFFF
##2A6F171.006.203.386.20
#FFFFFF6.201.0021.001.00
#0000003.3821.001.0021.00
##FFFFFF6.201.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2a6f17;
/* rgb */ color: rgb(42, 111, 23);
/* oklch */ color: oklch(47.9% 0.138 139.9);
Tailwind
colors: {
  custom: {
    50: '#6d995b',
    500: '#2a6f17',
    950: '#000000',
  },
}
SCSS
$custom: #2a6f17;
$custom-light: #6d995b;
$custom-dark: #000000;
JSON
{
  "hex": "#2a6f17",
  "rgb": {
    "r": 42,
    "g": 111,
    "b": 23
  },
  "hsl": {
    "h": 107.045,
    "s": 65.672,
    "l": 26.275
  },
  "oklch": {
    "l": 0.47943,
    "c": 0.13846,
    "h": 139.9
  },
  "luminance": 0.11923
}

Semantic roles & 50–950 ramp

primary
#2A6F17
secondary
#8E3DA5
accent
#3FE9C4
background
#F6F9F5
surface
#ECF2E9
border
#C7CCC5
text
#080E04
muted
#7A7E79

Preview Lab

Preview with #2A6F17

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

Preview Lab → · Contrast checker → · Palette generator →

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