#2A702C#2A702C

#2A702C is a mid, vivid green. Relative luminance 0.123; OKLCH L 48.4% C 0.124 H 143.8°. Best body text is #FFFFFF at 6.08:1 contrast (WCAG AA passes).

Color values

HEX#2A702C
RGBrgb(42, 112, 44)
HSLhsl(122, 45%, 30%)
HSVhsv(122, 63%, 44%)
CMYKcmyk(62.5%, 0%, 60.7%, 56.1%)
CIE-LABlab(41.63, -36.81, 30.89)
CIE-LCHlch(41.63, 48.05, 140.00°)
OKLaboklab(48.45% -0.0999 0.073)
OKLCHoklch(48.45% 0.124 143.8)
XYZxyz(7.2032, 12.2618, 4.3695)
Luminance0.1226 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A702C #702A6E
analogous
#4B702A #2A702C #2A704F
triadic
#2A702C #2C2A70 #702C2A
tetradic
#2A702C #2A4B70 #702A6E #704F2A
square
#2A702C #2A4B70 #702A6E #704F2A
split-complementary
#2A702C #4F2A70 #702A4B
monochromatic
#091709 #19431B #2A702C #3B9D3D #55BF58

Accessibility & contrast

On white

6.08
#2A702C on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.45
#2A702C on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2A702C
6.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A702C#FFFFFF#000000##FFFFFF
##2A702C1.006.083.456.08
#FFFFFF6.081.0021.001.00
#0000003.4521.001.0021.00
##FFFFFF6.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#726625
Deuteranopia (green-blind)
#696031
Tritanopia (blue-blind)
#1D6D61
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #2a702c;
/* rgb */ color: rgb(42, 112, 44);
/* oklch */ color: oklch(48.4% 0.124 143.8);
Tailwind
colors: {
  custom: {
    50: '#6c9a67',
    500: '#2a702c',
    950: '#000000',
  },
}
SCSS
$custom: #2a702c;
$custom-light: #6c9a67;
$custom-dark: #000000;
JSON
{
  "hex": "#2a702c",
  "rgb": {
    "r": 42,
    "g": 112,
    "b": 44
  },
  "hsl": {
    "h": 121.714,
    "s": 45.455,
    "l": 30.196
  },
  "oklch": {
    "l": 0.48447,
    "c": 0.12376,
    "h": 143.8
  },
  "luminance": 0.12262
}

Semantic roles & 50–950 ramp

primary
#2A702C
secondary
#A254A0
accent
#53D1D5
background
#F6F9F6
surface
#ECF2EB
border
#C7CCC6
text
#070E06
muted
#7A7E7A

Preview Lab

Preview with #2A702C

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

Preview Lab → · Contrast checker → · Palette generator →

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