#2A6A0F#2A6A0F

#2A6A0F is a mid, vivid green. Relative luminance 0.108; OKLCH L 46.4% C 0.136 H 138.7°. Best body text is #FFFFFF at 6.63:1 contrast (WCAG AA passes).

Color values

HEX#2A6A0F
RGBrgb(42, 106, 15)
HSLhsl(102, 75%, 24%)
HSVhsv(102, 86%, 42%)
CMYKcmyk(60.4%, 0%, 85.8%, 58.4%)
CIE-LABlab(39.30, -37.14, 40.73)
CIE-LCHlch(39.30, 55.13, 132.36°)
OKLaboklab(46.45% -0.1025 0.09)
OKLCHoklch(46.45% 0.136 138.7)
XYZxyz(6.1949, 10.8343, 2.2166)
Luminance0.1084 (WCAG relative)
Temperaturewarm
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A6A0F #4F0F6A
analogous
#576A0F #2A6A0F #0F6A21
triadic
#2A6A0F #0F2A6A #6A0F2A
tetradic
#2A6A0F #0F576A #4F0F6A #6A210F
square
#2A6A0F #0F576A #4F0F6A #6A210F
split-complementary
#2A6A0F #210F6A #6A0F57
monochromatic
#0B1B04 #153407 #2A6A0F #3FA017 #54D51E

Accessibility & contrast

On white

6.63
#2A6A0F on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.17
#2A6A0F on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2A6A0F
6.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A6A0F#FFFFFF#000000##FFFFFF
##2A6A0F1.006.633.176.63
#FFFFFF6.631.0021.001.00
#0000003.1721.001.0021.00
##FFFFFF6.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#6D6000
Deuteranopia (green-blind)
#655B1A
Tritanopia (blue-blind)
#23665A
Achromatopsia (no color)
#5D5D5D

Design tokens & code

CSS
--color: #2a6a0f;
/* rgb */ color: rgb(42, 106, 15);
/* oklch */ color: oklch(46.4% 0.136 138.7);
Tailwind
colors: {
  custom: {
    50: '#6c9557',
    500: '#2a6a0f',
    950: '#000000',
  },
}
SCSS
$custom: #2a6a0f;
$custom-light: #6c9557;
$custom-dark: #000000;
JSON
{
  "hex": "#2a6a0f",
  "rgb": {
    "r": 42,
    "g": 106,
    "b": 15
  },
  "hsl": {
    "h": 102.198,
    "s": 75.207,
    "l": 23.725
  },
  "oklch": {
    "l": 0.46448,
    "c": 0.13643,
    "h": 138.7
  },
  "luminance": 0.10835
}

Semantic roles & 50–950 ramp

primary
#2A6A0F
secondary
#8132A2
accent
#36F2BA
background
#F6F9F5
surface
#ECF2E9
border
#C7CCC5
text
#070D03
muted
#7A7E78

Preview Lab

Preview with #2A6A0F

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

Preview Lab → · Contrast checker → · Palette generator →

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