#306811#306811

#306811 is a mid, vivid yellow-green. Relative luminance 0.106; OKLCH L 46.1% C 0.130 H 137.3°. Best body text is #FFFFFF at 6.74:1 contrast (WCAG AA passes).

Color values

HEX#306811
RGBrgb(48, 104, 17)
HSLhsl(99, 72%, 24%)
HSVhsv(99, 84%, 41%)
CMYKcmyk(53.8%, 0%, 83.7%, 59.2%)
CIE-LABlab(38.84, -34.37, 39.76)
CIE-LCHlch(38.84, 52.56, 130.84°)
OKLaboklab(46.14% -0.0954 0.0882)
OKLCHoklch(46.14% 0.13 137.3)
XYZxyz(6.2702, 10.5690, 2.2398)
Luminance0.1057 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#306811 #491168
analogous
#5B6811 #306811 #11681D
triadic
#306811 #113068 #681130
tetradic
#306811 #115B68 #491168 #681D11
square
#306811 #115B68 #491168 #681D11
split-complementary
#306811 #1D1168 #68115B
monochromatic
#0C1A04 #183308 #306811 #489D1A #61D122

Accessibility & contrast

On white

6.74
#306811 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.11
#306811 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #306811
6.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##306811#FFFFFF#000000##FFFFFF
##3068111.006.743.116.74
#FFFFFF6.741.0021.001.00
#0000003.1121.001.0021.00
##FFFFFF6.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#6C5E00
Deuteranopia (green-blind)
#645A1B
Tritanopia (blue-blind)
#2C6458
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #306811;
/* rgb */ color: rgb(48, 104, 17);
/* oklch */ color: oklch(46.1% 0.130 137.3);
Tailwind
colors: {
  custom: {
    50: '#6f9457',
    500: '#306811',
    950: '#000000',
  },
}
SCSS
$custom: #306811;
$custom-light: #6f9457;
$custom-dark: #000000;
JSON
{
  "hex": "#306811",
  "rgb": {
    "r": 48,
    "g": 104,
    "b": 17
  },
  "hsl": {
    "h": 98.621,
    "s": 71.901,
    "l": 23.725
  },
  "oklch": {
    "l": 0.46141,
    "c": 0.12992,
    "h": 137.3
  },
  "luminance": 0.10569
}

Semantic roles & 50–950 ramp

primary
#306811
secondary
#7A35A0
accent
#39EFAE
background
#F7F9F5
surface
#EDF1E9
border
#C8CBC5
text
#080D03
muted
#7B7E78

Preview Lab

Preview with #306811

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

Preview Lab → · Contrast checker → · Palette generator →

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