#2A7233#2A7233

#2A7233 is a mid, vivid green. Relative luminance 0.128; OKLCH L 49.1% C 0.120 H 145.7°. Best body text is #FFFFFF at 5.91:1 contrast (WCAG AA passes).

Color values

HEX#2A7233
RGBrgb(42, 114, 51)
HSLhsl(128, 46%, 31%)
HSVhsv(128, 63%, 45%)
CMYKcmyk(63.2%, 0%, 55.3%, 55.3%)
CIE-LABlab(42.41, -36.64, 28.16)
CIE-LCHlch(42.41, 46.21, 142.46°)
OKLaboklab(49.12% -0.0992 0.0676)
OKLCHoklch(49.12% 0.12 145.7)
XYZxyz(7.5692, 12.7652, 5.1964)
Luminance0.1277 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A7233 #722A69
analogous
#45722A #2A7233 #2A7257
triadic
#2A7233 #332A72 #72332A
tetradic
#2A7233 #2A4572 #722A69 #72572A
square
#2A7233 #2A4572 #722A69 #72572A
split-complementary
#2A7233 #572A72 #722A45
monochromatic
#09190B #1A451F #2A7233 #3A9F47 #56C163

Accessibility & contrast

On white

5.91
#2A7233 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.55
#2A7233 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2A7233
5.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A7233#FFFFFF#000000##FFFFFF
##2A72331.005.913.555.91
#FFFFFF5.911.0021.001.00
#0000003.5521.001.0021.00
##FFFFFF5.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#74682D
Deuteranopia (green-blind)
#6B6238
Tritanopia (blue-blind)
#1A6F64
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #2a7233;
/* rgb */ color: rgb(42, 114, 51);
/* oklch */ color: oklch(49.1% 0.120 145.7);
Tailwind
colors: {
  custom: {
    50: '#6c9b6c',
    500: '#2a7233',
    950: '#000000',
  },
}
SCSS
$custom: #2a7233;
$custom-light: #6c9b6c;
$custom-dark: #000000;
JSON
{
  "hex": "#2a7233",
  "rgb": {
    "r": 42,
    "g": 114,
    "b": 51
  },
  "hsl": {
    "h": 127.5,
    "s": 46.154,
    "l": 30.588
  },
  "oklch": {
    "l": 0.49117,
    "c": 0.12002,
    "h": 145.7
  },
  "luminance": 0.12766
}

Semantic roles & 50–950 ramp

primary
#2A7233
secondary
#A4549A
accent
#52C5D6
background
#F6F9F6
surface
#ECF2EB
border
#C7CCC6
text
#070E07
muted
#7A7E7A

Preview Lab

Preview with #2A7233

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

Preview Lab → · Contrast checker → · Palette generator →

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