#2F8257#2F8257

#2F8257 is a mid, moderate green. Relative luminance 0.173; OKLCH L 54.4% C 0.105 H 157.3°. Best body text is #FFFFFF at 4.72:1 contrast (WCAG AA passes).

Color values

HEX#2F8257
RGBrgb(47, 130, 87)
HSLhsl(149, 47%, 35%)
HSVhsv(149, 64%, 51%)
CMYKcmyk(63.8%, 0%, 33.1%, 49%)
CIE-LABlab(48.58, -35.64, 16.07)
CIE-LCHlch(48.58, 39.09, 155.73°)
OKLaboklab(54.44% -0.097 0.0406)
OKLCHoklch(54.44% 0.105 157.3)
XYZxyz(10.8743, 17.2566, 11.7728)
Luminance0.1726 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F8257 #822F5A
analogous
#30822F #2F8257 #2F8281
triadic
#2F8257 #572F82 #82572F
tetradic
#2F8257 #2F3082 #822F5A #82812F
square
#2F8257 #2F3082 #822F5A #82812F
split-complementary
#2F8257 #812F82 #822F30
monochromatic
#0E281B #1F5539 #2F8257 #3FAF75 #64C794

Accessibility & contrast

On white

4.72
#2F8257 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.45
#2F8257 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2F8257
4.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F8257#FFFFFF#000000##FFFFFF
##2F82571.004.724.454.72
#FFFFFF4.721.0021.001.00
#0000004.4521.001.0021.00
##FFFFFF4.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#817854
Deuteranopia (green-blind)
#76705A
Tritanopia (blue-blind)
#058177
Achromatopsia (no color)
#737373

Design tokens & code

CSS
--color: #2f8257;
/* rgb */ color: rgb(47, 130, 87);
/* oklch */ color: oklch(54.4% 0.105 157.3);
Tailwind
colors: {
  custom: {
    50: '#71a786',
    500: '#2f8257',
    950: '#000000',
  },
}
SCSS
$custom: #2f8257;
$custom-light: #71a786;
$custom-dark: #000000;
JSON
{
  "hex": "#2f8257",
  "rgb": {
    "r": 47,
    "g": 130,
    "b": 87
  },
  "hsl": {
    "h": 148.916,
    "s": 46.893,
    "l": 34.706
  },
  "oklch": {
    "l": 0.54437,
    "c": 0.10516,
    "h": 157.3
  },
  "luminance": 0.17258
}

Semantic roles & 50–950 ramp

primary
#2F8257
secondary
#AE5F88
accent
#5196D7
background
#F7FAF8
surface
#EDF4EF
border
#C8CECA
text
#080F0B
muted
#7B7F7C

Preview Lab

Preview with #2F8257

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

Preview Lab → · Contrast checker → · Palette generator →

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