#305B18#305B18

#305B18 is a dark, moderate yellow-green. Relative luminance 0.082; OKLCH L 42.5% C 0.108 H 136.4°. Best body text is #FFFFFF at 7.97:1 contrast (WCAG AA passes).

Color values

HEX#305B18
RGBrgb(48, 91, 24)
HSLhsl(99, 58%, 23%)
HSVhsv(99, 74%, 36%)
CMYKcmyk(47.3%, 0%, 73.6%, 64.3%)
CIE-LABlab(34.35, -28.12, 32.56)
CIE-LCHlch(34.35, 43.03, 130.81°)
OKLaboklab(42.46% -0.078 0.0742)
OKLCHoklch(42.46% 0.108 136.4)
XYZxyz(5.1247, 8.1762, 2.1721)
Luminance0.0818 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#305B18 #43185B
analogous
#525B18 #305B18 #185B21
triadic
#305B18 #18305B #5B1830
tetradic
#305B18 #18525B #43185B #5B2118
square
#305B18 #18525B #43185B #5B2118
split-complementary
#305B18 #21185B #5B1852
monochromatic
#0D1806 #162B0B #305B18 #4A8B25 #63BC32

Accessibility & contrast

On white

7.97
#305B18 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.64
#305B18 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #305B18
7.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##305B18#FFFFFF#000000##FFFFFF
##305B181.007.972.647.97
#FFFFFF7.971.0021.001.00
#0000002.6421.001.0021.00
##FFFFFF7.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#5E530E
Deuteranopia (green-blind)
#594F1E
Tritanopia (blue-blind)
#2E574E
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #305b18;
/* rgb */ color: rgb(48, 91, 24);
/* oklch */ color: oklch(42.5% 0.108 136.4);
Tailwind
colors: {
  custom: {
    50: '#6d8a59',
    500: '#305b18',
    950: '#000000',
  },
}
SCSS
$custom: #305b18;
$custom-light: #6d8a59;
$custom-dark: #000000;
JSON
{
  "hex": "#305b18",
  "rgb": {
    "r": 48,
    "g": 91,
    "b": 24
  },
  "hsl": {
    "h": 98.507,
    "s": 58.261,
    "l": 22.549
  },
  "oklch": {
    "l": 0.4246,
    "c": 0.1077,
    "h": 136.4
  },
  "luminance": 0.08176
}

Semantic roles & 50–950 ramp

primary
#305B18
secondary
#733D92
accent
#46E1AA
background
#F6F8F5
surface
#ECF0E9
border
#C7CBC5
text
#070B04
muted
#7A7C79

Preview Lab

Preview with #305B18

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

Preview Lab → · Contrast checker → · Palette generator →

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