#306C17#306C17

#306C17 is a mid, vivid green. Relative luminance 0.114; OKLCH L 47.3% C 0.132 H 138.3°. Best body text is #FFFFFF at 6.40:1 contrast (WCAG AA passes).

Color values

HEX#306C17
RGBrgb(48, 108, 23)
HSLhsl(102, 65%, 26%)
HSVhsv(102, 79%, 42%)
CMYKcmyk(55.6%, 0%, 78.7%, 57.6%)
CIE-LABlab(40.27, -35.63, 38.99)
CIE-LCHlch(40.27, 52.82, 132.42°)
OKLaboklab(47.33% -0.0984 0.0875)
OKLCHoklch(47.33% 0.132 138.3)
XYZxyz(6.7359, 11.4148, 2.6588)
Luminance0.1142 (WCAG relative)
Temperaturewarm
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#306C17 #53176C
analogous
#5A6C17 #306C17 #176C28
triadic
#306C17 #17306C #6C1730
tetradic
#306C17 #175A6C #53176C #6C2817
square
#306C17 #175A6C #53176C #6C2817
split-complementary
#306C17 #28176C #6C175A
monochromatic
#0B1905 #1A3A0C #306C17 #469E22 #5DD12C

Accessibility & contrast

On white

6.40
#306C17 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.28
#306C17 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #306C17
6.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##306C17#FFFFFF#000000##FFFFFF
##306C171.006.403.286.40
#FFFFFF6.401.0021.001.00
#0000003.2821.001.0021.00
##FFFFFF6.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#706206
Deuteranopia (green-blind)
#685D20
Tritanopia (blue-blind)
#2B685C
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #306c17;
/* rgb */ color: rgb(48, 108, 23);
/* oklch */ color: oklch(47.3% 0.132 138.3);
Tailwind
colors: {
  custom: {
    50: '#6f975b',
    500: '#306c17',
    950: '#000000',
  },
}
SCSS
$custom: #306c17;
$custom-light: #6f975b;
$custom-dark: #000000;
JSON
{
  "hex": "#306c17",
  "rgb": {
    "r": 48,
    "g": 108,
    "b": 23
  },
  "hsl": {
    "h": 102.353,
    "s": 64.885,
    "l": 25.686
  },
  "oklch": {
    "l": 0.47327,
    "c": 0.1317,
    "h": 138.3
  },
  "luminance": 0.11415
}

Semantic roles & 50–950 ramp

primary
#306C17
secondary
#843DA2
accent
#40E8B6
background
#F7F9F5
surface
#EDF2E9
border
#C8CCC5
text
#080D04
muted
#7B7E79

Preview Lab

Preview with #306C17

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

Preview Lab → · Contrast checker → · Palette generator →

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