#2A6317#2A6317

#2A6317 is a dark, vivid green. Relative luminance 0.095; OKLCH L 44.5% C 0.123 H 139.1°. Best body text is #FFFFFF at 7.25:1 contrast (WCAG AA passes).

Color values

HEX#2A6317
RGBrgb(42, 99, 23)
HSLhsl(105, 62%, 24%)
HSVhsv(105, 77%, 39%)
CMYKcmyk(57.6%, 0%, 76.8%, 61.2%)
CIE-LABlab(36.89, -33.74, 35.53)
CIE-LCHlch(36.89, 49.00, 133.52°)
OKLaboklab(44.47% -0.0929 0.0804)
OKLCHoklch(44.47% 0.123 139.1)
XYZxyz(5.5711, 9.4773, 2.3462)
Luminance0.0948 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A6317 #501763
analogous
#506317 #2A6317 #17632A
triadic
#2A6317 #172A63 #63172A
tetradic
#2A6317 #175063 #501763 #632A17
square
#2A6317 #175063 #501763 #632A17
split-complementary
#2A6317 #2A1763 #631750
monochromatic
#0B1906 #15310B #2A6317 #3F9523 #54C62E

Accessibility & contrast

On white

7.25
#2A6317 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.90
#2A6317 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A6317
7.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A6317#FFFFFF#000000##FFFFFF
##2A63171.007.252.907.25
#FFFFFF7.251.0021.001.00
#0000002.9021.001.0021.00
##FFFFFF7.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#665A0A
Deuteranopia (green-blind)
#5F551F
Tritanopia (blue-blind)
#245F54
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #2a6317;
/* rgb */ color: rgb(42, 99, 23);
/* oklch */ color: oklch(44.5% 0.123 139.1);
Tailwind
colors: {
  custom: {
    50: '#6a9059',
    500: '#2a6317',
    950: '#000000',
  },
}
SCSS
$custom: #2a6317;
$custom-light: #6a9059;
$custom-dark: #000000;
JSON
{
  "hex": "#2a6317",
  "rgb": {
    "r": 42,
    "g": 99,
    "b": 23
  },
  "hsl": {
    "h": 105,
    "s": 62.295,
    "l": 23.922
  },
  "oklch": {
    "l": 0.44472,
    "c": 0.12283,
    "h": 139.1
  },
  "luminance": 0.09478
}

Semantic roles & 50–950 ramp

primary
#2A6317
secondary
#823C9A
accent
#42E5BD
background
#F6F8F5
surface
#ECF0E9
border
#C7CBC5
text
#070C04
muted
#7A7D79

Preview Lab

Preview with #2A6317

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

Preview Lab → · Contrast checker → · Palette generator →

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