#306918#306918

#306918 is a mid, vivid green. Relative luminance 0.108; OKLCH L 46.5% C 0.127 H 138.2°. Best body text is #FFFFFF at 6.65:1 contrast (WCAG AA passes).

Color values

HEX#306918
RGBrgb(48, 105, 24)
HSLhsl(102, 63%, 25%)
HSVhsv(102, 77%, 41%)
CMYKcmyk(54.3%, 0%, 77.1%, 58.8%)
CIE-LABlab(39.24, -34.30, 37.58)
CIE-LCHlch(39.24, 50.88, 132.39°)
OKLaboklab(46.48% -0.0948 0.0847)
OKLCHoklch(46.48% 0.127 138.2)
XYZxyz(6.4351, 10.7970, 2.6089)
Luminance0.1080 (WCAG relative)
Temperaturewarm
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#306918 #511869
analogous
#596918 #306918 #186928
triadic
#306918 #183069 #691830
tetradic
#306918 #185969 #511869 #692818
square
#306918 #185969 #511869 #692818
split-complementary
#306918 #281869 #691859
monochromatic
#0B1906 #19370D #306918 #479B23 #5ECD2F

Accessibility & contrast

On white

6.65
#306918 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.16
#306918 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #306918
6.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##306918#FFFFFF#000000##FFFFFF
##3069181.006.653.166.65
#FFFFFF6.651.0021.001.00
#0000003.1621.001.0021.00
##FFFFFF6.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#6C5F09
Deuteranopia (green-blind)
#655B20
Tritanopia (blue-blind)
#2B6559
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #306918;
/* rgb */ color: rgb(48, 105, 24);
/* oklch */ color: oklch(46.5% 0.127 138.2);
Tailwind
colors: {
  custom: {
    50: '#6f945b',
    500: '#306918',
    950: '#000000',
  },
}
SCSS
$custom: #306918;
$custom-light: #6f945b;
$custom-dark: #000000;
JSON
{
  "hex": "#306918",
  "rgb": {
    "r": 48,
    "g": 105,
    "b": 24
  },
  "hsl": {
    "h": 102.222,
    "s": 62.791,
    "l": 25.294
  },
  "oklch": {
    "l": 0.46477,
    "c": 0.12712,
    "h": 138.2
  },
  "luminance": 0.10797
}

Semantic roles & 50–950 ramp

primary
#306918
secondary
#823E9F
accent
#42E6B5
background
#F7F9F5
surface
#EDF1E9
border
#C8CBC5
text
#080D04
muted
#7B7E79

Preview Lab

Preview with #306918

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

Preview Lab → · Contrast checker → · Palette generator →

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