#2A6511#2A6511

#2A6511 is a mid, vivid green. Relative luminance 0.098; OKLCH L 45.0% C 0.129 H 138.5°. Best body text is #FFFFFF at 7.08:1 contrast (WCAG AA passes).

Color values

HEX#2A6511
RGBrgb(42, 101, 17)
HSLhsl(102, 71%, 23%)
HSVhsv(102, 83%, 40%)
CMYKcmyk(58.4%, 0%, 83.2%, 60.4%)
CIE-LABlab(37.55, -35.01, 38.46)
CIE-LCHlch(37.55, 52.01, 132.32°)
OKLaboklab(45.01% -0.0967 0.0856)
OKLCHoklch(45.01% 0.129 138.5)
XYZxyz(5.7095, 9.8396, 2.1286)
Luminance0.0984 (WCAG relative)
Temperaturewarm
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A6511 #4C1165
analogous
#546511 #2A6511 #116522
triadic
#2A6511 #112A65 #65112A
tetradic
#2A6511 #115465 #4C1165 #652211
square
#2A6511 #115465 #4C1165 #652211
split-complementary
#2A6511 #221165 #651154
monochromatic
#0B1A04 #143108 #2A6511 #40991A #56CE23

Accessibility & contrast

On white

7.08
#2A6511 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.97
#2A6511 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A6511
7.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A6511#FFFFFF#000000##FFFFFF
##2A65111.007.082.977.08
#FFFFFF7.081.0021.001.00
#0000002.9721.001.0021.00
##FFFFFF7.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#685B00
Deuteranopia (green-blind)
#61571B
Tritanopia (blue-blind)
#256155
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #2a6511;
/* rgb */ color: rgb(42, 101, 17);
/* oklch */ color: oklch(45.0% 0.129 138.5);
Tailwind
colors: {
  custom: {
    50: '#6b9157',
    500: '#2a6511',
    950: '#000000',
  },
}
SCSS
$custom: #2a6511;
$custom-light: #6b9157;
$custom-dark: #000000;
JSON
{
  "hex": "#2a6511",
  "rgb": {
    "r": 42,
    "g": 101,
    "b": 17
  },
  "hsl": {
    "h": 102.143,
    "s": 71.186,
    "l": 23.137
  },
  "oklch": {
    "l": 0.45009,
    "c": 0.12911,
    "h": 138.5
  },
  "luminance": 0.0984
}

Semantic roles & 50–950 ramp

primary
#2A6511
secondary
#7E359D
accent
#3AEEB8
background
#F6F9F5
surface
#ECF1E9
border
#C7CBC5
text
#070D03
muted
#7A7E78

Preview Lab

Preview with #2A6511

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

Preview Lab → · Contrast checker → · Palette generator →

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