#30871F#30871F

#30871F is a mid, vivid green. Relative luminance 0.181; OKLCH L 55.0% C 0.161 H 140.8°. Best body text is #000000 at 4.61:1 contrast (WCAG AA passes).

Color values

HEX#30871F
RGBrgb(48, 135, 31)
HSLhsl(110, 63%, 33%)
HSVhsv(110, 77%, 53%)
CMYKcmyk(64.4%, 0%, 77%, 47.1%)
CIE-LABlab(49.56, -45.54, 45.21)
CIE-LCHlch(49.56, 64.17, 135.21°)
OKLaboklab(55.02% -0.1246 0.1017)
OKLCHoklch(55.02% 0.161 140.8)
XYZxyz(10.1297, 18.0543, 4.2471)
Luminance0.1805 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#30871F #761F87
analogous
#64871F #30871F #1F8742
triadic
#30871F #1F3087 #871F30
tetradic
#30871F #1F6487 #761F87 #87421F
square
#30871F #1F6487 #761F87 #87421F
split-complementary
#30871F #421F87 #871F64
monochromatic
#0D2308 #1E5514 #30871F #42B92A #61D64B

Accessibility & contrast

On white

4.55
#30871F on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.61
#30871F on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #30871F
4.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##30871F#FFFFFF#000000##000000
##30871F1.004.554.614.61
#FFFFFF4.551.0021.0021.00
#0000004.6121.001.001.00
##0000004.6121.001.001.00

Color blindness preview

Protanopia (red-blind)
#8B7A09
Deuteranopia (green-blind)
#80732A
Tritanopia (blue-blind)
#228373
Achromatopsia (no color)
#767676

Design tokens & code

CSS
--color: #30871f;
/* rgb */ color: rgb(48, 135, 31);
/* oklch */ color: oklch(55.0% 0.161 140.8);
Tailwind
colors: {
  custom: {
    50: '#74ab62',
    500: '#30871f',
    950: '#000000',
  },
}
SCSS
$custom: #30871f;
$custom-light: #74ab62;
$custom-dark: #000000;
JSON
{
  "hex": "#30871f",
  "rgb": {
    "r": 48,
    "g": 135,
    "b": 31
  },
  "hsl": {
    "h": 110.192,
    "s": 62.651,
    "l": 32.549
  },
  "oklch": {
    "l": 0.55017,
    "c": 0.16085,
    "h": 140.8
  },
  "luminance": 0.18055
}

Semantic roles & 50–950 ramp

primary
#30871F
secondary
#A64AB8
accent
#42E6CB
background
#F7FAF6
surface
#EDF4EB
border
#C8CEC6
text
#091005
muted
#7B7F7A

Preview Lab

Preview with #30871F

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

Preview Lab → · Contrast checker → · Palette generator →

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