#305218#305218

#305218 is a dark, moderate yellow-green. Relative luminance 0.067; OKLCH L 39.9% C 0.094 H 134.7°. Best body text is #FFFFFF at 8.95:1 contrast (WCAG AA passes).

Color values

HEX#305218
RGBrgb(48, 82, 24)
HSLhsl(95, 55%, 21%)
HSVhsv(95, 71%, 32%)
CMYKcmyk(41.5%, 0%, 70.7%, 67.8%)
CIE-LABlab(31.18, -23.82, 29.19)
CIE-LCHlch(31.18, 37.68, 129.22°)
OKLaboklab(39.87% -0.0664 0.0671)
OKLCHoklch(39.87% 0.094 134.7)
XYZxyz(4.4010, 6.7287, 1.9309)
Luminance0.0673 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#305218 #3A1852
analogous
#4D5218 #305218 #18521D
triadic
#305218 #183052 #521830
tetradic
#305218 #184D52 #3A1852 #521D18
square
#305218 #184D52 #3A1852 #521D18
split-complementary
#305218 #1D1852 #52184D
monochromatic
#0E1807 #14230A #305218 #4C8126 #67B134

Accessibility & contrast

On white

8.95
#305218 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.35
#305218 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #305218
8.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##305218#FFFFFF#000000##FFFFFF
##3052181.008.952.358.95
#FFFFFF8.951.0021.001.00
#0000002.3521.001.0021.00
##FFFFFF8.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#554B11
Deuteranopia (green-blind)
#51481D
Tritanopia (blue-blind)
#304F46
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #305218;
/* rgb */ color: rgb(48, 82, 24);
/* oklch */ color: oklch(39.9% 0.094 134.7);
Tailwind
colors: {
  custom: {
    50: '#6b8358',
    500: '#305218',
    950: '#000000',
  },
}
SCSS
$custom: #305218;
$custom-light: #6b8358;
$custom-dark: #000000;
JSON
{
  "hex": "#305218",
  "rgb": {
    "r": 48,
    "g": 82,
    "b": 24
  },
  "hsl": {
    "h": 95.172,
    "s": 54.717,
    "l": 20.784
  },
  "oklch": {
    "l": 0.39869,
    "c": 0.09439,
    "h": 134.7
  },
  "luminance": 0.06729
}

Semantic roles & 50–950 ramp

primary
#305218
secondary
#693D89
accent
#4ADEA1
background
#F6F8F5
surface
#EBEFE9
border
#C6CAC5
text
#070A03
muted
#7A7C78

Preview Lab

Preview with #305218

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

Preview Lab → · Contrast checker → · Palette generator →

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