#305C18#305C18

#305C18 is a dark, moderate yellow-green. Relative luminance 0.083; OKLCH L 42.7% C 0.109 H 136.6°. Best body text is #FFFFFF at 7.87:1 contrast (WCAG AA passes).

Color values

HEX#305C18
RGBrgb(48, 92, 24)
HSLhsl(99, 59%, 23%)
HSVhsv(99, 74%, 36%)
CMYKcmyk(47.8%, 0%, 73.9%, 63.9%)
CIE-LABlab(34.70, -28.58, 32.93)
CIE-LCHlch(34.70, 43.60, 130.96°)
OKLaboklab(42.75% -0.0793 0.075)
OKLCHoklch(42.75% 0.109 136.6)
XYZxyz(5.2108, 8.3483, 2.2008)
Luminance0.0835 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#305C18 #44185C
analogous
#525C18 #305C18 #185C22
triadic
#305C18 #18305C #5C1830
tetradic
#305C18 #18525C #44185C #5C2218
square
#305C18 #18525C #44185C #5C2218
split-complementary
#305C18 #22185C #5C1852
monochromatic
#0D1806 #172B0B #305C18 #498D25 #63BD31

Accessibility & contrast

On white

7.87
#305C18 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.67
#305C18 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #305C18
7.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##305C18#FFFFFF#000000##FFFFFF
##305C181.007.872.677.87
#FFFFFF7.871.0021.001.00
#0000002.6721.001.0021.00
##FFFFFF7.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#5F540E
Deuteranopia (green-blind)
#59501E
Tritanopia (blue-blind)
#2E584E
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #305c18;
/* rgb */ color: rgb(48, 92, 24);
/* oklch */ color: oklch(42.7% 0.109 136.6);
Tailwind
colors: {
  custom: {
    50: '#6d8a59',
    500: '#305c18',
    950: '#000000',
  },
}
SCSS
$custom: #305c18;
$custom-light: #6d8a59;
$custom-dark: #000000;
JSON
{
  "hex": "#305c18",
  "rgb": {
    "r": 48,
    "g": 92,
    "b": 24
  },
  "hsl": {
    "h": 98.824,
    "s": 58.621,
    "l": 22.745
  },
  "oklch": {
    "l": 0.42748,
    "c": 0.10914,
    "h": 136.6
  },
  "luminance": 0.08349
}

Semantic roles & 50–950 ramp

primary
#305C18
secondary
#743D93
accent
#46E2AB
background
#F6F8F5
surface
#ECF0E9
border
#C7CBC5
text
#070C04
muted
#7A7D79

Preview Lab

Preview with #305C18

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

Preview Lab → · Contrast checker → · Palette generator →

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