#308F21#308F21

#308F21 is a mid, vivid green. Relative luminance 0.204; OKLCH L 57.3% C 0.169 H 141.2°. Best body text is #000000 at 5.08:1 contrast (WCAG AA passes).

Color values

HEX#308F21
RGBrgb(48, 143, 33)
HSLhsl(112, 63%, 35%)
HSVhsv(112, 77%, 56%)
CMYKcmyk(66.4%, 0%, 76.9%, 43.9%)
CIE-LABlab(52.27, -48.28, 47.16)
CIE-LCHlch(52.27, 67.50, 135.67°)
OKLaboklab(57.26% -0.1319 0.1061)
OKLCHoklch(57.26% 0.169 141.2)
XYZxyz(11.3153, 20.3820, 4.7764)
Luminance0.2038 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#308F21 #80218F
analogous
#678F21 #308F21 #218F49
triadic
#308F21 #21308F #8F2130
tetradic
#308F21 #21678F #80218F #8F4921
square
#308F21 #21678F #80218F #8F4921
split-complementary
#308F21 #49218F #8F2167
monochromatic
#0F2C0A #1F5D16 #308F21 #41C12C #65D753

Accessibility & contrast

On white

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

On black

5.08
#308F21 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #308F21
5.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##308F21#FFFFFF#000000##000000
##308F211.004.145.085.08
#FFFFFF4.141.0021.0021.00
#0000005.0821.001.001.00
##0000005.0821.001.001.00

Color blindness preview

Protanopia (red-blind)
#938109
Deuteranopia (green-blind)
#877A2D
Tritanopia (blue-blind)
#1E8A7A
Achromatopsia (no color)
#7D7D7D

Design tokens & code

CSS
--color: #308f21;
/* rgb */ color: rgb(48, 143, 33);
/* oklch */ color: oklch(57.3% 0.169 141.2);
Tailwind
colors: {
  custom: {
    50: '#76b165',
    500: '#308f21',
    950: '#000000',
  },
}
SCSS
$custom: #308f21;
$custom-light: #76b165;
$custom-dark: #000000;
JSON
{
  "hex": "#308f21",
  "rgb": {
    "r": 48,
    "g": 143,
    "b": 33
  },
  "hsl": {
    "h": 111.818,
    "s": 62.5,
    "l": 34.51
  },
  "oklch": {
    "l": 0.57261,
    "c": 0.16928,
    "h": 141.2
  },
  "luminance": 0.20383
}

Semantic roles & 50–950 ramp

primary
#308F21
secondary
#AC51BB
accent
#42E6CF
background
#F7FBF6
surface
#EEF6EB
border
#C9D0C6
text
#0A1106
muted
#7C807A

Preview Lab

Preview with #308F21

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

Preview Lab → · Contrast checker → · Palette generator →

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