#305518#305518

#305518 is a dark, moderate yellow-green. Relative luminance 0.072; OKLCH L 40.7% C 0.099 H 135.3°. Best body text is #FFFFFF at 8.61:1 contrast (WCAG AA passes).

Color values

HEX#305518
RGBrgb(48, 85, 24)
HSLhsl(96, 56%, 21%)
HSVhsv(96, 72%, 33%)
CMYKcmyk(43.5%, 0%, 71.8%, 66.7%)
CIE-LABlab(32.24, -25.29, 30.33)
CIE-LCHlch(32.24, 39.49, 129.82°)
OKLaboklab(40.73% -0.0703 0.0695)
OKLCHoklch(40.73% 0.099 135.3)
XYZxyz(4.6322, 7.1911, 2.0079)
Luminance0.0719 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#305518 #3D1855
analogous
#4F5518 #305518 #18551F
triadic
#305518 #183055 #551830
tetradic
#305518 #184F55 #3D1855 #551F18
square
#305518 #184F55 #3D1855 #551F18
split-complementary
#305518 #1F1855 #55184F
monochromatic
#0D1807 #15250B #305518 #4B8525 #66B433

Accessibility & contrast

On white

8.61
#305518 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.44
#305518 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #305518
8.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##305518#FFFFFF#000000##FFFFFF
##3055181.008.612.448.61
#FFFFFF8.611.0021.001.00
#0000002.4421.001.0021.00
##FFFFFF8.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#584E10
Deuteranopia (green-blind)
#534B1D
Tritanopia (blue-blind)
#2F5249
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #305518;
/* rgb */ color: rgb(48, 85, 24);
/* oklch */ color: oklch(40.7% 0.099 135.3);
Tailwind
colors: {
  custom: {
    50: '#6c8558',
    500: '#305518',
    950: '#000000',
  },
}
SCSS
$custom: #305518;
$custom-light: #6c8558;
$custom-dark: #000000;
JSON
{
  "hex": "#305518",
  "rgb": {
    "r": 48,
    "g": 85,
    "b": 24
  },
  "hsl": {
    "h": 96.393,
    "s": 55.963,
    "l": 21.373
  },
  "oklch": {
    "l": 0.40733,
    "c": 0.0989,
    "h": 135.3
  },
  "luminance": 0.07191
}

Semantic roles & 50–950 ramp

primary
#305518
secondary
#6D3D8C
accent
#49DFA4
background
#F6F8F5
surface
#EBEFE9
border
#C6CAC5
text
#070B03
muted
#7A7C78

Preview Lab

Preview with #305518

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

Preview Lab → · Contrast checker → · Palette generator →

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