#305A17#305A17

#305A17 is a dark, moderate yellow-green. Relative luminance 0.080; OKLCH L 42.2% C 0.107 H 136.1°. Best body text is #FFFFFF at 8.08:1 contrast (WCAG AA passes).

Color values

HEX#305A17
RGBrgb(48, 90, 23)
HSLhsl(98, 59%, 22%)
HSVhsv(98, 74%, 35%)
CMYKcmyk(46.7%, 0%, 74.4%, 64.7%)
CIE-LABlab(33.99, -27.75, 32.64)
CIE-LCHlch(33.99, 42.84, 130.37°)
OKLaboklab(42.16% -0.0771 0.0742)
OKLCHoklch(42.16% 0.107 136.1)
XYZxyz(5.0296, 8.0023, 2.0900)
Luminance0.0800 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#305A17 #41175A
analogous
#525A17 #305A17 #175A20
triadic
#305A17 #17305A #5A1730
tetradic
#305A17 #17525A #41175A #5A2017
square
#305A17 #17525A #41175A #5A2017
split-complementary
#305A17 #20175A #5A1752
monochromatic
#0D1806 #16290B #305A17 #4A8B23 #64BB30

Accessibility & contrast

On white

8.08
#305A17 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.60
#305A17 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #305A17
8.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##305A17#FFFFFF#000000##FFFFFF
##305A171.008.082.608.08
#FFFFFF8.081.0021.001.00
#0000002.6021.001.0021.00
##FFFFFF8.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#5D520D
Deuteranopia (green-blind)
#584F1D
Tritanopia (blue-blind)
#2E564D
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #305a17;
/* rgb */ color: rgb(48, 90, 23);
/* oklch */ color: oklch(42.2% 0.107 136.1);
Tailwind
colors: {
  custom: {
    50: '#6c8958',
    500: '#305a17',
    950: '#000000',
  },
}
SCSS
$custom: #305a17;
$custom-light: #6c8958;
$custom-dark: #000000;
JSON
{
  "hex": "#305a17",
  "rgb": {
    "r": 48,
    "g": 90,
    "b": 23
  },
  "hsl": {
    "h": 97.612,
    "s": 59.292,
    "l": 22.157
  },
  "oklch": {
    "l": 0.42163,
    "c": 0.10703,
    "h": 136.1
  },
  "luminance": 0.08003
}

Semantic roles & 50–950 ramp

primary
#305A17
secondary
#713C91
accent
#45E2A8
background
#F6F8F5
surface
#ECF0E9
border
#C7CBC5
text
#070B03
muted
#7A7C78

Preview Lab

Preview with #305A17

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

Preview Lab → · Contrast checker → · Palette generator →

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