#306816#306816

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

Color values

HEX#306816
RGBrgb(48, 104, 22)
HSLhsl(101, 65%, 25%)
HSVhsv(101, 79%, 41%)
CMYKcmyk(53.8%, 0%, 78.8%, 59.2%)
CIE-LABlab(38.88, -34.03, 38.00)
CIE-LCHlch(38.88, 51.01, 131.85°)
OKLaboklab(46.18% -0.0942 0.0853)
OKLCHoklch(46.18% 0.127 137.8)
XYZxyz(6.3138, 10.5865, 2.4696)
Luminance0.1059 (WCAG relative)
Temperaturewarm
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#306816 #4E1668
analogous
#596816 #306816 #166825
triadic
#306816 #163068 #681630
tetradic
#306816 #165968 #4E1668 #682516
square
#306816 #165968 #4E1668 #682516
split-complementary
#306816 #251668 #681659
monochromatic
#0C1905 #19350B #306816 #479B21 #5FCD2B

Accessibility & contrast

On white

6.74
#306816 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #306816
6.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##306816#FFFFFF#000000##FFFFFF
##3068161.006.743.126.74
#FFFFFF6.741.0021.001.00
#0000003.1221.001.0021.00
##FFFFFF6.741.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #306816;
/* rgb */ color: rgb(48, 104, 22);
/* oklch */ color: oklch(46.2% 0.127 137.8);
Tailwind
colors: {
  custom: {
    50: '#6f945a',
    500: '#306816',
    950: '#000000',
  },
}
SCSS
$custom: #306816;
$custom-light: #6f945a;
$custom-dark: #000000;
JSON
{
  "hex": "#306816",
  "rgb": {
    "r": 48,
    "g": 104,
    "b": 22
  },
  "hsl": {
    "h": 100.976,
    "s": 65.079,
    "l": 24.706
  },
  "oklch": {
    "l": 0.46175,
    "c": 0.12706,
    "h": 137.8
  },
  "luminance": 0.10587
}

Semantic roles & 50–950 ramp

primary
#306816
secondary
#7F3B9F
accent
#40E8B3
background
#F6F9F5
surface
#ECF1E9
border
#C7CBC5
text
#080D04
muted
#7B7E79

Preview Lab

Preview with #306816

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

Preview Lab → · Contrast checker → · Palette generator →

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