#305912#305912

#305912 is a dark, moderate yellow-green. Relative luminance 0.078; OKLCH L 41.8% C 0.109 H 135.1°. Best body text is #FFFFFF at 8.19:1 contrast (WCAG AA passes).

Color values

HEX#305912
RGBrgb(48, 89, 18)
HSLhsl(95, 66%, 21%)
HSVhsv(95, 80%, 35%)
CMYKcmyk(46.1%, 0%, 79.8%, 65.1%)
CIE-LABlab(33.60, -27.69, 34.35)
CIE-LCHlch(33.60, 44.12, 128.87°)
OKLaboklab(41.83% -0.0773 0.077)
OKLCHoklch(41.83% 0.109 135.1)
XYZxyz(4.9004, 7.8165, 1.8227)
Luminance0.0782 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#305912 #3B1259
analogous
#535912 #305912 #125917
triadic
#305912 #123059 #591230
tetradic
#305912 #125359 #3B1259 #591712
square
#305912 #125359 #3B1259 #591712
split-complementary
#305912 #171259 #591253
monochromatic
#0E1905 #152608 #305912 #4B8C1C #67BF27

Accessibility & contrast

On white

8.19
#305912 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.56
#305912 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #305912
8.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##305912#FFFFFF#000000##FFFFFF
##3059121.008.192.568.19
#FFFFFF8.191.0021.001.00
#0000002.5621.001.0021.00
##FFFFFF8.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#5D5105
Deuteranopia (green-blind)
#574E19
Tritanopia (blue-blind)
#2F554B
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #305912;
/* rgb */ color: rgb(48, 89, 18);
/* oklch */ color: oklch(41.8% 0.109 135.1);
Tailwind
colors: {
  custom: {
    50: '#6d8856',
    500: '#305912',
    950: '#000000',
  },
}
SCSS
$custom: #305912;
$custom-light: #6d8856;
$custom-dark: #000000;
JSON
{
  "hex": "#305912",
  "rgb": {
    "r": 48,
    "g": 89,
    "b": 18
  },
  "hsl": {
    "h": 94.648,
    "s": 66.355,
    "l": 20.98
  },
  "oklch": {
    "l": 0.41831,
    "c": 0.10916,
    "h": 135.1
  },
  "luminance": 0.07817
}

Semantic roles & 50–950 ramp

primary
#305912
secondary
#6B3592
accent
#3FE9A1
background
#F6F8F5
surface
#ECF0E9
border
#C7CBC5
text
#070B03
muted
#7A7C78

Preview Lab

Preview with #305912

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

Preview Lab → · Contrast checker → · Palette generator →

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