#2F8545#2F8545

#2F8545 is a mid, vivid green. Relative luminance 0.178; OKLCH L 54.9% C 0.127 H 148.8°. Best body text is #FFFFFF at 4.60:1 contrast (WCAG AA passes).

Color values

HEX#2F8545
RGBrgb(47, 133, 69)
HSLhsl(135, 48%, 35%)
HSVhsv(135, 65%, 52%)
CMYKcmyk(64.7%, 0%, 48.1%, 47.8%)
CIE-LABlab(49.26, -40.38, 27.02)
CIE-LCHlch(49.26, 48.59, 146.21°)
OKLaboklab(54.89% -0.109 0.066)
OKLCHoklch(54.89% 0.127 148.8)
XYZxyz(10.6332, 17.8080, 8.5060)
Luminance0.1781 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F8545 #852F6F
analogous
#44852F #2F8545 #2F8570
triadic
#2F8545 #452F85 #85452F
tetradic
#2F8545 #2F4485 #852F6F #85702F
square
#2F8545 #2F4485 #852F6F #85702F
split-complementary
#2F8545 #702F85 #852F44
monochromatic
#0F2B16 #1F582E #2F8545 #3FB25C #66C97F

Accessibility & contrast

On white

4.60
#2F8545 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.56
#2F8545 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #2F8545
4.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F8545#FFFFFF#000000##FFFFFF
##2F85451.004.604.564.60
#FFFFFF4.601.0021.001.00
#0000004.5621.001.0021.00
##FFFFFF4.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#867A40
Deuteranopia (green-blind)
#7B7249
Tritanopia (blue-blind)
#148276
Achromatopsia (no color)
#757575

Design tokens & code

CSS
--color: #2f8545;
/* rgb */ color: rgb(47, 133, 69);
/* oklch */ color: oklch(54.9% 0.127 148.8);
Tailwind
colors: {
  custom: {
    50: '#72a97a',
    500: '#2f8545',
    950: '#000000',
  },
}
SCSS
$custom: #2f8545;
$custom-light: #72a97a;
$custom-dark: #000000;
JSON
{
  "hex": "#2f8545",
  "rgb": {
    "r": 47,
    "g": 133,
    "b": 69
  },
  "hsl": {
    "h": 135.349,
    "s": 47.778,
    "l": 35.294
  },
  "oklch": {
    "l": 0.54892,
    "c": 0.12746,
    "h": 148.8
  },
  "luminance": 0.17809
}

Semantic roles & 50–950 ramp

primary
#2F8545
secondary
#B0609B
accent
#50B5D7
background
#F7FAF7
surface
#EDF4ED
border
#C8CEC8
text
#081009
muted
#7B7F7B

Preview Lab

Preview with #2F8545

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

Preview Lab → · Contrast checker → · Palette generator →

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