#30871B#30871B

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

Color values

HEX#30871B
RGBrgb(48, 135, 27)
HSLhsl(108, 67%, 32%)
HSVhsv(108, 80%, 53%)
CMYKcmyk(64.4%, 0%, 80%, 47.1%)
CIE-LABlab(49.54, -45.82, 46.59)
CIE-LCHlch(49.54, 65.34, 134.52°)
OKLaboklab(54.99% -0.1256 0.104)
OKLCHoklch(54.99% 0.163 140.4)
XYZxyz(10.0802, 18.0345, 3.9865)
Luminance0.1804 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#30871B #721B87
analogous
#66871B #30871B #1B873C
triadic
#30871B #1B3087 #871B30
tetradic
#30871B #1B6687 #721B87 #873C1B
square
#30871B #1B6687 #721B87 #873C1B
split-complementary
#30871B #3C1B87 #871B66
monochromatic
#0C2107 #1E5411 #30871B #42BA25 #60D943

Accessibility & contrast

On white

4.56
#30871B on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

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

Contrast matrix

fg \ bg##30871B#FFFFFF#000000##000000
##30871B1.004.564.614.61
#FFFFFF4.561.0021.0021.00
#0000004.6121.001.001.00
##0000004.6121.001.001.00

Color blindness preview

Protanopia (red-blind)
#8B7A00
Deuteranopia (green-blind)
#807327
Tritanopia (blue-blind)
#238273
Achromatopsia (no color)
#767676

Design tokens & code

CSS
--color: #30871b;
/* rgb */ color: rgb(48, 135, 27);
/* oklch */ color: oklch(55.0% 0.163 140.4);
Tailwind
colors: {
  custom: {
    50: '#74ab61',
    500: '#30871b',
    950: '#000000',
  },
}
SCSS
$custom: #30871b;
$custom-light: #74ab61;
$custom-dark: #000000;
JSON
{
  "hex": "#30871b",
  "rgb": {
    "r": 48,
    "g": 135,
    "b": 27
  },
  "hsl": {
    "h": 108.333,
    "s": 66.667,
    "l": 31.765
  },
  "oklch": {
    "l": 0.5499,
    "c": 0.16306,
    "h": 140.4
  },
  "luminance": 0.18035
}

Semantic roles & 50–950 ramp

primary
#30871B
secondary
#A344BA
accent
#3EEAC8
background
#F7FAF6
surface
#EEF4EB
border
#C9CEC6
text
#091005
muted
#7B7F7A

Preview Lab

Preview with #30871B

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

Preview Lab → · Contrast checker → · Palette generator →

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