#305B16#305B16

#305B16 is a dark, moderate yellow-green. Relative luminance 0.082; OKLCH L 42.4% C 0.109 H 136.1°. Best body text is #FFFFFF at 7.97:1 contrast (WCAG AA passes).

Color values

HEX#305B16
RGBrgb(48, 91, 22)
HSLhsl(97, 61%, 22%)
HSVhsv(97, 76%, 36%)
CMYKcmyk(47.3%, 0%, 75.8%, 64.3%)
CIE-LABlab(34.33, -28.30, 33.43)
CIE-LCHlch(34.33, 43.80, 130.25°)
OKLaboklab(42.44% -0.0787 0.0757)
OKLCHoklch(42.44% 0.109 136.1)
XYZxyz(5.1047, 8.1682, 2.0665)
Luminance0.0817 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#305B16 #41165B
analogous
#535B16 #305B16 #165B1E
triadic
#305B16 #16305B #5B1630
tetradic
#305B16 #16535B #41165B #5B1E16
square
#305B16 #16535B #41165B #5B1E16
split-complementary
#305B16 #1E165B #5B1653
monochromatic
#0D1906 #162A0A #305B16 #4A8C22 #64BE2E

Accessibility & contrast

On white

7.97
#305B16 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.63
#305B16 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #305B16
7.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##305B16#FFFFFF#000000##FFFFFF
##305B161.007.972.637.97
#FFFFFF7.971.0021.001.00
#0000002.6321.001.0021.00
##FFFFFF7.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#5E530B
Deuteranopia (green-blind)
#594F1C
Tritanopia (blue-blind)
#2E574D
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #305b16;
/* rgb */ color: rgb(48, 91, 22);
/* oklch */ color: oklch(42.4% 0.109 136.1);
Tailwind
colors: {
  custom: {
    50: '#6d8a58',
    500: '#305b16',
    950: '#000000',
  },
}
SCSS
$custom: #305b16;
$custom-light: #6d8a58;
$custom-dark: #000000;
JSON
{
  "hex": "#305b16",
  "rgb": {
    "r": 48,
    "g": 91,
    "b": 22
  },
  "hsl": {
    "h": 97.391,
    "s": 61.062,
    "l": 22.157
  },
  "oklch": {
    "l": 0.42441,
    "c": 0.10921,
    "h": 136.1
  },
  "luminance": 0.08168
}

Semantic roles & 50–950 ramp

primary
#305B16
secondary
#713B92
accent
#44E4A8
background
#F6F8F5
surface
#ECF0E9
border
#C7CBC5
text
#070B03
muted
#7A7C78

Preview Lab

Preview with #305B16

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

Preview Lab → · Contrast checker → · Palette generator →

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