#305A18#305A18

#305A18 is a dark, moderate yellow-green. Relative luminance 0.080; OKLCH L 42.2% C 0.106 H 136.3°. Best body text is #FFFFFF at 8.07:1 contrast (WCAG AA passes).

Color values

HEX#305A18
RGBrgb(48, 90, 24)
HSLhsl(98, 58%, 22%)
HSVhsv(98, 73%, 35%)
CMYKcmyk(46.7%, 0%, 73.3%, 64.7%)
CIE-LABlab(34.00, -27.66, 32.19)
CIE-LCHlch(34.00, 42.44, 130.67°)
OKLaboklab(42.17% -0.0768 0.0735)
OKLCHoklch(42.17% 0.106 136.3)
XYZxyz(5.0398, 8.0064, 2.1438)
Luminance0.0801 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#305A18 #42185A
analogous
#515A18 #305A18 #185A21
triadic
#305A18 #18305A #5A1830
tetradic
#305A18 #18515A #42185A #5A2118
square
#305A18 #18515A #42185A #5A2118
split-complementary
#305A18 #21185A #5A1851
monochromatic
#0D1806 #162A0B #305A18 #4A8A25 #64BB32

Accessibility & contrast

On white

8.07
#305A18 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.60
#305A18 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #305A18
8.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##305A18#FFFFFF#000000##FFFFFF
##305A181.008.072.608.07
#FFFFFF8.071.0021.001.00
#0000002.6021.001.0021.00
##FFFFFF8.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#5D520E
Deuteranopia (green-blind)
#584F1E
Tritanopia (blue-blind)
#2E574D
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #305a18;
/* rgb */ color: rgb(48, 90, 24);
/* oklch */ color: oklch(42.2% 0.106 136.3);
Tailwind
colors: {
  custom: {
    50: '#6c8959',
    500: '#305a18',
    950: '#000000',
  },
}
SCSS
$custom: #305a18;
$custom-light: #6c8959;
$custom-dark: #000000;
JSON
{
  "hex": "#305a18",
  "rgb": {
    "r": 48,
    "g": 90,
    "b": 24
  },
  "hsl": {
    "h": 98.182,
    "s": 57.895,
    "l": 22.353
  },
  "oklch": {
    "l": 0.42172,
    "c": 0.10627,
    "h": 136.3
  },
  "luminance": 0.08007
}

Semantic roles & 50–950 ramp

primary
#305A18
secondary
#723D91
accent
#47E1A9
background
#F6F8F5
surface
#ECF0E9
border
#C7CBC5
text
#070B04
muted
#7A7C79

Preview Lab

Preview with #305A18

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

Preview Lab → · Contrast checker → · Palette generator →

#305A18 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva