#305D12#305D12

#305D12 is a dark, moderate yellow-green. Relative luminance 0.085; OKLCH L 43.0% C 0.115 H 135.8°. Best body text is #FFFFFF at 7.78:1 contrast (WCAG AA passes).

Color values

HEX#305D12
RGBrgb(48, 93, 18)
HSLhsl(96, 68%, 22%)
HSVhsv(96, 81%, 36%)
CMYKcmyk(48.4%, 0%, 80.6%, 63.5%)
CIE-LABlab(35.00, -29.52, 35.73)
CIE-LCHlch(35.00, 46.35, 129.56°)
OKLaboklab(42.98% -0.0823 0.0799)
OKLCHoklch(42.98% 0.115 135.8)
XYZxyz(5.2423, 8.5004, 1.9367)
Luminance0.0850 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#305D12 #3F125D
analogous
#565D12 #305D12 #125D1A
triadic
#305D12 #12305D #5D1230
tetradic
#305D12 #12565D #3F125D #5D1A12
square
#305D12 #12565D #3F125D #5D1A12
split-complementary
#305D12 #1A125D #5D1256
monochromatic
#0D1A05 #162A08 #305D12 #4A901C #65C426

Accessibility & contrast

On white

7.78
#305D12 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.70
#305D12 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #305D12
7.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##305D12#FFFFFF#000000##FFFFFF
##305D121.007.782.707.78
#FFFFFF7.781.0021.001.00
#0000002.7021.001.0021.00
##FFFFFF7.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#615503
Deuteranopia (green-blind)
#5B511A
Tritanopia (blue-blind)
#2E594F
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #305d12;
/* rgb */ color: rgb(48, 93, 18);
/* oklch */ color: oklch(43.0% 0.115 135.8);
Tailwind
colors: {
  custom: {
    50: '#6d8b56',
    500: '#305d12',
    950: '#000000',
  },
}
SCSS
$custom: #305d12;
$custom-light: #6d8b56;
$custom-dark: #000000;
JSON
{
  "hex": "#305d12",
  "rgb": {
    "r": 48,
    "g": 93,
    "b": 18
  },
  "hsl": {
    "h": 96,
    "s": 67.568,
    "l": 21.765
  },
  "oklch": {
    "l": 0.42984,
    "c": 0.11471,
    "h": 135.8
  },
  "luminance": 0.08501
}

Semantic roles & 50–950 ramp

primary
#305D12
secondary
#6F3595
accent
#3DEAA5
background
#F6F8F5
surface
#ECF0E9
border
#C7CBC5
text
#070C03
muted
#7A7D78

Preview Lab

Preview with #305D12

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

Preview Lab → · Contrast checker → · Palette generator →

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