#306D17#306D17

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

Color values

HEX#306D17
RGBrgb(48, 109, 23)
HSLhsl(103, 65%, 26%)
HSVhsv(103, 79%, 43%)
CMYKcmyk(56%, 0%, 78.9%, 57.3%)
CIE-LABlab(40.62, -36.04, 39.34)
CIE-LCHlch(40.62, 53.35, 132.50°)
OKLaboklab(47.61% -0.0995 0.0883)
OKLCHoklch(47.61% 0.133 138.4)
XYZxyz(6.8420, 11.6270, 2.6941)
Luminance0.1163 (WCAG relative)
Temperaturewarm
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#306D17 #54176D
analogous
#5B6D17 #306D17 #176D29
triadic
#306D17 #17306D #6D1730
tetradic
#306D17 #175B6D #54176D #6D2917
square
#306D17 #175B6D #54176D #6D2917
split-complementary
#306D17 #29176D #6D175B
monochromatic
#0B1905 #1A3A0C #306D17 #46A022 #5DD22C

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##306D17#FFFFFF#000000##FFFFFF
##306D171.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)
#716305
Deuteranopia (green-blind)
#695E20
Tritanopia (blue-blind)
#2B695D
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #306d17;
/* rgb */ color: rgb(48, 109, 23);
/* oklch */ color: oklch(47.6% 0.133 138.4);
Tailwind
colors: {
  custom: {
    50: '#70975b',
    500: '#306d17',
    950: '#000000',
  },
}
SCSS
$custom: #306d17;
$custom-light: #70975b;
$custom-dark: #000000;
JSON
{
  "hex": "#306d17",
  "rgb": {
    "r": 48,
    "g": 109,
    "b": 23
  },
  "hsl": {
    "h": 102.558,
    "s": 65.152,
    "l": 25.882
  },
  "oklch": {
    "l": 0.47612,
    "c": 0.13302,
    "h": 138.4
  },
  "luminance": 0.11628
}

Semantic roles & 50–950 ramp

primary
#306D17
secondary
#853DA3
accent
#40E8B7
background
#F7F9F5
surface
#EDF2E9
border
#C8CCC5
text
#080D04
muted
#7B7E79

Preview Lab

Preview with #306D17

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

Preview Lab → · Contrast checker → · Palette generator →

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