#2A6F18#2A6F18

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

Color values

HEX#2A6F18
RGBrgb(42, 111, 24)
HSLhsl(108, 64%, 26%)
HSVhsv(108, 78%, 44%)
CMYKcmyk(62.2%, 0%, 78.4%, 56.5%)
CIE-LABlab(41.10, -38.51, 39.36)
CIE-LCHlch(41.10, 55.07, 134.37°)
OKLaboklab(47.95% -0.1057 0.0885)
OKLCHoklch(47.95% 0.138 140.1)
XYZxyz(6.8038, 11.9265, 2.8075)
Luminance0.1193 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A6F18 #5D186F
analogous
#566F18 #2A6F18 #186F32
triadic
#2A6F18 #182A6F #6F182A
tetradic
#2A6F18 #18566F #5D186F #6F3218
square
#2A6F18 #18566F #5D186F #6F3218
split-complementary
#2A6F18 #32186F #6F1856
monochromatic
#0A1905 #173D0D #2A6F18 #3DA123 #51D22F

Accessibility & contrast

On white

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

On black

3.39
#2A6F18 on #000000
AA ✗AA large ✓AAA ✗

Best text color

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

Contrast matrix

fg \ bg##2A6F18#FFFFFF#000000##FFFFFF
##2A6F181.006.203.396.20
#FFFFFF6.201.0021.001.00
#0000003.3921.001.0021.00
##FFFFFF6.201.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2a6f18;
/* rgb */ color: rgb(42, 111, 24);
/* oklch */ color: oklch(48.0% 0.138 140.1);
Tailwind
colors: {
  custom: {
    50: '#6d995c',
    500: '#2a6f18',
    950: '#000000',
  },
}
SCSS
$custom: #2a6f18;
$custom-light: #6d995c;
$custom-dark: #000000;
JSON
{
  "hex": "#2a6f18",
  "rgb": {
    "r": 42,
    "g": 111,
    "b": 24
  },
  "hsl": {
    "h": 107.586,
    "s": 64.444,
    "l": 26.471
  },
  "oklch": {
    "l": 0.47951,
    "c": 0.13786,
    "h": 140.1
  },
  "luminance": 0.11927
}

Semantic roles & 50–950 ramp

primary
#2A6F18
secondary
#8F3EA5
accent
#40E7C5
background
#F6F9F5
surface
#ECF2E9
border
#C7CCC5
text
#080E04
muted
#7A7E79

Preview Lab

Preview with #2A6F18

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

Preview Lab → · Contrast checker → · Palette generator →

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