#305216#305216

#305216 is a dark, moderate yellow-green. Relative luminance 0.067; OKLCH L 39.8% C 0.096 H 134.3°. Best body text is #FFFFFF at 8.96:1 contrast (WCAG AA passes).

Color values

HEX#305216
RGBrgb(48, 82, 22)
HSLhsl(94, 58%, 20%)
HSVhsv(94, 73%, 32%)
CMYKcmyk(41.5%, 0%, 73.2%, 67.8%)
CIE-LABlab(31.16, -24.01, 30.13)
CIE-LCHlch(31.16, 38.53, 128.56°)
OKLaboklab(39.85% -0.067 0.0688)
OKLCHoklch(39.85% 0.096 134.3)
XYZxyz(4.3810, 6.7207, 1.8253)
Luminance0.0672 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#305216 #381652
analogous
#4E5216 #305216 #16521A
triadic
#305216 #163052 #521630
tetradic
#305216 #164E52 #381652 #521A16
square
#305216 #164E52 #381652 #521A16
split-complementary
#305216 #1A1652 #52164E
monochromatic
#0E1806 #142209 #305216 #4C8223 #68B330

Accessibility & contrast

On white

8.96
#305216 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.34
#305216 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #305216
8.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##305216#FFFFFF#000000##FFFFFF
##3052161.008.962.348.96
#FFFFFF8.961.0021.001.00
#0000002.3421.001.0021.00
##FFFFFF8.961.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #305216;
/* rgb */ color: rgb(48, 82, 22);
/* oklch */ color: oklch(39.8% 0.096 134.3);
Tailwind
colors: {
  custom: {
    50: '#6b8357',
    500: '#305216',
    950: '#000000',
  },
}
SCSS
$custom: #305216;
$custom-light: #6b8357;
$custom-dark: #000000;
JSON
{
  "hex": "#305216",
  "rgb": {
    "r": 48,
    "g": 82,
    "b": 22
  },
  "hsl": {
    "h": 94,
    "s": 57.692,
    "l": 20.392
  },
  "oklch": {
    "l": 0.39848,
    "c": 0.09608,
    "h": 134.3
  },
  "luminance": 0.06721
}

Semantic roles & 50–950 ramp

primary
#305216
secondary
#673A89
accent
#47E19E
background
#F6F8F5
surface
#EBEFE9
border
#C6CAC5
text
#070A03
muted
#7A7C78

Preview Lab

Preview with #305216

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

Preview Lab → · Contrast checker → · Palette generator →

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