#305811#305811

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

Color values

HEX#305811
RGBrgb(48, 88, 17)
HSLhsl(94, 68%, 21%)
HSVhsv(94, 81%, 35%)
CMYKcmyk(45.5%, 0%, 80.7%, 65.5%)
CIE-LABlab(33.24, -27.30, 34.39)
CIE-LCHlch(33.24, 43.91, 128.44°)
OKLaboklab(41.53% -0.0764 0.077)
OKLCHoklch(41.53% 0.108 134.8)
XYZxyz(4.8097, 7.6480, 1.7530)
Luminance0.0765 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#305811 #391158
analogous
#535811 #305811 #115815
triadic
#305811 #113058 #581130
tetradic
#305811 #115358 #391158 #581511
square
#305811 #115358 #391158 #581511
split-complementary
#305811 #151158 #581153
monochromatic
#0E1A05 #142507 #305811 #4C8B1B #68BF25

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##305811#FFFFFF#000000##FFFFFF
##3058111.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)
#5C5004
Deuteranopia (green-blind)
#564D18
Tritanopia (blue-blind)
#2F544A
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #305811;
/* rgb */ color: rgb(48, 88, 17);
/* oklch */ color: oklch(41.5% 0.108 134.8);
Tailwind
colors: {
  custom: {
    50: '#6d8755',
    500: '#305811',
    950: '#000000',
  },
}
SCSS
$custom: #305811;
$custom-light: #6d8755;
$custom-dark: #000000;
JSON
{
  "hex": "#305811",
  "rgb": {
    "r": 48,
    "g": 88,
    "b": 17
  },
  "hsl": {
    "h": 93.803,
    "s": 67.619,
    "l": 20.588
  },
  "oklch": {
    "l": 0.41534,
    "c": 0.10841,
    "h": 134.8
  },
  "luminance": 0.07648
}

Semantic roles & 50–950 ramp

primary
#305811
secondary
#683491
accent
#3DEA9F
background
#F6F8F5
surface
#ECEFE9
border
#C7CAC5
text
#070B03
muted
#7A7C78

Preview Lab

Preview with #305811

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

Preview Lab → · Contrast checker → · Palette generator →

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