#305B15#305B15

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

Color values

HEX#305B15
RGBrgb(48, 91, 21)
HSLhsl(97, 63%, 22%)
HSVhsv(97, 77%, 36%)
CMYKcmyk(47.3%, 0%, 76.9%, 64.3%)
CIE-LABlab(34.32, -28.38, 33.85)
CIE-LCHlch(34.32, 44.17, 129.98°)
OKLaboklab(42.43% -0.079 0.0765)
OKLCHoklch(42.43% 0.11 135.9)
XYZxyz(5.0952, 8.1644, 2.0167)
Luminance0.0817 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#305B15 #40155B
analogous
#535B15 #305B15 #155B1D
triadic
#305B15 #15305B #5B1530
tetradic
#305B15 #15535B #40155B #5B1D15
square
#305B15 #15535B #40155B #5B1D15
split-complementary
#305B15 #1D155B #5B1553
monochromatic
#0D1906 #16290A #305B15 #4A8D20 #64BE2C

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##305B15#FFFFFF#000000##FFFFFF
##305B151.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)
#5E5309
Deuteranopia (green-blind)
#594F1C
Tritanopia (blue-blind)
#2E574D
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #305b15;
/* rgb */ color: rgb(48, 91, 21);
/* oklch */ color: oklch(42.4% 0.110 135.9);
Tailwind
colors: {
  custom: {
    50: '#6d8a57',
    500: '#305b15',
    950: '#000000',
  },
}
SCSS
$custom: #305b15;
$custom-light: #6d8a57;
$custom-dark: #000000;
JSON
{
  "hex": "#305b15",
  "rgb": {
    "r": 48,
    "g": 91,
    "b": 21
  },
  "hsl": {
    "h": 96.857,
    "s": 62.5,
    "l": 21.961
  },
  "oklch": {
    "l": 0.42432,
    "c": 0.10993,
    "h": 135.9
  },
  "luminance": 0.08165
}

Semantic roles & 50–950 ramp

primary
#305B15
secondary
#703992
accent
#42E6A7
background
#F6F8F5
surface
#ECF0E9
border
#C7CBC5
text
#070B03
muted
#7A7C78

Preview Lab

Preview with #305B15

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

Preview Lab → · Contrast checker → · Palette generator →

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