#2A8317#2A8317

#2A8317 is a mid, vivid green. Relative luminance 0.168; OKLCH L 53.7% C 0.163 H 140.7°. Best body text is #FFFFFF at 4.82:1 contrast (WCAG AA passes).

Color values

HEX#2A8317
RGBrgb(42, 131, 23)
HSLhsl(109, 70%, 30%)
HSVhsv(109, 82%, 51%)
CMYKcmyk(67.9%, 0%, 82.4%, 48.6%)
CIE-LABlab(47.99, -46.03, 46.35)
CIE-LCHlch(47.99, 65.32, 134.80°)
OKLaboklab(53.65% -0.126 0.103)
OKLCHoklch(53.65% 0.163 140.7)
XYZxyz(9.2253, 16.7858, 3.5642)
Luminance0.1679 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A8317 #701783
analogous
#608317 #2A8317 #17833A
triadic
#2A8317 #172A83 #83172A
tetradic
#2A8317 #176083 #701783 #833A17
square
#2A8317 #176083 #701783 #833A17
split-complementary
#2A8317 #3A1783 #831760
monochromatic
#091B05 #194F0E #2A8317 #3BB720 #55DC38

Accessibility & contrast

On white

4.82
#2A8317 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.36
#2A8317 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2A8317
4.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A8317#FFFFFF#000000##FFFFFF
##2A83171.004.824.364.82
#FFFFFF4.821.0021.001.00
#0000004.3621.001.0021.00
##FFFFFF4.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#877600
Deuteranopia (green-blind)
#7C6F24
Tritanopia (blue-blind)
#1A7F6F
Achromatopsia (no color)
#727272

Design tokens & code

CSS
--color: #2a8317;
/* rgb */ color: rgb(42, 131, 23);
/* oklch */ color: oklch(53.7% 0.163 140.7);
Tailwind
colors: {
  custom: {
    50: '#71a85e',
    500: '#2a8317',
    950: '#000000',
  },
}
SCSS
$custom: #2a8317;
$custom-light: #71a85e;
$custom-dark: #000000;
JSON
{
  "hex": "#2a8317",
  "rgb": {
    "r": 42,
    "g": 131,
    "b": 23
  },
  "hsl": {
    "h": 109.444,
    "s": 70.13,
    "l": 30.196
  },
  "oklch": {
    "l": 0.53652,
    "c": 0.16272,
    "h": 140.7
  },
  "luminance": 0.16787
}

Semantic roles & 50–950 ramp

primary
#2A8317
secondary
#A23FB7
accent
#3BEDCE
background
#F7FAF5
surface
#EDF4EA
border
#C8CEC6
text
#091005
muted
#7B7F79

Preview Lab

Preview with #2A8317

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

Preview Lab → · Contrast checker → · Palette generator →

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