#305E12#305E12

#305E12 is a dark, moderate yellow-green. Relative luminance 0.087; OKLCH L 43.3% C 0.116 H 136.0°. Best body text is #FFFFFF at 7.68:1 contrast (WCAG AA passes).

Color values

HEX#305E12
RGBrgb(48, 94, 18)
HSLhsl(96, 68%, 22%)
HSVhsv(96, 81%, 37%)
CMYKcmyk(48.9%, 0%, 80.9%, 63.1%)
CIE-LABlab(35.35, -29.97, 36.07)
CIE-LCHlch(35.35, 46.90, 129.72°)
OKLaboklab(43.27% -0.0835 0.0806)
OKLCHoklch(43.27% 0.116 136)
XYZxyz(5.3307, 8.6771, 1.9661)
Luminance0.0868 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#305E12 #40125E
analogous
#565E12 #305E12 #125E1A
triadic
#305E12 #12305E #5E1230
tetradic
#305E12 #12565E #40125E #5E1A12
square
#305E12 #12565E #40125E #5E1A12
split-complementary
#305E12 #1A125E #5E1256
monochromatic
#0D1A05 #162B08 #305E12 #4A911C #64C526

Accessibility & contrast

On white

7.68
#305E12 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.74
#305E12 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #305E12
7.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##305E12#FFFFFF#000000##FFFFFF
##305E121.007.682.747.68
#FFFFFF7.681.0021.001.00
#0000002.7421.001.0021.00
##FFFFFF7.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#625603
Deuteranopia (green-blind)
#5B521A
Tritanopia (blue-blind)
#2E5A50
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #305e12;
/* rgb */ color: rgb(48, 94, 18);
/* oklch */ color: oklch(43.3% 0.116 136.0);
Tailwind
colors: {
  custom: {
    50: '#6d8c56',
    500: '#305e12',
    950: '#000000',
  },
}
SCSS
$custom: #305e12;
$custom-light: #6d8c56;
$custom-dark: #000000;
JSON
{
  "hex": "#305e12",
  "rgb": {
    "r": 48,
    "g": 94,
    "b": 18
  },
  "hsl": {
    "h": 96.316,
    "s": 67.857,
    "l": 21.961
  },
  "oklch": {
    "l": 0.43273,
    "c": 0.11608,
    "h": 136
  },
  "luminance": 0.08677
}

Semantic roles & 50–950 ramp

primary
#305E12
secondary
#703596
accent
#3DEBA6
background
#F6F8F5
surface
#ECF0E9
border
#C7CBC5
text
#070C03
muted
#7A7D78

Preview Lab

Preview with #305E12

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

Preview Lab → · Contrast checker → · Palette generator →

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