#305B11#305B11

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

Color values

HEX#305B11
RGBrgb(48, 91, 17)
HSLhsl(95, 69%, 21%)
HSVhsv(95, 81%, 36%)
CMYKcmyk(47.3%, 0%, 81.3%, 64.3%)
CIE-LABlab(34.29, -28.68, 35.42)
CIE-LCHlch(34.29, 45.58, 129.00°)
OKLaboklab(42.4% -0.0801 0.0791)
OKLCHoklch(42.4% 0.113 135.4)
XYZxyz(5.0611, 8.1507, 1.8368)
Luminance0.0815 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#305B11 #3C115B
analogous
#555B11 #305B11 #115B17
triadic
#305B11 #11305B #5B1130
tetradic
#305B11 #11555B #3C115B #5B1711
square
#305B11 #11555B #3C115B #5B1711
split-complementary
#305B11 #17115B #5B1155
monochromatic
#0E1A05 #152707 #305B11 #4B8F1B #66C224

Accessibility & contrast

On white

7.98
#305B11 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #305B11
7.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##305B11#FFFFFF#000000##FFFFFF
##305B111.007.982.637.98
#FFFFFF7.981.0021.001.00
#0000002.6321.001.0021.00
##FFFFFF7.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#5F5302
Deuteranopia (green-blind)
#594F19
Tritanopia (blue-blind)
#2F574D
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #305b11;
/* rgb */ color: rgb(48, 91, 17);
/* oklch */ color: oklch(42.4% 0.113 135.4);
Tailwind
colors: {
  custom: {
    50: '#6d8a55',
    500: '#305b11',
    950: '#000000',
  },
}
SCSS
$custom: #305b11;
$custom-light: #6d8a55;
$custom-dark: #000000;
JSON
{
  "hex": "#305b11",
  "rgb": {
    "r": 48,
    "g": 91,
    "b": 17
  },
  "hsl": {
    "h": 94.865,
    "s": 68.519,
    "l": 21.176
  },
  "oklch": {
    "l": 0.424,
    "c": 0.11258,
    "h": 135.4
  },
  "luminance": 0.08151
}

Semantic roles & 50–950 ramp

primary
#305B11
secondary
#6C3494
accent
#3CEBA2
background
#F6F8F5
surface
#ECF0E9
border
#C7CBC5
text
#070B03
muted
#7A7C78

Preview Lab

Preview with #305B11

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

Preview Lab → · Contrast checker → · Palette generator →

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