#2A7830#2A7830

#2A7830 is a mid, vivid green. Relative luminance 0.141; OKLCH L 50.8% C 0.131 H 144.6°. Best body text is #FFFFFF at 5.49:1 contrast (WCAG AA passes).

Color values

HEX#2A7830
RGBrgb(42, 120, 48)
HSLhsl(125, 48%, 32%)
HSVhsv(125, 65%, 47%)
CMYKcmyk(65%, 0%, 60%, 52.9%)
CIE-LABlab(44.43, -39.50, 32.13)
CIE-LCHlch(44.43, 50.92, 140.87°)
OKLaboklab(50.77% -0.107 0.0761)
OKLCHoklch(50.77% 0.131 144.6)
XYZxyz(8.2043, 14.1378, 5.0922)
Luminance0.1414 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A7830 #782A72
analogous
#4B782A #2A7830 #2A7857
triadic
#2A7830 #302A78 #78302A
tetradic
#2A7830 #2A4B78 #782A72 #78572A
square
#2A7830 #2A4B78 #782A72 #78572A
split-complementary
#2A7830 #572A78 #782A4B
monochromatic
#0A1D0C #1A4B1E #2A7830 #3AA542 #58C560

Accessibility & contrast

On white

5.49
#2A7830 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.83
#2A7830 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2A7830
5.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A7830#FFFFFF#000000##FFFFFF
##2A78301.005.493.835.49
#FFFFFF5.491.0021.001.00
#0000003.8321.001.0021.00
##FFFFFF5.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7A6D29
Deuteranopia (green-blind)
#706636
Tritanopia (blue-blind)
#187568
Achromatopsia (no color)
#696969

Design tokens & code

CSS
--color: #2a7830;
/* rgb */ color: rgb(42, 120, 48);
/* oklch */ color: oklch(50.8% 0.131 144.6);
Tailwind
colors: {
  custom: {
    50: '#6da06b',
    500: '#2a7830',
    950: '#000000',
  },
}
SCSS
$custom: #2a7830;
$custom-light: #6da06b;
$custom-dark: #000000;
JSON
{
  "hex": "#2a7830",
  "rgb": {
    "r": 42,
    "g": 120,
    "b": 48
  },
  "hsl": {
    "h": 124.615,
    "s": 48.148,
    "l": 31.765
  },
  "oklch": {
    "l": 0.50773,
    "c": 0.1313,
    "h": 144.6
  },
  "luminance": 0.14139
}

Semantic roles & 50–950 ramp

primary
#2A7830
secondary
#AA54A3
accent
#50CDD8
background
#F6F9F6
surface
#ECF2EB
border
#C7CCC6
text
#080F07
muted
#7B7E7A

Preview Lab

Preview with #2A7830

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

Preview Lab → · Contrast checker → · Palette generator →

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