#308C21#308C21

#308C21 is a mid, vivid green. Relative luminance 0.195; OKLCH L 56.4% C 0.166 H 141.1°. Best body text is #000000 at 4.90:1 contrast (WCAG AA passes).

Color values

HEX#308C21
RGBrgb(48, 140, 33)
HSLhsl(112, 62%, 34%)
HSVhsv(112, 76%, 55%)
CMYKcmyk(65.7%, 0%, 76.4%, 45.1%)
CIE-LABlab(51.26, -47.21, 46.17)
CIE-LCHlch(51.26, 66.03, 135.64°)
OKLaboklab(56.43% -0.129 0.104)
OKLCHoklch(56.43% 0.166 141.1)
XYZxyz(10.8710, 19.4933, 4.6282)
Luminance0.1949 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#308C21 #7D218C
analogous
#668C21 #308C21 #218C48
triadic
#308C21 #21308C #8C2130
tetradic
#308C21 #21668C #7D218C #8C4821
square
#308C21 #21668C #7D218C #8C4821
split-complementary
#308C21 #48218C #8C2166
monochromatic
#0E290A #1F5A15 #308C21 #41BE2D #64D651

Accessibility & contrast

On white

4.29
#308C21 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.90
#308C21 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #308C21
4.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##308C21#FFFFFF#000000##000000
##308C211.004.294.904.90
#FFFFFF4.291.0021.0021.00
#0000004.9021.001.001.00
##0000004.9021.001.001.00

Color blindness preview

Protanopia (red-blind)
#907F0B
Deuteranopia (green-blind)
#85772C
Tritanopia (blue-blind)
#208777
Achromatopsia (no color)
#7A7A7A

Design tokens & code

CSS
--color: #308c21;
/* rgb */ color: rgb(48, 140, 33);
/* oklch */ color: oklch(56.4% 0.166 141.1);
Tailwind
colors: {
  custom: {
    50: '#75ae64',
    500: '#308c21',
    950: '#000000',
  },
}
SCSS
$custom: #308c21;
$custom-light: #75ae64;
$custom-dark: #000000;
JSON
{
  "hex": "#308c21",
  "rgb": {
    "r": 48,
    "g": 140,
    "b": 33
  },
  "hsl": {
    "h": 111.589,
    "s": 61.85,
    "l": 33.922
  },
  "oklch": {
    "l": 0.56427,
    "c": 0.1657,
    "h": 141.1
  },
  "luminance": 0.19494
}

Semantic roles & 50–950 ramp

primary
#308C21
secondary
#AB4FB9
accent
#43E5CE
background
#F7FAF6
surface
#EEF4EB
border
#C9CEC6
text
#091006
muted
#7B7F7A

Preview Lab

Preview with #308C21

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

Preview Lab → · Contrast checker → · Palette generator →

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