#2A671B#2A671B

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

Color values

HEX#2A671B
RGBrgb(42, 103, 27)
HSLhsl(108, 58%, 25%)
HSVhsv(108, 74%, 40%)
CMYKcmyk(59.2%, 0%, 73.8%, 59.6%)
CIE-LABlab(38.33, -35.04, 35.32)
CIE-LCHlch(38.33, 49.76, 134.77°)
OKLaboklab(45.67% -0.0961 0.0805)
OKLCHoklch(45.67% 0.125 140.1)
XYZxyz(6.0027, 10.2714, 2.7029)
Luminance0.1027 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A671B #581B67
analogous
#50671B #2A671B #1B6732
triadic
#2A671B #1B2A67 #671B2A
tetradic
#2A671B #1B5067 #581B67 #67321B
square
#2A671B #1B5067 #581B67 #67321B
split-complementary
#2A671B #321B67 #671B50
monochromatic
#0A1806 #16370E #2A671B #3E9728 #52C834

Accessibility & contrast

On white

6.88
#2A671B on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.05
#2A671B on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2A671B
6.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A671B#FFFFFF#000000##FFFFFF
##2A671B1.006.883.056.88
#FFFFFF6.881.0021.001.00
#0000003.0521.001.0021.00
##FFFFFF6.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#6A5D0F
Deuteranopia (green-blind)
#625822
Tritanopia (blue-blind)
#236358
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #2a671b;
/* rgb */ color: rgb(42, 103, 27);
/* oklch */ color: oklch(45.7% 0.125 140.1);
Tailwind
colors: {
  custom: {
    50: '#6b935c',
    500: '#2a671b',
    950: '#000000',
  },
}
SCSS
$custom: #2a671b;
$custom-light: #6b935c;
$custom-dark: #000000;
JSON
{
  "hex": "#2a671b",
  "rgb": {
    "r": 42,
    "g": 103,
    "b": 27
  },
  "hsl": {
    "h": 108.158,
    "s": 58.462,
    "l": 25.49
  },
  "oklch": {
    "l": 0.45668,
    "c": 0.1254,
    "h": 140.1
  },
  "luminance": 0.10272
}

Semantic roles & 50–950 ramp

primary
#2A671B
secondary
#8A429C
accent
#46E2C3
background
#F6F9F5
surface
#ECF1E9
border
#C7CBC5
text
#070D04
muted
#7A7E79

Preview Lab

Preview with #2A671B

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

Preview Lab → · Contrast checker → · Palette generator →

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