#2A802F#2A802F

#2A802F is a mid, vivid green. Relative luminance 0.161; OKLCH L 53.0% C 0.143 H 144.1°. Best body text is #FFFFFF at 4.97:1 contrast (WCAG AA passes).

Color values

HEX#2A802F
RGBrgb(42, 128, 47)
HSLhsl(123, 51%, 33%)
HSVhsv(123, 67%, 50%)
CMYKcmyk(67.2%, 0%, 63.3%, 49.8%)
CIE-LABlab(47.15, -42.74, 35.77)
CIE-LCHlch(47.15, 55.73, 140.08°)
OKLaboklab(53.02% -0.1158 0.0838)
OKLCHoklch(53.02% 0.143 144.1)
XYZxyz(9.1865, 16.1349, 5.3190)
Luminance0.1614 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A802F #802A7B
analogous
#50802A #2A802F #2A805A
triadic
#2A802F #2F2A80 #802F2A
tetradic
#2A802F #2A5080 #802A7B #805A2A
square
#2A802F #2A5080 #802A7B #805A2A
split-complementary
#2A802F #5A2A80 #802A50
monochromatic
#0C240D #1B521E #2A802F #39AE40 #5BC962

Accessibility & contrast

On white

4.97
#2A802F on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.23
#2A802F on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2A802F
4.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A802F#FFFFFF#000000##FFFFFF
##2A802F1.004.974.234.97
#FFFFFF4.971.0021.001.00
#0000004.2321.001.0021.00
##FFFFFF4.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#827426
Deuteranopia (green-blind)
#786D36
Tritanopia (blue-blind)
#157C6F
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #2a802f;
/* rgb */ color: rgb(42, 128, 47);
/* oklch */ color: oklch(53.0% 0.143 144.1);
Tailwind
colors: {
  custom: {
    50: '#6fa66b',
    500: '#2a802f',
    950: '#000000',
  },
}
SCSS
$custom: #2a802f;
$custom-light: #6fa66b;
$custom-dark: #000000;
JSON
{
  "hex": "#2a802f",
  "rgb": {
    "r": 42,
    "g": 128,
    "b": 47
  },
  "hsl": {
    "h": 123.488,
    "s": 50.588,
    "l": 33.333
  },
  "oklch": {
    "l": 0.53017,
    "c": 0.14299,
    "h": 144.1
  },
  "luminance": 0.16136
}

Semantic roles & 50–950 ramp

primary
#2A802F
secondary
#AF57AA
accent
#4ED2DA
background
#F7FAF6
surface
#EDF4EB
border
#C8CEC6
text
#080F07
muted
#7B7F7A

Preview Lab

Preview with #2A802F

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

Preview Lab → · Contrast checker → · Palette generator →

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