#2F8157#2F8157

#2F8157 is a mid, moderate green. Relative luminance 0.170; OKLCH L 54.2% C 0.104 H 157.6°. Best body text is #FFFFFF at 4.77:1 contrast (WCAG AA passes).

Color values

HEX#2F8157
RGBrgb(47, 129, 87)
HSLhsl(149, 47%, 35%)
HSVhsv(149, 64%, 51%)
CMYKcmyk(63.6%, 0%, 32.6%, 49.4%)
CIE-LABlab(48.25, -35.20, 15.61)
CIE-LCHlch(48.25, 38.51, 156.08°)
OKLaboklab(54.17% -0.0959 0.0395)
OKLCHoklch(54.17% 0.104 157.6)
XYZxyz(10.7419, 16.9919, 11.7286)
Luminance0.1699 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F8157 #812F59
analogous
#30812F #2F8157 #2F8180
triadic
#2F8157 #572F81 #81572F
tetradic
#2F8157 #2F3081 #812F59 #81802F
square
#2F8157 #2F3081 #812F59 #81802F
split-complementary
#2F8157 #802F81 #812F30
monochromatic
#0E271A #1F5439 #2F8157 #3FAE75 #64C694

Accessibility & contrast

On white

4.77
#2F8157 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.40
#2F8157 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2F8157
4.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F8157#FFFFFF#000000##FFFFFF
##2F81571.004.774.404.77
#FFFFFF4.771.0021.001.00
#0000004.4021.001.0021.00
##FFFFFF4.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#807754
Deuteranopia (green-blind)
#756F5A
Tritanopia (blue-blind)
#068076
Achromatopsia (no color)
#737373

Design tokens & code

CSS
--color: #2f8157;
/* rgb */ color: rgb(47, 129, 87);
/* oklch */ color: oklch(54.2% 0.104 157.6);
Tailwind
colors: {
  custom: {
    50: '#71a686',
    500: '#2f8157',
    950: '#000000',
  },
}
SCSS
$custom: #2f8157;
$custom-light: #71a686;
$custom-dark: #000000;
JSON
{
  "hex": "#2f8157",
  "rgb": {
    "r": 47,
    "g": 129,
    "b": 87
  },
  "hsl": {
    "h": 149.268,
    "s": 46.591,
    "l": 34.51
  },
  "oklch": {
    "l": 0.54165,
    "c": 0.10369,
    "h": 157.6
  },
  "luminance": 0.16993
}

Semantic roles & 50–950 ramp

primary
#2F8157
secondary
#AD5E87
accent
#5296D6
background
#F7FAF8
surface
#EDF4EF
border
#C8CECA
text
#080F0B
muted
#7B7F7C

Preview Lab

Preview with #2F8157

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

Preview Lab → · Contrast checker → · Palette generator →

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