#2A751B#2A751B

#2A751B is a mid, vivid green. Relative luminance 0.133; OKLCH L 49.7% C 0.144 H 140.7°. Best body text is #FFFFFF at 5.74:1 contrast (WCAG AA passes).

Color values

HEX#2A751B
RGBrgb(42, 117, 27)
HSLhsl(110, 63%, 28%)
HSVhsv(110, 77%, 46%)
CMYKcmyk(64.1%, 0%, 76.9%, 54.1%)
CIE-LABlab(43.20, -40.59, 40.31)
CIE-LCHlch(43.20, 57.21, 135.20°)
OKLaboklab(49.7% -0.1111 0.091)
OKLCHoklch(49.7% 0.144 140.7)
XYZxyz(7.5136, 13.2932, 3.2066)
Luminance0.1329 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A751B #661B75
analogous
#57751B #2A751B #1B7539
triadic
#2A751B #1B2A75 #751B2A
tetradic
#2A751B #1B5775 #661B75 #75391B
square
#2A751B #1B5775 #661B75 #75391B
split-complementary
#2A751B #391B75 #751B57
monochromatic
#091906 #184310 #2A751B #3CA726 #52D139

Accessibility & contrast

On white

5.74
#2A751B on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.66
#2A751B on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2A751B
5.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A751B#FFFFFF#000000##FFFFFF
##2A751B1.005.743.665.74
#FFFFFF5.741.0021.001.00
#0000003.6621.001.0021.00
##FFFFFF5.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#786A09
Deuteranopia (green-blind)
#6F6424
Tritanopia (blue-blind)
#1F7164
Achromatopsia (no color)
#666666

Design tokens & code

CSS
--color: #2a751b;
/* rgb */ color: rgb(42, 117, 27);
/* oklch */ color: oklch(49.7% 0.144 140.7);
Tailwind
colors: {
  custom: {
    50: '#6e9d5e',
    500: '#2a751b',
    950: '#000000',
  },
}
SCSS
$custom: #2a751b;
$custom-light: #6e9d5e;
$custom-dark: #000000;
JSON
{
  "hex": "#2a751b",
  "rgb": {
    "r": 42,
    "g": 117,
    "b": 27
  },
  "hsl": {
    "h": 110,
    "s": 62.5,
    "l": 28.235
  },
  "oklch": {
    "l": 0.49696,
    "c": 0.1436,
    "h": 140.7
  },
  "luminance": 0.13294
}

Semantic roles & 50–950 ramp

primary
#2A751B
secondary
#9842A9
accent
#42E6CA
background
#F7F9F5
surface
#EDF2E9
border
#C8CCC5
text
#080E05
muted
#7B7E79

Preview Lab

Preview with #2A751B

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

Preview Lab → · Contrast checker → · Palette generator →

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