#2A6810#2A6810

#2A6810 is a mid, vivid green. Relative luminance 0.104; OKLCH L 45.9% C 0.133 H 138.7°. Best body text is #FFFFFF at 6.80:1 contrast (WCAG AA passes).

Color values

HEX#2A6810
RGBrgb(42, 104, 16)
HSLhsl(102, 73%, 24%)
HSVhsv(102, 85%, 41%)
CMYKcmyk(59.6%, 0%, 84.6%, 59.2%)
CIE-LABlab(38.60, -36.29, 39.78)
CIE-LCHlch(38.60, 53.84, 132.38°)
OKLaboklab(45.87% -0.1002 0.0882)
OKLCHoklch(45.87% 0.133 138.7)
XYZxyz(5.9985, 10.4298, 2.1872)
Luminance0.1043 (WCAG relative)
Temperaturewarm
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A6810 #4E1068
analogous
#566810 #2A6810 #106822
triadic
#2A6810 #102A68 #68102A
tetradic
#2A6810 #105668 #4E1068 #682210
square
#2A6810 #105668 #4E1068 #682210
split-complementary
#2A6810 #221068 #681056
monochromatic
#0B1B04 #153308 #2A6810 #3F9D18 #55D220

Accessibility & contrast

On white

6.80
#2A6810 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.09
#2A6810 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2A6810
6.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A6810#FFFFFF#000000##FFFFFF
##2A68101.006.803.096.80
#FFFFFF6.801.0021.001.00
#0000003.0921.001.0021.00
##FFFFFF6.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#6B5E00
Deuteranopia (green-blind)
#64591B
Tritanopia (blue-blind)
#246458
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #2a6810;
/* rgb */ color: rgb(42, 104, 16);
/* oklch */ color: oklch(45.9% 0.133 138.7);
Tailwind
colors: {
  custom: {
    50: '#6c9457',
    500: '#2a6810',
    950: '#000000',
  },
}
SCSS
$custom: #2a6810;
$custom-light: #6c9457;
$custom-dark: #000000;
JSON
{
  "hex": "#2a6810",
  "rgb": {
    "r": 42,
    "g": 104,
    "b": 16
  },
  "hsl": {
    "h": 102.273,
    "s": 73.333,
    "l": 23.529
  },
  "oklch": {
    "l": 0.45874,
    "c": 0.13345,
    "h": 138.7
  },
  "luminance": 0.1043
}

Semantic roles & 50–950 ramp

primary
#2A6810
secondary
#8034A0
accent
#38F0BA
background
#F6F9F5
surface
#ECF1E9
border
#C7CBC5
text
#070D03
muted
#7A7E78

Preview Lab

Preview with #2A6810

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

Preview Lab → · Contrast checker → · Palette generator →

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