#306A17#306A17

#306A17 is a mid, vivid green. Relative luminance 0.110; OKLCH L 46.8% C 0.129 H 138.2°. Best body text is #FFFFFF at 6.56:1 contrast (WCAG AA passes).

Color values

HEX#306A17
RGBrgb(48, 106, 23)
HSLhsl(102, 64%, 25%)
HSVhsv(102, 78%, 42%)
CMYKcmyk(54.7%, 0%, 78.3%, 58.4%)
CIE-LABlab(39.58, -34.80, 38.31)
CIE-LCHlch(39.58, 51.75, 132.25°)
OKLaboklab(46.76% -0.0962 0.0861)
OKLCHoklch(46.76% 0.129 138.2)
XYZxyz(6.5274, 10.9978, 2.5893)
Luminance0.1100 (WCAG relative)
Temperaturewarm
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#306A17 #51176A
analogous
#596A17 #306A17 #176A28
triadic
#306A17 #17306A #6A1730
tetradic
#306A17 #17596A #51176A #6A2817
square
#306A17 #17596A #51176A #6A2817
split-complementary
#306A17 #28176A #6A1759
monochromatic
#0B1905 #19380C #306A17 #479C22 #5ECF2D

Accessibility & contrast

On white

6.56
#306A17 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.20
#306A17 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #306A17
6.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##306A17#FFFFFF#000000##FFFFFF
##306A171.006.563.206.56
#FFFFFF6.561.0021.001.00
#0000003.2021.001.0021.00
##FFFFFF6.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#6E6006
Deuteranopia (green-blind)
#665B20
Tritanopia (blue-blind)
#2B665A
Achromatopsia (no color)
#5D5D5D

Design tokens & code

CSS
--color: #306a17;
/* rgb */ color: rgb(48, 106, 23);
/* oklch */ color: oklch(46.8% 0.129 138.2);
Tailwind
colors: {
  custom: {
    50: '#6f955a',
    500: '#306a17',
    950: '#000000',
  },
}
SCSS
$custom: #306a17;
$custom-light: #6f955a;
$custom-dark: #000000;
JSON
{
  "hex": "#306a17",
  "rgb": {
    "r": 48,
    "g": 106,
    "b": 23
  },
  "hsl": {
    "h": 101.928,
    "s": 64.341,
    "l": 25.294
  },
  "oklch": {
    "l": 0.46755,
    "c": 0.12908,
    "h": 138.2
  },
  "luminance": 0.10998
}

Semantic roles & 50–950 ramp

primary
#306A17
secondary
#823DA0
accent
#40E7B5
background
#F7F9F5
surface
#EDF2E9
border
#C8CCC5
text
#080D04
muted
#7B7E79

Preview Lab

Preview with #306A17

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

Preview Lab → · Contrast checker → · Palette generator →

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