#2A851B#2A851B

#2A851B is a mid, vivid green. Relative luminance 0.173; OKLCH L 54.2% C 0.163 H 141.2°. Best body text is #FFFFFF at 4.70:1 contrast (WCAG AA passes).

Color values

HEX#2A851B
RGBrgb(42, 133, 27)
HSLhsl(112, 66%, 31%)
HSVhsv(112, 80%, 52%)
CMYKcmyk(68.4%, 0%, 79.7%, 47.8%)
CIE-LABlab(48.69, -46.48, 45.71)
CIE-LCHlch(48.69, 65.19, 135.48°)
OKLaboklab(54.24% -0.127 0.1022)
OKLCHoklch(54.24% 0.163 141.2)
XYZxyz(9.5397, 17.3455, 3.8820)
Luminance0.1735 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A851B #761B85
analogous
#5F851B #2A851B #1B8541
triadic
#2A851B #1B2A85 #851B2A
tetradic
#2A851B #1B5F85 #761B85 #85411B
square
#2A851B #1B5F85 #761B85 #85411B
split-complementary
#2A851B #411B85 #851B5F
monochromatic
#0A1F06 #1A5211 #2A851B #3AB825 #57D942

Accessibility & contrast

On white

4.70
#2A851B on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.47
#2A851B on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2A851B
4.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A851B#FFFFFF#000000##FFFFFF
##2A851B1.004.704.474.70
#FFFFFF4.701.0021.001.00
#0000004.4721.001.0021.00
##FFFFFF4.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#887801
Deuteranopia (green-blind)
#7E7127
Tritanopia (blue-blind)
#188171
Achromatopsia (no color)
#747474

Design tokens & code

CSS
--color: #2a851b;
/* rgb */ color: rgb(42, 133, 27);
/* oklch */ color: oklch(54.2% 0.163 141.2);
Tailwind
colors: {
  custom: {
    50: '#71a960',
    500: '#2a851b',
    950: '#000000',
  },
}
SCSS
$custom: #2a851b;
$custom-light: #71a960;
$custom-dark: #000000;
JSON
{
  "hex": "#2a851b",
  "rgb": {
    "r": 42,
    "g": 133,
    "b": 27
  },
  "hsl": {
    "h": 111.509,
    "s": 66.25,
    "l": 31.373
  },
  "oklch": {
    "l": 0.54242,
    "c": 0.16304,
    "h": 141.2
  },
  "luminance": 0.17346
}

Semantic roles & 50–950 ramp

primary
#2A851B
secondary
#A844B8
accent
#3FE9D1
background
#F7FAF5
surface
#EDF4EA
border
#C8CEC6
text
#091005
muted
#7B7F79

Preview Lab

Preview with #2A851B

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

Preview Lab → · Contrast checker → · Palette generator →

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