#305812#305812

#305812 is a dark, moderate yellow-green. Relative luminance 0.077; OKLCH L 41.5% C 0.108 H 134.9°. Best body text is #FFFFFF at 8.30:1 contrast (WCAG AA passes).

Color values

HEX#305812
RGBrgb(48, 88, 18)
HSLhsl(94, 66%, 21%)
HSVhsv(94, 80%, 35%)
CMYKcmyk(45.5%, 0%, 79.5%, 65.5%)
CIE-LABlab(33.25, -27.22, 34.00)
CIE-LCHlch(33.25, 43.56, 128.68°)
OKLaboklab(41.54% -0.0761 0.0763)
OKLCHoklch(41.54% 0.108 134.9)
XYZxyz(4.8177, 7.6512, 1.7951)
Luminance0.0765 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#305812 #3A1258
analogous
#535812 #305812 #125817
triadic
#305812 #123058 #581230
tetradic
#305812 #125358 #3A1258 #581712
square
#305812 #125358 #3A1258 #581712
split-complementary
#305812 #171258 #581253
monochromatic
#0E1905 #142508 #305812 #4C8B1C #67BE27

Accessibility & contrast

On white

8.30
#305812 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.53
#305812 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #305812
8.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##305812#FFFFFF#000000##FFFFFF
##3058121.008.302.538.30
#FFFFFF8.301.0021.001.00
#0000002.5321.001.0021.00
##FFFFFF8.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#5C5005
Deuteranopia (green-blind)
#564D19
Tritanopia (blue-blind)
#2F544B
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #305812;
/* rgb */ color: rgb(48, 88, 18);
/* oklch */ color: oklch(41.5% 0.108 134.9);
Tailwind
colors: {
  custom: {
    50: '#6d8755',
    500: '#305812',
    950: '#000000',
  },
}
SCSS
$custom: #305812;
$custom-light: #6d8755;
$custom-dark: #000000;
JSON
{
  "hex": "#305812",
  "rgb": {
    "r": 48,
    "g": 88,
    "b": 18
  },
  "hsl": {
    "h": 94.286,
    "s": 66.038,
    "l": 20.784
  },
  "oklch": {
    "l": 0.41542,
    "c": 0.10776,
    "h": 134.9
  },
  "luminance": 0.07651
}

Semantic roles & 50–950 ramp

primary
#305812
secondary
#693591
accent
#3FE9A0
background
#F6F8F5
surface
#ECEFE9
border
#C7CAC5
text
#070B03
muted
#7A7C78

Preview Lab

Preview with #305812

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

Preview Lab → · Contrast checker → · Palette generator →

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