#306812#306812

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

Color values

HEX#306812
RGBrgb(48, 104, 18)
HSLhsl(99, 70%, 24%)
HSVhsv(99, 83%, 41%)
CMYKcmyk(53.8%, 0%, 82.7%, 59.2%)
CIE-LABlab(38.85, -34.31, 39.43)
CIE-LCHlch(38.85, 52.26, 131.03°)
OKLaboklab(46.15% -0.0952 0.0877)
OKLCHoklch(46.15% 0.129 137.4)
XYZxyz(6.2782, 10.5722, 2.2820)
Luminance0.1057 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#306812 #4A1268
analogous
#5B6812 #306812 #12681F
triadic
#306812 #123068 #681230
tetradic
#306812 #125B68 #4A1268 #681F12
square
#306812 #125B68 #4A1268 #681F12
split-complementary
#306812 #1F1268 #68125B
monochromatic
#0C1A05 #183409 #306812 #489C1B #60D024

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##306812#FFFFFF#000000##FFFFFF
##3068121.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)
#645A1C
Tritanopia (blue-blind)
#2C6458
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #306812;
/* rgb */ color: rgb(48, 104, 18);
/* oklch */ color: oklch(46.1% 0.129 137.4);
Tailwind
colors: {
  custom: {
    50: '#6f9458',
    500: '#306812',
    950: '#000000',
  },
}
SCSS
$custom: #306812;
$custom-light: #6f9458;
$custom-dark: #000000;
JSON
{
  "hex": "#306812",
  "rgb": {
    "r": 48,
    "g": 104,
    "b": 18
  },
  "hsl": {
    "h": 99.07,
    "s": 70.492,
    "l": 23.922
  },
  "oklch": {
    "l": 0.46147,
    "c": 0.12939,
    "h": 137.4
  },
  "luminance": 0.10573
}

Semantic roles & 50–950 ramp

primary
#306812
secondary
#7B36A0
accent
#3BEDAF
background
#F7F9F5
surface
#EDF1E9
border
#C8CBC5
text
#080D04
muted
#7B7E79

Preview Lab

Preview with #306812

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

Preview Lab → · Contrast checker → · Palette generator →

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