#305D18#305D18

#305D18 is a dark, moderate yellow-green. Relative luminance 0.085; OKLCH L 43.0% C 0.111 H 136.7°. Best body text is #FFFFFF at 7.76:1 contrast (WCAG AA passes).

Color values

HEX#305D18
RGBrgb(48, 93, 24)
HSLhsl(99, 59%, 23%)
HSVhsv(99, 74%, 36%)
CMYKcmyk(48.4%, 0%, 74.2%, 63.5%)
CIE-LABlab(35.05, -29.04, 33.30)
CIE-LCHlch(35.05, 44.18, 131.09°)
OKLaboklab(43.04% -0.0805 0.0758)
OKLCHoklch(43.04% 0.111 136.7)
XYZxyz(5.2980, 8.5227, 2.2299)
Luminance0.0852 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#305D18 #45185D
analogous
#525D18 #305D18 #185D22
triadic
#305D18 #18305D #5D1830
tetradic
#305D18 #18525D #45185D #5D2218
square
#305D18 #18525D #45185D #5D2218
split-complementary
#305D18 #22185D #5D1852
monochromatic
#0D1806 #172C0B #305D18 #498E25 #62BE31

Accessibility & contrast

On white

7.76
#305D18 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.70
#305D18 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #305D18
7.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##305D18#FFFFFF#000000##FFFFFF
##305D181.007.762.707.76
#FFFFFF7.761.0021.001.00
#0000002.7021.001.0021.00
##FFFFFF7.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#60550E
Deuteranopia (green-blind)
#5A511E
Tritanopia (blue-blind)
#2E594F
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #305d18;
/* rgb */ color: rgb(48, 93, 24);
/* oklch */ color: oklch(43.0% 0.111 136.7);
Tailwind
colors: {
  custom: {
    50: '#6d8b59',
    500: '#305d18',
    950: '#000000',
  },
}
SCSS
$custom: #305d18;
$custom-light: #6d8b59;
$custom-dark: #000000;
JSON
{
  "hex": "#305d18",
  "rgb": {
    "r": 48,
    "g": 93,
    "b": 24
  },
  "hsl": {
    "h": 99.13,
    "s": 58.974,
    "l": 22.941
  },
  "oklch": {
    "l": 0.43035,
    "c": 0.11057,
    "h": 136.7
  },
  "luminance": 0.08523
}

Semantic roles & 50–950 ramp

primary
#305D18
secondary
#763D93
accent
#46E2AC
background
#F6F8F5
surface
#ECF0E9
border
#C7CBC5
text
#070C04
muted
#7A7D79

Preview Lab

Preview with #305D18

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

Preview Lab → · Contrast checker → · Palette generator →

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