#306817#306817

#306817 is a mid, vivid green. Relative luminance 0.106; OKLCH L 46.2% C 0.126 H 138.0°. Best body text is #FFFFFF at 6.73:1 contrast (WCAG AA passes).

Color values

HEX#306817
RGBrgb(48, 104, 23)
HSLhsl(101, 64%, 25%)
HSVhsv(101, 78%, 41%)
CMYKcmyk(53.8%, 0%, 77.9%, 59.2%)
CIE-LABlab(38.88, -33.96, 37.62)
CIE-LCHlch(38.88, 50.68, 132.07°)
OKLaboklab(46.18% -0.0939 0.0847)
OKLCHoklch(46.18% 0.126 138)
XYZxyz(6.3237, 10.5904, 2.5214)
Luminance0.1059 (WCAG relative)
Temperaturewarm
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#306817 #4F1768
analogous
#596817 #306817 #176826
triadic
#306817 #173068 #681730
tetradic
#306817 #175968 #4F1768 #682617
square
#306817 #175968 #4F1768 #682617
split-complementary
#306817 #261768 #681759
monochromatic
#0C1906 #19360C #306817 #479A22 #5ECC2D

Accessibility & contrast

On white

6.73
#306817 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.12
#306817 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #306817
6.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##306817#FFFFFF#000000##FFFFFF
##3068171.006.733.126.73
#FFFFFF6.731.0021.001.00
#0000003.1221.001.0021.00
##FFFFFF6.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#6B5E07
Deuteranopia (green-blind)
#645A1F
Tritanopia (blue-blind)
#2C6458
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #306817;
/* rgb */ color: rgb(48, 104, 23);
/* oklch */ color: oklch(46.2% 0.126 138.0);
Tailwind
colors: {
  custom: {
    50: '#6f945a',
    500: '#306817',
    950: '#000000',
  },
}
SCSS
$custom: #306817;
$custom-light: #6f945a;
$custom-dark: #000000;
JSON
{
  "hex": "#306817",
  "rgb": {
    "r": 48,
    "g": 104,
    "b": 23
  },
  "hsl": {
    "h": 101.481,
    "s": 63.78,
    "l": 24.902
  },
  "oklch": {
    "l": 0.46183,
    "c": 0.12643,
    "h": 138
  },
  "luminance": 0.10591
}

Semantic roles & 50–950 ramp

primary
#306817
secondary
#803D9E
accent
#41E7B4
background
#F6F9F5
surface
#ECF1E9
border
#C7CBC5
text
#080D04
muted
#7B7E79

Preview Lab

Preview with #306817

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

Preview Lab → · Contrast checker → · Palette generator →

#306817 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva