#308C2F#308C2F

#308C2F is a mid, vivid green. Relative luminance 0.196; OKLCH L 56.6% C 0.156 H 143.0°. Best body text is #000000 at 4.92:1 contrast (WCAG AA passes).

Color values

HEX#308C2F
RGBrgb(48, 140, 47)
HSLhsl(119, 50%, 37%)
HSVhsv(119, 66%, 55%)
CMYKcmyk(65.7%, 0%, 66.4%, 45.1%)
CIE-LABlab(51.37, -45.92, 40.54)
CIE-LCHlch(51.37, 61.25, 138.56°)
OKLaboklab(56.55% -0.1247 0.094)
OKLCHoklch(56.55% 0.156 143)
XYZxyz(11.1095, 19.5887, 5.8843)
Luminance0.1959 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#308C2F #8B2F8C
analogous
#5F8C2F #308C2F #2F8C5D
triadic
#308C2F #2F308C #8C2F30
tetradic
#308C2F #2F5F8C #8B2F8C #8C5D2F
square
#308C2F #2F5F8C #8B2F8C #8C5D2F
split-complementary
#308C2F #5D2F8C #8C2F5F
monochromatic
#113010 #205E20 #308C2F #40BA3E #6ACD69

Accessibility & contrast

On white

4.27
#308C2F on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.92
#308C2F on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #308C2F
4.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##308C2F#FFFFFF#000000##000000
##308C2F1.004.274.924.92
#FFFFFF4.271.0021.0021.00
#0000004.9221.001.001.00
##0000004.9221.001.001.00

Color blindness preview

Protanopia (red-blind)
#8F7F23
Deuteranopia (green-blind)
#847737
Tritanopia (blue-blind)
#1C8879
Achromatopsia (no color)
#7A7A7A

Design tokens & code

CSS
--color: #308c2f;
/* rgb */ color: rgb(48, 140, 47);
/* oklch */ color: oklch(56.6% 0.156 143.0);
Tailwind
colors: {
  custom: {
    50: '#74ae6c',
    500: '#308c2f',
    950: '#000000',
  },
}
SCSS
$custom: #308c2f;
$custom-light: #74ae6c;
$custom-dark: #000000;
JSON
{
  "hex": "#308c2f",
  "rgb": {
    "r": 48,
    "g": 140,
    "b": 47
  },
  "hsl": {
    "h": 119.355,
    "s": 49.733,
    "l": 36.667
  },
  "oklch": {
    "l": 0.56552,
    "c": 0.15618,
    "h": 143
  },
  "luminance": 0.1959
}

Semantic roles & 50–950 ramp

primary
#308C2F
secondary
#B363B4
accent
#4FD9D8
background
#F7FAF6
surface
#EDF4EB
border
#C8CEC6
text
#091007
muted
#7B7F7A

Preview Lab

Preview with #308C2F

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

Preview Lab → · Contrast checker → · Palette generator →

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