#308D21#308D21

#308D21 is a mid, vivid green. Relative luminance 0.198; OKLCH L 56.7% C 0.167 H 141.2°. Best body text is #000000 at 4.96:1 contrast (WCAG AA passes).

Color values

HEX#308D21
RGBrgb(48, 141, 33)
HSLhsl(112, 62%, 34%)
HSVhsv(112, 77%, 55%)
CMYKcmyk(66%, 0%, 76.6%, 44.7%)
CIE-LABlab(51.60, -47.57, 46.50)
CIE-LCHlch(51.60, 66.52, 135.65°)
OKLaboklab(56.71% -0.13 0.1047)
OKLCHoklch(56.71% 0.167 141.2)
XYZxyz(11.0177, 19.7868, 4.6772)
Luminance0.1979 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#308D21 #7E218D
analogous
#668D21 #308D21 #218D48
triadic
#308D21 #21308D #8D2130
tetradic
#308D21 #21668D #7E218D #8D4821
square
#308D21 #21668D #7E218D #8D4821
split-complementary
#308D21 #48218D #8D2166
monochromatic
#0E2A0A #1F5B15 #308D21 #41BF2D #64D652

Accessibility & contrast

On white

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

On black

4.96
#308D21 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #308D21
4.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##308D21#FFFFFF#000000##000000
##308D211.004.244.964.96
#FFFFFF4.241.0021.0021.00
#0000004.9621.001.001.00
##0000004.9621.001.001.00

Color blindness preview

Protanopia (red-blind)
#91800A
Deuteranopia (green-blind)
#86782D
Tritanopia (blue-blind)
#1F8878
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #308d21;
/* rgb */ color: rgb(48, 141, 33);
/* oklch */ color: oklch(56.7% 0.167 141.2);
Tailwind
colors: {
  custom: {
    50: '#75af64',
    500: '#308d21',
    950: '#000000',
  },
}
SCSS
$custom: #308d21;
$custom-light: #75af64;
$custom-dark: #000000;
JSON
{
  "hex": "#308d21",
  "rgb": {
    "r": 48,
    "g": 141,
    "b": 33
  },
  "hsl": {
    "h": 111.667,
    "s": 62.069,
    "l": 34.118
  },
  "oklch": {
    "l": 0.56705,
    "c": 0.1669,
    "h": 141.2
  },
  "luminance": 0.19788
}

Semantic roles & 50–950 ramp

primary
#308D21
secondary
#AB50BA
accent
#43E5CF
background
#F7FAF6
surface
#EEF5EB
border
#C9CFC6
text
#091006
muted
#7B7F7A

Preview Lab

Preview with #308D21

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

Preview Lab → · Contrast checker → · Palette generator →

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