#2A671F#2A671F

#2A671F is a mid, vivid green. Relative luminance 0.103; OKLCH L 45.7% C 0.122 H 140.8°. Best body text is #FFFFFF at 6.87:1 contrast (WCAG AA passes).

Color values

HEX#2A671F
RGBrgb(42, 103, 31)
HSLhsl(111, 54%, 26%)
HSVhsv(111, 70%, 40%)
CMYKcmyk(59.2%, 0%, 69.9%, 59.6%)
CIE-LABlab(38.36, -34.65, 33.56)
CIE-LCHlch(38.36, 48.24, 135.91°)
OKLaboklab(45.71% -0.0948 0.0774)
OKLCHoklch(45.71% 0.122 140.8)
XYZxyz(6.0521, 10.2912, 2.9635)
Luminance0.1029 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A671F #5C1F67
analogous
#4E671F #2A671F #1F6738
triadic
#2A671F #1F2A67 #671F2A
tetradic
#2A671F #1F4E67 #5C1F67 #67381F
square
#2A671F #1F4E67 #5C1F67 #67381F
split-complementary
#2A671F #381F67 #671F4E
monochromatic
#0A1807 #173811 #2A671F #3D962D #51C43C

Accessibility & contrast

On white

6.87
#2A671F on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.06
#2A671F on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2A671F
6.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A671F#FFFFFF#000000##FFFFFF
##2A671F1.006.873.066.87
#FFFFFF6.871.0021.001.00
#0000003.0621.001.0021.00
##FFFFFF6.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#6A5D16
Deuteranopia (green-blind)
#625825
Tritanopia (blue-blind)
#226458
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #2a671f;
/* rgb */ color: rgb(42, 103, 31);
/* oklch */ color: oklch(45.7% 0.122 140.8);
Tailwind
colors: {
  custom: {
    50: '#6b935e',
    500: '#2a671f',
    950: '#000000',
  },
}
SCSS
$custom: #2a671f;
$custom-light: #6b935e;
$custom-dark: #000000;
JSON
{
  "hex": "#2a671f",
  "rgb": {
    "r": 42,
    "g": 103,
    "b": 31
  },
  "hsl": {
    "h": 110.833,
    "s": 53.731,
    "l": 26.275
  },
  "oklch": {
    "l": 0.45708,
    "c": 0.12236,
    "h": 140.8
  },
  "luminance": 0.10292
}

Semantic roles & 50–950 ramp

primary
#2A671F
secondary
#8E469B
accent
#4BDDC7
background
#F6F9F5
surface
#ECF1E9
border
#C7CBC5
text
#070D05
muted
#7A7E79

Preview Lab

Preview with #2A671F

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

Preview Lab → · Contrast checker → · Palette generator →

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