#306D18#306D18

#306D18 is a mid, vivid green. Relative luminance 0.116; OKLCH L 47.6% C 0.132 H 138.6°. Best body text is #FFFFFF at 6.31:1 contrast (WCAG AA passes).

Color values

HEX#306D18
RGBrgb(48, 109, 24)
HSLhsl(103, 64%, 26%)
HSVhsv(103, 78%, 43%)
CMYKcmyk(56%, 0%, 78%, 57.3%)
CIE-LABlab(40.62, -35.97, 38.96)
CIE-LCHlch(40.62, 53.03, 132.71°)
OKLaboklab(47.62% -0.0993 0.0876)
OKLCHoklch(47.62% 0.132 138.6)
XYZxyz(6.8522, 11.6311, 2.7479)
Luminance0.1163 (WCAG relative)
Temperaturewarm
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#306D18 #55186D
analogous
#5A6D18 #306D18 #186D2A
triadic
#306D18 #18306D #6D1830
tetradic
#306D18 #185A6D #55186D #6D2A18
square
#306D18 #185A6D #55186D #6D2A18
split-complementary
#306D18 #2A186D #6D185A
monochromatic
#0B1906 #1A3B0D #306D18 #469F23 #5CD12E

Accessibility & contrast

On white

6.31
#306D18 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.33
#306D18 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #306D18
6.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##306D18#FFFFFF#000000##FFFFFF
##306D181.006.313.336.31
#FFFFFF6.311.0021.001.00
#0000003.3321.001.0021.00
##FFFFFF6.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#716307
Deuteranopia (green-blind)
#695E21
Tritanopia (blue-blind)
#2B695D
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #306d18;
/* rgb */ color: rgb(48, 109, 24);
/* oklch */ color: oklch(47.6% 0.132 138.6);
Tailwind
colors: {
  custom: {
    50: '#70975b',
    500: '#306d18',
    950: '#000000',
  },
}
SCSS
$custom: #306d18;
$custom-light: #70975b;
$custom-dark: #000000;
JSON
{
  "hex": "#306d18",
  "rgb": {
    "r": 48,
    "g": 109,
    "b": 24
  },
  "hsl": {
    "h": 103.059,
    "s": 63.91,
    "l": 26.078
  },
  "oklch": {
    "l": 0.4762,
    "c": 0.1324,
    "h": 138.6
  },
  "luminance": 0.11632
}

Semantic roles & 50–950 ramp

primary
#306D18
secondary
#863EA3
accent
#41E7B8
background
#F7F9F5
surface
#EDF2E9
border
#C8CCC5
text
#080D04
muted
#7B7E79

Preview Lab

Preview with #306D18

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

Preview Lab → · Contrast checker → · Palette generator →

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