#308817#308817

#308817 is a mid, vivid green. Relative luminance 0.183; OKLCH L 55.2% C 0.166 H 140.1°. Best body text is #000000 at 4.66:1 contrast (WCAG AA passes).

Color values

HEX#308817
RGBrgb(48, 136, 23)
HSLhsl(107, 71%, 31%)
HSVhsv(107, 83%, 53%)
CMYKcmyk(64.7%, 0%, 83.1%, 46.7%)
CIE-LABlab(49.86, -46.43, 48.15)
CIE-LCHlch(49.86, 66.89, 133.96°)
OKLaboklab(55.25% -0.1275 0.1067)
OKLCHoklch(55.25% 0.166 140.1)
XYZxyz(10.1773, 18.2976, 3.8059)
Luminance0.1830 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#308817 #6F1788
analogous
#688817 #308817 #178836
triadic
#308817 #173088 #881730
tetradic
#308817 #176888 #6F1788 #883617
square
#308817 #176888 #6F1788 #883617
split-complementary
#308817 #361788 #881768
monochromatic
#0B1F05 #1E540E #308817 #42BC20 #5FDE3B

Accessibility & contrast

On white

4.51
#308817 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.66
#308817 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #308817
4.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##308817#FFFFFF#000000##000000
##3088171.004.514.664.66
#FFFFFF4.511.0021.0021.00
#0000004.6621.001.001.00
##0000004.6621.001.001.00

Color blindness preview

Protanopia (red-blind)
#8C7B00
Deuteranopia (green-blind)
#817425
Tritanopia (blue-blind)
#238373
Achromatopsia (no color)
#777777

Design tokens & code

CSS
--color: #308817;
/* rgb */ color: rgb(48, 136, 23);
/* oklch */ color: oklch(55.2% 0.166 140.1);
Tailwind
colors: {
  custom: {
    50: '#75ac5f',
    500: '#308817',
    950: '#000000',
  },
}
SCSS
$custom: #308817;
$custom-light: #75ac5f;
$custom-dark: #000000;
JSON
{
  "hex": "#308817",
  "rgb": {
    "r": 48,
    "g": 136,
    "b": 23
  },
  "hsl": {
    "h": 106.726,
    "s": 71.069,
    "l": 31.176
  },
  "oklch": {
    "l": 0.55246,
    "c": 0.16621,
    "h": 140.1
  },
  "luminance": 0.18299
}

Semantic roles & 50–950 ramp

primary
#308817
secondary
#A03FBC
accent
#3AEEC6
background
#F7FAF5
surface
#EEF4EA
border
#C9CEC6
text
#091005
muted
#7B7F79

Preview Lab

Preview with #308817

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

Preview Lab → · Contrast checker → · Palette generator →

#308817 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva