#308012#308012

#308012 is a mid, vivid green. Relative luminance 0.161; OKLCH L 53.0% C 0.159 H 139.3°. Best body text is #FFFFFF at 4.97:1 contrast (WCAG AA passes).

Color values

HEX#308012
RGBrgb(48, 128, 18)
HSLhsl(104, 75%, 29%)
HSVhsv(104, 86%, 50%)
CMYKcmyk(62.5%, 0%, 85.9%, 49.8%)
CIE-LABlab(47.12, -43.77, 47.07)
CIE-LCHlch(47.12, 64.28, 132.92°)
OKLaboklab(52.97% -0.1206 0.1037)
OKLCHoklch(52.97% 0.159 139.3)
XYZxyz(9.0469, 16.1096, 3.2049)
Luminance0.1611 (WCAG relative)
Temperaturewarm
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#308012 #621280
analogous
#678012 #308012 #12802B
triadic
#308012 #123080 #801230
tetradic
#308012 #126780 #621280 #802B12
square
#308012 #126780 #621280 #802B12
split-complementary
#308012 #2B1280 #801267
monochromatic
#0A1B04 #1C4A0A #308012 #44B61A #5DE12B

Accessibility & contrast

On white

4.97
#308012 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.22
#308012 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #308012
4.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##308012#FFFFFF#000000##FFFFFF
##3080121.004.974.224.97
#FFFFFF4.971.0021.001.00
#0000004.2221.001.0021.00
##FFFFFF4.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#847400
Deuteranopia (green-blind)
#7A6D20
Tritanopia (blue-blind)
#267B6C
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #308012;
/* rgb */ color: rgb(48, 128, 18);
/* oklch */ color: oklch(53.0% 0.159 139.3);
Tailwind
colors: {
  custom: {
    50: '#73a65c',
    500: '#308012',
    950: '#000000',
  },
}
SCSS
$custom: #308012;
$custom-light: #73a65c;
$custom-dark: #000000;
JSON
{
  "hex": "#308012",
  "rgb": {
    "r": 48,
    "g": 128,
    "b": 18
  },
  "hsl": {
    "h": 103.636,
    "s": 75.342,
    "l": 28.627
  },
  "oklch": {
    "l": 0.52973,
    "c": 0.159,
    "h": 139.3
  },
  "luminance": 0.1611
}

Semantic roles & 50–950 ramp

primary
#308012
secondary
#9338B6
accent
#36F2BF
background
#F7FAF5
surface
#EDF4E9
border
#C8CEC5
text
#090F04
muted
#7B7F79

Preview Lab

Preview with #308012

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

Preview Lab → · Contrast checker → · Palette generator →

#308012 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva