#2A7833#2A7833

#2A7833 is a mid, vivid green. Relative luminance 0.142; OKLCH L 50.8% C 0.129 H 145.4°. Best body text is #FFFFFF at 5.48:1 contrast (WCAG AA passes).

Color values

HEX#2A7833
RGBrgb(42, 120, 51)
HSLhsl(127, 48%, 32%)
HSVhsv(127, 65%, 47%)
CMYKcmyk(65%, 0%, 57.5%, 52.9%)
CIE-LABlab(44.47, -39.09, 30.64)
CIE-LCHlch(44.47, 49.66, 141.91°)
OKLaboklab(50.82% -0.1058 0.0731)
OKLCHoklch(50.82% 0.129 145.4)
XYZxyz(8.2683, 14.1634, 5.4294)
Luminance0.1416 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A7833 #782A6F
analogous
#48782A #2A7833 #2A785A
triadic
#2A7833 #332A78 #78332A
tetradic
#2A7833 #2A4878 #782A6F #785A2A
square
#2A7833 #2A4878 #782A6F #785A2A
split-complementary
#2A7833 #5A2A78 #782A48
monochromatic
#0A1D0C #1A4B20 #2A7833 #3AA546 #58C564

Accessibility & contrast

On white

5.48
#2A7833 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #2A7833
5.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A7833#FFFFFF#000000##FFFFFF
##2A78331.005.483.835.48
#FFFFFF5.481.0021.001.00
#0000003.8321.001.0021.00
##FFFFFF5.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7A6D2C
Deuteranopia (green-blind)
#706738
Tritanopia (blue-blind)
#177569
Achromatopsia (no color)
#696969

Design tokens & code

CSS
--color: #2a7833;
/* rgb */ color: rgb(42, 120, 51);
/* oklch */ color: oklch(50.8% 0.129 145.4);
Tailwind
colors: {
  custom: {
    50: '#6da06d',
    500: '#2a7833',
    950: '#000000',
  },
}
SCSS
$custom: #2a7833;
$custom-light: #6da06d;
$custom-dark: #000000;
JSON
{
  "hex": "#2a7833",
  "rgb": {
    "r": 42,
    "g": 120,
    "b": 51
  },
  "hsl": {
    "h": 126.923,
    "s": 48.148,
    "l": 31.765
  },
  "oklch": {
    "l": 0.50815,
    "c": 0.12855,
    "h": 145.4
  },
  "luminance": 0.14164
}

Semantic roles & 50–950 ramp

primary
#2A7833
secondary
#AA54A0
accent
#50C8D8
background
#F6F9F6
surface
#ECF2EB
border
#C7CCC6
text
#080F07
muted
#7B7E7A

Preview Lab

Preview with #2A7833

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

Preview Lab → · Contrast checker → · Palette generator →

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