#305C12#305C12

#305C12 is a dark, moderate yellow-green. Relative luminance 0.083; OKLCH L 42.7% C 0.113 H 135.7°. Best body text is #FFFFFF at 7.88:1 contrast (WCAG AA passes).

Color values

HEX#305C12
RGBrgb(48, 92, 18)
HSLhsl(96, 67%, 22%)
HSVhsv(96, 80%, 36%)
CMYKcmyk(47.8%, 0%, 80.4%, 63.9%)
CIE-LABlab(34.65, -29.07, 35.39)
CIE-LCHlch(34.65, 45.79, 129.40°)
OKLaboklab(42.7% -0.0811 0.0792)
OKLCHoklch(42.7% 0.113 135.7)
XYZxyz(5.1551, 8.3260, 1.9076)
Luminance0.0833 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#305C12 #3E125C
analogous
#555C12 #305C12 #125C19
triadic
#305C12 #12305C #5C1230
tetradic
#305C12 #12555C #3E125C #5C1912
square
#305C12 #12555C #3E125C #5C1912
split-complementary
#305C12 #19125C #5C1255
monochromatic
#0D1A05 #152908 #305C12 #4B8F1C #65C226

Accessibility & contrast

On white

7.88
#305C12 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.67
#305C12 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #305C12
7.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##305C12#FFFFFF#000000##FFFFFF
##305C121.007.882.677.88
#FFFFFF7.881.0021.001.00
#0000002.6721.001.0021.00
##FFFFFF7.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#605404
Deuteranopia (green-blind)
#5A501A
Tritanopia (blue-blind)
#2E584E
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #305c12;
/* rgb */ color: rgb(48, 92, 18);
/* oklch */ color: oklch(42.7% 0.113 135.7);
Tailwind
colors: {
  custom: {
    50: '#6d8a56',
    500: '#305c12',
    950: '#000000',
  },
}
SCSS
$custom: #305c12;
$custom-light: #6d8a56;
$custom-dark: #000000;
JSON
{
  "hex": "#305c12",
  "rgb": {
    "r": 48,
    "g": 92,
    "b": 18
  },
  "hsl": {
    "h": 95.676,
    "s": 67.273,
    "l": 21.569
  },
  "oklch": {
    "l": 0.42696,
    "c": 0.11334,
    "h": 135.7
  },
  "luminance": 0.08326
}

Semantic roles & 50–950 ramp

primary
#305C12
secondary
#6E3594
accent
#3EEAA4
background
#F6F8F5
surface
#ECF0E9
border
#C7CBC5
text
#070C03
muted
#7A7D78

Preview Lab

Preview with #305C12

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

Preview Lab → · Contrast checker → · Palette generator →

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