#308D17#308D17

#308D17 is a mid, vivid green. Relative luminance 0.197; OKLCH L 56.6% C 0.172 H 140.3°. Best body text is #000000 at 4.95:1 contrast (WCAG AA passes).

Color values

HEX#308D17
RGBrgb(48, 141, 23)
HSLhsl(107, 72%, 32%)
HSVhsv(107, 84%, 55%)
CMYKcmyk(66%, 0%, 83.7%, 44.7%)
CIE-LABlab(51.54, -48.22, 49.71)
CIE-LCHlch(51.54, 69.25, 134.13°)
OKLaboklab(56.64% -0.1323 0.1099)
OKLCHoklch(56.64% 0.172 140.3)
XYZxyz(10.8979, 19.7389, 4.0461)
Luminance0.1974 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#308D17 #74178D
analogous
#6B8D17 #308D17 #178D39
triadic
#308D17 #17308D #8D1730
tetradic
#308D17 #176B8D #74178D #8D3917
square
#308D17 #176B8D #74178D #8D3917
split-complementary
#308D17 #39178D #8D176B
monochromatic
#0C2406 #1E580E #308D17 #42C220 #61E03F

Accessibility & contrast

On white

4.24
#308D17 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.95
#308D17 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #308D17
4.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##308D17#FFFFFF#000000##000000
##308D171.004.244.954.95
#FFFFFF4.241.0021.0021.00
#0000004.9521.001.001.00
##0000004.9521.001.001.00

Color blindness preview

Protanopia (red-blind)
#917F00
Deuteranopia (green-blind)
#867826
Tritanopia (blue-blind)
#218878
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #308d17;
/* rgb */ color: rgb(48, 141, 23);
/* oklch */ color: oklch(56.6% 0.172 140.3);
Tailwind
colors: {
  custom: {
    50: '#76af60',
    500: '#308d17',
    950: '#000000',
  },
}
SCSS
$custom: #308d17;
$custom-light: #76af60;
$custom-dark: #000000;
JSON
{
  "hex": "#308d17",
  "rgb": {
    "r": 48,
    "g": 141,
    "b": 23
  },
  "hsl": {
    "h": 107.288,
    "s": 71.951,
    "l": 32.157
  },
  "oklch": {
    "l": 0.56642,
    "c": 0.17199,
    "h": 140.3
  },
  "luminance": 0.1974
}

Semantic roles & 50–950 ramp

primary
#308D17
secondary
#A540C0
accent
#39EFC8
background
#F7FAF5
surface
#EEF5EA
border
#C9CFC6
text
#0A1005
muted
#7C7F79

Preview Lab

Preview with #308D17

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

Preview Lab → · Contrast checker → · Palette generator →

#308D17 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva