#305512#305512

#305512 is a dark, moderate yellow-green. Relative luminance 0.072; OKLCH L 40.7% C 0.104 H 134.3°. Best body text is #FFFFFF at 8.63:1 contrast (WCAG AA passes).

Color values

HEX#305512
RGBrgb(48, 85, 18)
HSLhsl(93, 65%, 20%)
HSVhsv(93, 79%, 33%)
CMYKcmyk(43.5%, 0%, 78.8%, 66.7%)
CIE-LABlab(32.19, -25.81, 32.95)
CIE-LCHlch(32.19, 41.85, 128.07°)
OKLaboklab(40.68% -0.0723 0.0741)
OKLCHoklch(40.68% 0.104 134.3)
XYZxyz(4.5765, 7.1688, 1.7147)
Luminance0.0717 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#305512 #371255
analogous
#525512 #305512 #125515
triadic
#305512 #123055 #551230
tetradic
#305512 #125255 #371255 #551512
square
#305512 #125255 #371255 #551512
split-complementary
#305512 #151255 #551252
monochromatic
#0E1905 #132207 #305512 #4D881D #69BA27

Accessibility & contrast

On white

8.63
#305512 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.43
#305512 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #305512
8.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##305512#FFFFFF#000000##FFFFFF
##3055121.008.632.438.63
#FFFFFF8.631.0021.001.00
#0000002.4321.001.0021.00
##FFFFFF8.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#594E06
Deuteranopia (green-blind)
#544B18
Tritanopia (blue-blind)
#305148
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #305512;
/* rgb */ color: rgb(48, 85, 18);
/* oklch */ color: oklch(40.7% 0.104 134.3);
Tailwind
colors: {
  custom: {
    50: '#6c8555',
    500: '#305512',
    950: '#000000',
  },
}
SCSS
$custom: #305512;
$custom-light: #6c8555;
$custom-dark: #000000;
JSON
{
  "hex": "#305512",
  "rgb": {
    "r": 48,
    "g": 85,
    "b": 18
  },
  "hsl": {
    "h": 93.134,
    "s": 65.049,
    "l": 20.196
  },
  "oklch": {
    "l": 0.40676,
    "c": 0.10351,
    "h": 134.3
  },
  "luminance": 0.07169
}

Semantic roles & 50–950 ramp

primary
#305512
secondary
#66358E
accent
#40E89D
background
#F6F8F5
surface
#ECEFE9
border
#C7CAC5
text
#070B03
muted
#7A7C78

Preview Lab

Preview with #305512

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

Preview Lab → · Contrast checker → · Palette generator →

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