#305212#305212

#305212 is a dark, moderate yellow-green. Relative luminance 0.067; OKLCH L 39.8% C 0.099 H 133.5°. Best body text is #FFFFFF at 8.97:1 contrast (WCAG AA passes).

Color values

HEX#305212
RGBrgb(48, 82, 18)
HSLhsl(92, 64%, 20%)
HSVhsv(92, 78%, 32%)
CMYKcmyk(41.5%, 0%, 78%, 67.8%)
CIE-LABlab(31.13, -24.36, 31.89)
CIE-LCHlch(31.13, 40.13, 127.37°)
OKLaboklab(39.81% -0.0683 0.0719)
OKLCHoklch(39.81% 0.099 133.5)
XYZxyz(4.3453, 6.7064, 1.6377)
Luminance0.0671 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#305212 #341252
analogous
#505212 #305212 #125214
triadic
#305212 #123052 #521230
tetradic
#305212 #125052 #341252 #521412
square
#305212 #125052 #341252 #521412
split-complementary
#305212 #141252 #521250
monochromatic
#0F1906 #132007 #305212 #4D841D #6BB628

Accessibility & contrast

On white

8.97
#305212 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.34
#305212 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #305212
8.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##305212#FFFFFF#000000##FFFFFF
##3052121.008.972.348.97
#FFFFFF8.971.0021.001.00
#0000002.3421.001.0021.00
##FFFFFF8.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#564B07
Deuteranopia (green-blind)
#514818
Tritanopia (blue-blind)
#304E45
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #305212;
/* rgb */ color: rgb(48, 82, 18);
/* oklch */ color: oklch(39.8% 0.099 133.5);
Tailwind
colors: {
  custom: {
    50: '#6c8355',
    500: '#305212',
    950: '#000000',
  },
}
SCSS
$custom: #305212;
$custom-light: #6c8355;
$custom-dark: #000000;
JSON
{
  "hex": "#305212",
  "rgb": {
    "r": 48,
    "g": 82,
    "b": 18
  },
  "hsl": {
    "h": 91.875,
    "s": 64,
    "l": 19.608
  },
  "oklch": {
    "l": 0.3981,
    "c": 0.09918,
    "h": 133.5
  },
  "luminance": 0.06707
}

Semantic roles & 50–950 ramp

primary
#305212
secondary
#63358B
accent
#41E799
background
#F6F8F5
surface
#EBEFE9
border
#C6CAC5
text
#070A03
muted
#7A7C78

Preview Lab

Preview with #305212

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

Preview Lab → · Contrast checker → · Palette generator →

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