#306F12#306F12

#306F12 is a mid, vivid green. Relative luminance 0.120; OKLCH L 48.1% C 0.138 H 138.1°. Best body text is #FFFFFF at 6.16:1 contrast (WCAG AA passes).

Color values

HEX#306F12
RGBrgb(48, 111, 18)
HSLhsl(101, 72%, 25%)
HSVhsv(101, 84%, 44%)
CMYKcmyk(56.8%, 0%, 83.8%, 56.5%)
CIE-LABlab(41.28, -37.19, 41.71)
CIE-LCHlch(41.28, 55.89, 131.72°)
OKLaboklab(48.15% -0.1029 0.0924)
OKLCHoklch(48.15% 0.138 138.1)
XYZxyz(7.0123, 12.0404, 2.5267)
Luminance0.1204 (WCAG relative)
Temperaturewarm
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#306F12 #51126F
analogous
#5E6F12 #306F12 #126F22
triadic
#306F12 #12306F #6F1230
tetradic
#306F12 #125E6F #51126F #6F2212
square
#306F12 #125E6F #51126F #6F2212
split-complementary
#306F12 #22126F #6F125E
monochromatic
#0B1A04 #193A09 #306F12 #47A41B #5ED823

Accessibility & contrast

On white

6.16
#306F12 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.41
#306F12 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #306F12
6.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##306F12#FFFFFF#000000##FFFFFF
##306F121.006.163.416.16
#FFFFFF6.161.0021.001.00
#0000003.4121.001.0021.00
##FFFFFF6.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#736500
Deuteranopia (green-blind)
#6B5F1D
Tritanopia (blue-blind)
#2B6B5E
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #306f12;
/* rgb */ color: rgb(48, 111, 18);
/* oklch */ color: oklch(48.1% 0.138 138.1);
Tailwind
colors: {
  custom: {
    50: '#709959',
    500: '#306f12',
    950: '#000000',
  },
}
SCSS
$custom: #306f12;
$custom-light: #709959;
$custom-dark: #000000;
JSON
{
  "hex": "#306f12",
  "rgb": {
    "r": 48,
    "g": 111,
    "b": 18
  },
  "hsl": {
    "h": 100.645,
    "s": 72.093,
    "l": 25.294
  },
  "oklch": {
    "l": 0.4815,
    "c": 0.13833,
    "h": 138.1
  },
  "luminance": 0.12041
}

Semantic roles & 50–950 ramp

primary
#306F12
secondary
#8237A6
accent
#39EFB4
background
#F7F9F5
surface
#EDF2E9
border
#C8CCC5
text
#080E04
muted
#7B7E79

Preview Lab

Preview with #306F12

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

Preview Lab → · Contrast checker → · Palette generator →

#306F12 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva