#2F8528#2F8528

#2F8528 is a mid, vivid green. Relative luminance 0.175; OKLCH L 54.5% C 0.153 H 142.1°. Best body text is #FFFFFF at 4.66:1 contrast (WCAG AA passes).

Color values

HEX#2F8528
RGBrgb(47, 133, 40)
HSLhsl(115, 54%, 34%)
HSVhsv(115, 70%, 52%)
CMYKcmyk(64.7%, 0%, 69.9%, 47.8%)
CIE-LABlab(48.92, -44.25, 40.96)
CIE-LCHlch(48.92, 60.30, 137.22°)
OKLaboklab(54.5% -0.1206 0.094)
OKLCHoklch(54.5% 0.153 142.1)
XYZxyz(9.9423, 17.5316, 4.8671)
Luminance0.1753 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F8528 #7E2885
analogous
#5E8528 #2F8528 #288550
triadic
#2F8528 #282F85 #85282F
tetradic
#2F8528 #285E85 #7E2885 #855028
square
#2F8528 #285E85 #7E2885 #855028
split-complementary
#2F8528 #502885 #85285E
monochromatic
#0E270C #1E561A #2F8528 #40B436 #63CD5A

Accessibility & contrast

On white

4.66
#2F8528 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.51
#2F8528 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #2F8528
4.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F8528#FFFFFF#000000##FFFFFF
##2F85281.004.664.514.66
#FFFFFF4.661.0021.001.00
#0000004.5121.001.0021.00
##FFFFFF4.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#88791B
Deuteranopia (green-blind)
#7E7231
Tritanopia (blue-blind)
#1F8172
Achromatopsia (no color)
#747474

Design tokens & code

CSS
--color: #2f8528;
/* rgb */ color: rgb(47, 133, 40);
/* oklch */ color: oklch(54.5% 0.153 142.1);
Tailwind
colors: {
  custom: {
    50: '#73a967',
    500: '#2f8528',
    950: '#000000',
  },
}
SCSS
$custom: #2f8528;
$custom-light: #73a967;
$custom-dark: #000000;
JSON
{
  "hex": "#2f8528",
  "rgb": {
    "r": 47,
    "g": 133,
    "b": 40
  },
  "hsl": {
    "h": 115.484,
    "s": 53.757,
    "l": 33.922
  },
  "oklch": {
    "l": 0.54502,
    "c": 0.15291,
    "h": 142.1
  },
  "luminance": 0.17533
}

Semantic roles & 50–950 ramp

primary
#2F8528
secondary
#AC56B3
accent
#4BDDD2
background
#F7FAF6
surface
#EDF4EB
border
#C8CEC6
text
#091006
muted
#7B7F7A

Preview Lab

Preview with #2F8528

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

Preview Lab → · Contrast checker → · Palette generator →

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