#305A14#305A14

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

Color values

HEX#305A14
RGBrgb(48, 90, 20)
HSLhsl(96, 64%, 22%)
HSVhsv(96, 78%, 35%)
CMYKcmyk(46.7%, 0%, 77.8%, 64.7%)
CIE-LABlab(33.96, -28.00, 33.90)
CIE-LCHlch(33.96, 43.97, 129.55°)
OKLaboklab(42.14% -0.078 0.0764)
OKLCHoklch(42.14% 0.109 135.6)
XYZxyz(5.0012, 7.9909, 1.9406)
Luminance0.0799 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#305A14 #3E145A
analogous
#535A14 #305A14 #145A1B
triadic
#305A14 #14305A #5A1430
tetradic
#305A14 #14535A #3E145A #5A1B14
square
#305A14 #14535A #3E145A #5A1B14
split-complementary
#305A14 #1B145A #5A1453
monochromatic
#0D1906 #152809 #305A14 #4B8C1F #65BE2A

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##305A14#FFFFFF#000000##FFFFFF
##305A141.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)
#5D5208
Deuteranopia (green-blind)
#584F1B
Tritanopia (blue-blind)
#2F564C
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #305a14;
/* rgb */ color: rgb(48, 90, 20);
/* oklch */ color: oklch(42.1% 0.109 135.6);
Tailwind
colors: {
  custom: {
    50: '#6d8957',
    500: '#305a14',
    950: '#000000',
  },
}
SCSS
$custom: #305a14;
$custom-light: #6d8957;
$custom-dark: #000000;
JSON
{
  "hex": "#305a14",
  "rgb": {
    "r": 48,
    "g": 90,
    "b": 20
  },
  "hsl": {
    "h": 96,
    "s": 63.636,
    "l": 21.569
  },
  "oklch": {
    "l": 0.42136,
    "c": 0.10922,
    "h": 135.6
  },
  "luminance": 0.07991
}

Semantic roles & 50–950 ramp

primary
#305A14
secondary
#6E3892
accent
#41E7A4
background
#F6F8F5
surface
#ECF0E9
border
#C7CBC5
text
#070B03
muted
#7A7C78

Preview Lab

Preview with #305A14

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

Preview Lab → · Contrast checker → · Palette generator →

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