#2F8538#2F8538

#2F8538 is a mid, vivid green. Relative luminance 0.177; OKLCH L 54.7% C 0.140 H 145.1°. Best body text is #FFFFFF at 4.63:1 contrast (WCAG AA passes).

Color values

HEX#2F8538
RGBrgb(47, 133, 56)
HSLhsl(126, 48%, 35%)
HSVhsv(126, 65%, 52%)
CMYKcmyk(64.7%, 0%, 57.9%, 47.8%)
CIE-LABlab(49.09, -42.37, 33.62)
CIE-LCHlch(49.09, 54.09, 141.57°)
OKLaboklab(54.69% -0.1147 0.08)
OKLCHoklch(54.69% 0.14 145.1)
XYZxyz(10.2730, 17.6639, 6.6087)
Luminance0.1767 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F8538 #852F7C
analogous
#51852F #2F8538 #2F8563
triadic
#2F8538 #382F85 #85382F
tetradic
#2F8538 #2F5185 #852F7C #85632F
square
#2F8538 #2F5185 #852F7C #85632F
split-complementary
#2F8538 #632F85 #852F51
monochromatic
#0F2B12 #1F5825 #2F8538 #3FB24B #66C970

Accessibility & contrast

On white

4.63
#2F8538 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.53
#2F8538 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #2F8538
4.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F8538#FFFFFF#000000##FFFFFF
##2F85381.004.634.534.63
#FFFFFF4.631.0021.001.00
#0000004.5321.001.0021.00
##FFFFFF4.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#877931
Deuteranopia (green-blind)
#7C723E
Tritanopia (blue-blind)
#1A8274
Achromatopsia (no color)
#757575

Design tokens & code

CSS
--color: #2f8538;
/* rgb */ color: rgb(47, 133, 56);
/* oklch */ color: oklch(54.7% 0.140 145.1);
Tailwind
colors: {
  custom: {
    50: '#72a971',
    500: '#2f8538',
    950: '#000000',
  },
}
SCSS
$custom: #2f8538;
$custom-light: #72a971;
$custom-dark: #000000;
JSON
{
  "hex": "#2f8538",
  "rgb": {
    "r": 47,
    "g": 133,
    "b": 56
  },
  "hsl": {
    "h": 126.279,
    "s": 47.778,
    "l": 35.294
  },
  "oklch": {
    "l": 0.54689,
    "c": 0.13981,
    "h": 145.1
  },
  "luminance": 0.17665
}

Semantic roles & 50–950 ramp

primary
#2F8538
secondary
#B060A7
accent
#50C9D7
background
#F7FAF6
surface
#EDF4EC
border
#C8CEC7
text
#091008
muted
#7B7F7B

Preview Lab

Preview with #2F8538

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

Preview Lab → · Contrast checker → · Palette generator →

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