#308F17#308F17

#308F17 is a mid, vivid green. Relative luminance 0.203; OKLCH L 57.2% C 0.174 H 140.3°. Best body text is #000000 at 5.07:1 contrast (WCAG AA passes).

Color values

HEX#308F17
RGBrgb(48, 143, 23)
HSLhsl(108, 72%, 33%)
HSVhsv(108, 84%, 56%)
CMYKcmyk(66.4%, 0%, 83.9%, 43.9%)
CIE-LABlab(52.21, -48.92, 50.33)
CIE-LCHlch(52.21, 70.19, 134.19°)
OKLaboklab(57.2% -0.1342 0.1112)
OKLCHoklch(57.2% 0.174 140.3)
XYZxyz(11.1955, 20.3340, 4.1453)
Luminance0.2034 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#308F17 #76178F
analogous
#6C8F17 #308F17 #178F3A
triadic
#308F17 #17308F #8F1730
tetradic
#308F17 #176C8F #76178F #8F3A17
square
#308F17 #176C8F #76178F #8F3A17
split-complementary
#308F17 #3A178F #8F176C
monochromatic
#0D2606 #1E5A0F #308F17 #42C41F #61E040

Accessibility & contrast

On white

4.14
#308F17 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.07
#308F17 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #308F17
5.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##308F17#FFFFFF#000000##000000
##308F171.004.145.075.07
#FFFFFF4.141.0021.0021.00
#0000005.0721.001.001.00
##0000005.0721.001.001.00

Color blindness preview

Protanopia (red-blind)
#938100
Deuteranopia (green-blind)
#887A26
Tritanopia (blue-blind)
#208A79
Achromatopsia (no color)
#7D7D7D

Design tokens & code

CSS
--color: #308f17;
/* rgb */ color: rgb(48, 143, 23);
/* oklch */ color: oklch(57.2% 0.174 140.3);
Tailwind
colors: {
  custom: {
    50: '#76b160',
    500: '#308f17',
    950: '#000000',
  },
}
SCSS
$custom: #308f17;
$custom-light: #76b160;
$custom-dark: #000000;
JSON
{
  "hex": "#308f17",
  "rgb": {
    "r": 48,
    "g": 143,
    "b": 23
  },
  "hsl": {
    "h": 107.5,
    "s": 72.289,
    "l": 32.549
  },
  "oklch": {
    "l": 0.57199,
    "c": 0.17427,
    "h": 140.3
  },
  "luminance": 0.20335
}

Semantic roles & 50–950 ramp

primary
#308F17
secondary
#A641C1
accent
#39EFC9
background
#F7FBF6
surface
#EEF6EB
border
#C9D0C6
text
#0A1105
muted
#7C807A

Preview Lab

Preview with #308F17

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

Preview Lab → · Contrast checker → · Palette generator →

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