#305612#305612

#305612 is a dark, moderate yellow-green. Relative luminance 0.073; OKLCH L 41.0% C 0.105 H 134.5°. Best body text is #FFFFFF at 8.52:1 contrast (WCAG AA passes).

Color values

HEX#305612
RGBrgb(48, 86, 18)
HSLhsl(94, 65%, 20%)
HSVhsv(94, 79%, 34%)
CMYKcmyk(44.2%, 0%, 79.1%, 66.3%)
CIE-LABlab(32.54, -26.28, 33.30)
CIE-LCHlch(32.54, 42.42, 128.28°)
OKLaboklab(40.97% -0.0735 0.0748)
OKLCHoklch(40.97% 0.105 134.5)
XYZxyz(4.6558, 7.3274, 1.7412)
Luminance0.0733 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#305612 #381256
analogous
#525612 #305612 #125616
triadic
#305612 #123056 #561230
tetradic
#305612 #125256 #381256 #561612
square
#305612 #125256 #381256 #561612
split-complementary
#305612 #161256 #561252
monochromatic
#0E1905 #142307 #305612 #4C891D #68BB27

Accessibility & contrast

On white

8.52
#305612 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.47
#305612 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #305612
8.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##305612#FFFFFF#000000##FFFFFF
##3056121.008.522.478.52
#FFFFFF8.521.0021.001.00
#0000002.4721.001.0021.00
##FFFFFF8.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#5A4E06
Deuteranopia (green-blind)
#544B19
Tritanopia (blue-blind)
#2F5249
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #305612;
/* rgb */ color: rgb(48, 86, 18);
/* oklch */ color: oklch(41.0% 0.105 134.5);
Tailwind
colors: {
  custom: {
    50: '#6c8655',
    500: '#305612',
    950: '#000000',
  },
}
SCSS
$custom: #305612;
$custom-light: #6c8655;
$custom-dark: #000000;
JSON
{
  "hex": "#305612",
  "rgb": {
    "r": 48,
    "g": 86,
    "b": 18
  },
  "hsl": {
    "h": 93.529,
    "s": 65.385,
    "l": 20.392
  },
  "oklch": {
    "l": 0.40965,
    "c": 0.10493,
    "h": 134.5
  },
  "luminance": 0.07328
}

Semantic roles & 50–950 ramp

primary
#305612
secondary
#67358F
accent
#3FE89E
background
#F6F8F5
surface
#ECEFE9
border
#C7CAC5
text
#070B03
muted
#7A7C78

Preview Lab

Preview with #305612

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

Preview Lab → · Contrast checker → · Palette generator →

#305612 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva