#30971F#30971F

#30971F is a mid, vivid green. Relative luminance 0.229; OKLCH L 59.5% C 0.180 H 141.2°. Best body text is #000000 at 5.57:1 contrast (WCAG AA passes).

Color values

HEX#30971F
RGBrgb(48, 151, 31)
HSLhsl(112, 66%, 36%)
HSVhsv(112, 79%, 59%)
CMYKcmyk(68.2%, 0%, 79.5%, 40.8%)
CIE-LABlab(54.93, -51.23, 50.44)
CIE-LCHlch(54.93, 71.90, 135.45°)
OKLaboklab(59.46% -0.14 0.1126)
OKLCHoklch(59.46% 0.18 141.2)
XYZxyz(12.5322, 22.8592, 5.0479)
Luminance0.2286 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#30971F #861F97
analogous
#6C971F #30971F #1F974A
triadic
#30971F #1F3097 #971F30
tetradic
#30971F #1F6C97 #861F97 #974A1F
square
#30971F #1F6C97 #861F97 #974A1F
split-complementary
#30971F #4A1F97 #971F6C
monochromatic
#10310A #206415 #30971F #40CA29 #68DC54

Accessibility & contrast

On white

3.77
#30971F on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.57
#30971F on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #30971F
5.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##30971F#FFFFFF#000000##000000
##30971F1.003.775.575.57
#FFFFFF3.771.0021.0021.00
#0000005.5721.001.001.00
##0000005.5721.001.001.00

Color blindness preview

Protanopia (red-blind)
#9B8800
Deuteranopia (green-blind)
#8F802D
Tritanopia (blue-blind)
#1B9281
Achromatopsia (no color)
#838383

Design tokens & code

CSS
--color: #30971f;
/* rgb */ color: rgb(48, 151, 31);
/* oklch */ color: oklch(59.5% 0.180 141.2);
Tailwind
colors: {
  custom: {
    50: '#78b765',
    500: '#30971f',
    950: '#000000',
  },
}
SCSS
$custom: #30971f;
$custom-light: #78b765;
$custom-dark: #000000;
JSON
{
  "hex": "#30971f",
  "rgb": {
    "r": 48,
    "g": 151,
    "b": 31
  },
  "hsl": {
    "h": 111.5,
    "s": 65.934,
    "l": 35.686
  },
  "oklch": {
    "l": 0.59462,
    "c": 0.17966,
    "h": 141.2
  },
  "luminance": 0.22861
}

Semantic roles & 50–950 ramp

primary
#30971F
secondary
#B052BF
accent
#3FE9D1
background
#F7FBF6
surface
#EEF6EB
border
#C9D0C6
text
#0A1106
muted
#7C807A

Preview Lab

Preview with #30971F

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

Preview Lab → · Contrast checker → · Palette generator →

#30971F Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva