#308C2D#308C2D

#308C2D is a mid, vivid green. Relative luminance 0.196; OKLCH L 56.5% C 0.158 H 142.7°. Best body text is #000000 at 4.91:1 contrast (WCAG AA passes).

Color values

HEX#308C2D
RGBrgb(48, 140, 45)
HSLhsl(118, 51%, 36%)
HSVhsv(118, 68%, 55%)
CMYKcmyk(65.7%, 0%, 67.9%, 45.1%)
CIE-LABlab(51.35, -46.13, 41.41)
CIE-LCHlch(51.35, 61.99, 138.09°)
OKLaboklab(56.53% -0.1254 0.0956)
OKLCHoklch(56.53% 0.158 142.7)
XYZxyz(11.0700, 19.5729, 5.6767)
Luminance0.1957 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#308C2D #892D8C
analogous
#608C2D #308C2D #2D8C5A
triadic
#308C2D #2D308C #8C2D30
tetradic
#308C2D #2D608C #892D8C #8C5A2D
square
#308C2D #2D608C #892D8C #8C5A2D
split-complementary
#308C2D #5A2D8C #8C2D60
monochromatic
#102F0F #205E1E #308C2D #40BA3C #69CE66

Accessibility & contrast

On white

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

On black

4.91
#308C2D on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #308C2D
4.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##308C2D#FFFFFF#000000##000000
##308C2D1.004.274.914.91
#FFFFFF4.271.0021.0021.00
#0000004.9121.001.001.00
##0000004.9121.001.001.00

Color blindness preview

Protanopia (red-blind)
#8F7F21
Deuteranopia (green-blind)
#847736
Tritanopia (blue-blind)
#1D8878
Achromatopsia (no color)
#7A7A7A

Design tokens & code

CSS
--color: #308c2d;
/* rgb */ color: rgb(48, 140, 45);
/* oklch */ color: oklch(56.5% 0.158 142.7);
Tailwind
colors: {
  custom: {
    50: '#75ae6b',
    500: '#308c2d',
    950: '#000000',
  },
}
SCSS
$custom: #308c2d;
$custom-light: #75ae6b;
$custom-dark: #000000;
JSON
{
  "hex": "#308c2d",
  "rgb": {
    "r": 48,
    "g": 140,
    "b": 45
  },
  "hsl": {
    "h": 118.105,
    "s": 51.351,
    "l": 36.275
  },
  "oklch": {
    "l": 0.56532,
    "c": 0.1577,
    "h": 142.7
  },
  "luminance": 0.19574
}

Semantic roles & 50–950 ramp

primary
#308C2D
secondary
#B260B4
accent
#4DDBD6
background
#F7FAF6
surface
#EDF4EB
border
#C8CEC6
text
#091007
muted
#7B7F7A

Preview Lab

Preview with #308C2D

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

Preview Lab → · Contrast checker → · Palette generator →

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