#307212#307212

#307212 is a mid, vivid green. Relative luminance 0.127; OKLCH L 49.0% C 0.142 H 138.3°. Best body text is #FFFFFF at 5.93:1 contrast (WCAG AA passes).

Color values

HEX#307212
RGBrgb(48, 114, 18)
HSLhsl(101, 73%, 26%)
HSVhsv(101, 84%, 45%)
CMYKcmyk(57.9%, 0%, 84.2%, 55.3%)
CIE-LABlab(42.32, -38.39, 42.68)
CIE-LCHlch(42.32, 57.41, 131.98°)
OKLaboklab(49.01% -0.1061 0.0945)
OKLCHoklch(49.01% 0.142 138.3)
XYZxyz(7.3451, 12.7061, 2.6376)
Luminance0.1271 (WCAG relative)
Temperaturewarm
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#307212 #541272
analogous
#607212 #307212 #127224
triadic
#307212 #123072 #721230
tetradic
#307212 #126072 #541272 #722412
square
#307212 #126072 #541272 #722412
split-complementary
#307212 #241272 #721260
monochromatic
#0B1A04 #1A3D0A #307212 #46A71A #5DDC23

Accessibility & contrast

On white

5.93
#307212 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.54
#307212 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #307212
5.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##307212#FFFFFF#000000##FFFFFF
##3072121.005.933.545.93
#FFFFFF5.931.0021.001.00
#0000003.5421.001.0021.00
##FFFFFF5.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#766700
Deuteranopia (green-blind)
#6D621E
Tritanopia (blue-blind)
#2A6E61
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #307212;
/* rgb */ color: rgb(48, 114, 18);
/* oklch */ color: oklch(49.0% 0.142 138.3);
Tailwind
colors: {
  custom: {
    50: '#719b59',
    500: '#307212',
    950: '#000000',
  },
}
SCSS
$custom: #307212;
$custom-light: #719b59;
$custom-dark: #000000;
JSON
{
  "hex": "#307212",
  "rgb": {
    "r": 48,
    "g": 114,
    "b": 18
  },
  "hsl": {
    "h": 101.25,
    "s": 72.727,
    "l": 25.882
  },
  "oklch": {
    "l": 0.49005,
    "c": 0.14209,
    "h": 138.3
  },
  "luminance": 0.12707
}

Semantic roles & 50–950 ramp

primary
#307212
secondary
#8537A9
accent
#38EFB6
background
#F7F9F5
surface
#EDF2E9
border
#C8CCC5
text
#080E04
muted
#7B7E79

Preview Lab

Preview with #307212

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

Preview Lab → · Contrast checker → · Palette generator →

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