#2A7310#2A7310

#2A7310 is a mid, vivid green. Relative luminance 0.128; OKLCH L 49.0% C 0.147 H 139.4°. Best body text is #FFFFFF at 5.90:1 contrast (WCAG AA passes).

Color values

HEX#2A7310
RGBrgb(42, 115, 16)
HSLhsl(104, 76%, 26%)
HSVhsv(104, 86%, 45%)
CMYKcmyk(63.5%, 0%, 86.1%, 54.9%)
CIE-LABlab(42.45, -40.57, 43.32)
CIE-LCHlch(42.45, 59.35, 133.12°)
OKLaboklab(49.05% -0.1117 0.0956)
OKLCHoklch(49.05% 0.147 139.4)
XYZxyz(7.1788, 12.7905, 2.5806)
Luminance0.1279 (WCAG relative)
Temperaturewarm
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A7310 #591073
analogous
#5B7310 #2A7310 #107327
triadic
#2A7310 #102A73 #73102A
tetradic
#2A7310 #105B73 #591073 #732710
square
#2A7310 #105B73 #591073 #732710
split-complementary
#2A7310 #271073 #73105B
monochromatic
#0A1B04 #163D09 #2A7310 #3EA917 #51DE1F

Accessibility & contrast

On white

5.90
#2A7310 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.56
#2A7310 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2A7310
5.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A7310#FFFFFF#000000##FFFFFF
##2A73101.005.903.565.90
#FFFFFF5.901.0021.001.00
#0000003.5621.001.0021.00
##FFFFFF5.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#776800
Deuteranopia (green-blind)
#6E621D
Tritanopia (blue-blind)
#216F61
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #2a7310;
/* rgb */ color: rgb(42, 115, 16);
/* oklch */ color: oklch(49.0% 0.147 139.4);
Tailwind
colors: {
  custom: {
    50: '#6e9c59',
    500: '#2a7310',
    950: '#000000',
  },
}
SCSS
$custom: #2a7310;
$custom-light: #6e9c59;
$custom-dark: #000000;
JSON
{
  "hex": "#2a7310",
  "rgb": {
    "r": 42,
    "g": 115,
    "b": 16
  },
  "hsl": {
    "h": 104.242,
    "s": 75.573,
    "l": 25.686
  },
  "oklch": {
    "l": 0.4905,
    "c": 0.147,
    "h": 139.4
  },
  "luminance": 0.12791
}

Semantic roles & 50–950 ramp

primary
#2A7310
secondary
#8B34AA
accent
#36F2C1
background
#F7F9F5
surface
#EDF2E9
border
#C8CCC5
text
#080E04
muted
#7B7E79

Preview Lab

Preview with #2A7310

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

Preview Lab → · Contrast checker → · Palette generator →

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