#2F8521#2F8521

#2F8521 is a mid, vivid green. Relative luminance 0.175; OKLCH L 54.4% C 0.158 H 141.1°. Best body text is #FFFFFF at 4.67:1 contrast (WCAG AA passes).

Color values

HEX#2F8521
RGBrgb(47, 133, 33)
HSLhsl(112, 60%, 33%)
HSVhsv(112, 75%, 52%)
CMYKcmyk(64.7%, 0%, 75.2%, 47.8%)
CIE-LABlab(48.87, -44.88, 43.76)
CIE-LCHlch(48.87, 62.68, 135.73°)
OKLaboklab(54.44% -0.1227 0.099)
OKLCHoklch(54.44% 0.158 141.1)
XYZxyz(9.8338, 17.4882, 4.2959)
Luminance0.1749 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F8521 #772185
analogous
#618521 #2F8521 #218545
triadic
#2F8521 #212F85 #85212F
tetradic
#2F8521 #216185 #772185 #854521
square
#2F8521 #216185 #772185 #854521
split-complementary
#2F8521 #452185 #852161
monochromatic
#0C2309 #1E5415 #2F8521 #40B62D #60D34D

Accessibility & contrast

On white

4.67
#2F8521 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.50
#2F8521 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #2F8521
4.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F8521#FFFFFF#000000##FFFFFF
##2F85211.004.674.504.67
#FFFFFF4.671.0021.001.00
#0000004.5021.001.0021.00
##FFFFFF4.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#88780F
Deuteranopia (green-blind)
#7E712B
Tritanopia (blue-blind)
#218172
Achromatopsia (no color)
#747474

Design tokens & code

CSS
--color: #2f8521;
/* rgb */ color: rgb(47, 133, 33);
/* oklch */ color: oklch(54.4% 0.158 141.1);
Tailwind
colors: {
  custom: {
    50: '#73a963',
    500: '#2f8521',
    950: '#000000',
  },
}
SCSS
$custom: #2f8521;
$custom-light: #73a963;
$custom-dark: #000000;
JSON
{
  "hex": "#2f8521",
  "rgb": {
    "r": 47,
    "g": 133,
    "b": 33
  },
  "hsl": {
    "h": 111.6,
    "s": 60.241,
    "l": 32.549
  },
  "oklch": {
    "l": 0.5444,
    "c": 0.15762,
    "h": 141.1
  },
  "luminance": 0.17489
}

Semantic roles & 50–950 ramp

primary
#2F8521
secondary
#A74CB6
accent
#44E3CD
background
#F7FAF6
surface
#EDF4EB
border
#C8CEC6
text
#091006
muted
#7B7F7A

Preview Lab

Preview with #2F8521

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

Preview Lab → · Contrast checker → · Palette generator →

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