#2F8312#2F8312

#2F8312 is a mid, vivid green. Relative luminance 0.169; OKLCH L 53.8% C 0.163 H 139.6°. Best body text is #FFFFFF at 4.80:1 contrast (WCAG AA passes).

Color values

HEX#2F8312
RGBrgb(47, 131, 18)
HSLhsl(105, 76%, 29%)
HSVhsv(105, 86%, 51%)
CMYKcmyk(64.1%, 0%, 86.3%, 48.6%)
CIE-LABlab(48.11, -45.13, 47.96)
CIE-LCHlch(48.11, 65.85, 133.26°)
OKLaboklab(53.78% -0.1241 0.1055)
OKLCHoklch(53.78% 0.163 139.6)
XYZxyz(9.3974, 16.8797, 3.3350)
Luminance0.1688 (WCAG relative)
Temperaturewarm
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F8312 #661283
analogous
#688312 #2F8312 #12832E
triadic
#2F8312 #122F83 #83122F
tetradic
#2F8312 #126883 #661283 #832E12
square
#2F8312 #126883 #661283 #832E12
split-complementary
#2F8312 #2E1283 #831268
monochromatic
#0A1B04 #1C4D0B #2F8312 #42B919 #5CE22D

Accessibility & contrast

On white

4.80
#2F8312 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.38
#2F8312 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2F8312
4.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F8312#FFFFFF#000000##FFFFFF
##2F83121.004.804.384.80
#FFFFFF4.801.0021.001.00
#0000004.3821.001.0021.00
##FFFFFF4.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#877600
Deuteranopia (green-blind)
#7D7021
Tritanopia (blue-blind)
#237E6F
Achromatopsia (no color)
#727272

Design tokens & code

CSS
--color: #2f8312;
/* rgb */ color: rgb(47, 131, 18);
/* oklch */ color: oklch(53.8% 0.163 139.6);
Tailwind
colors: {
  custom: {
    50: '#74a85c',
    500: '#2f8312',
    950: '#000000',
  },
}
SCSS
$custom: #2f8312;
$custom-light: #74a85c;
$custom-dark: #000000;
JSON
{
  "hex": "#2f8312",
  "rgb": {
    "r": 47,
    "g": 131,
    "b": 18
  },
  "hsl": {
    "h": 104.602,
    "s": 75.839,
    "l": 29.216
  },
  "oklch": {
    "l": 0.53784,
    "c": 0.16293,
    "h": 139.6
  },
  "luminance": 0.16881
}

Semantic roles & 50–950 ramp

primary
#2F8312
secondary
#9838B8
accent
#35F2C2
background
#F7FAF5
surface
#EDF4E9
border
#C8CEC5
text
#091005
muted
#7B7F79

Preview Lab

Preview with #2F8312

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

Preview Lab → · Contrast checker → · Palette generator →

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