#305A12#305A12

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

Color values

HEX#305A12
RGBrgb(48, 90, 18)
HSLhsl(95, 67%, 21%)
HSVhsv(95, 80%, 35%)
CMYKcmyk(46.7%, 0%, 80%, 64.7%)
CIE-LABlab(33.95, -28.15, 34.70)
CIE-LCHlch(33.95, 44.68, 129.05°)
OKLaboklab(42.12% -0.0786 0.0778)
OKLCHoklch(42.12% 0.111 135.3)
XYZxyz(4.9842, 7.9841, 1.8506)
Luminance0.0798 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#305A12 #3C125A
analogous
#545A12 #305A12 #125A18
triadic
#305A12 #12305A #5A1230
tetradic
#305A12 #12545A #3C125A #5A1812
square
#305A12 #12545A #3C125A #5A1812
split-complementary
#305A12 #18125A #5A1254
monochromatic
#0E1A05 #152708 #305A12 #4B8D1C #66C026

Accessibility & contrast

On white

8.09
#305A12 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #305A12
8.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##305A12#FFFFFF#000000##FFFFFF
##305A121.008.092.608.09
#FFFFFF8.091.0021.001.00
#0000002.6021.001.0021.00
##FFFFFF8.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#5E5204
Deuteranopia (green-blind)
#584F19
Tritanopia (blue-blind)
#2F564C
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #305a12;
/* rgb */ color: rgb(48, 90, 18);
/* oklch */ color: oklch(42.1% 0.111 135.3);
Tailwind
colors: {
  custom: {
    50: '#6d8956',
    500: '#305a12',
    950: '#000000',
  },
}
SCSS
$custom: #305a12;
$custom-light: #6d8956;
$custom-dark: #000000;
JSON
{
  "hex": "#305a12",
  "rgb": {
    "r": 48,
    "g": 90,
    "b": 18
  },
  "hsl": {
    "h": 95,
    "s": 66.667,
    "l": 21.176
  },
  "oklch": {
    "l": 0.42119,
    "c": 0.11056,
    "h": 135.3
  },
  "luminance": 0.07984
}

Semantic roles & 50–950 ramp

primary
#305A12
secondary
#6C3593
accent
#3EEAA2
background
#F6F8F5
surface
#ECF0E9
border
#C7CBC5
text
#070B03
muted
#7A7C78

Preview Lab

Preview with #305A12

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

Preview Lab → · Contrast checker → · Palette generator →

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