#306912#306912

#306912 is a mid, vivid yellow-green. Relative luminance 0.108; OKLCH L 46.4% C 0.131 H 137.5°. Best body text is #FFFFFF at 6.66:1 contrast (WCAG AA passes).

Color values

HEX#306912
RGBrgb(48, 105, 18)
HSLhsl(99, 71%, 24%)
HSVhsv(99, 83%, 41%)
CMYKcmyk(54.3%, 0%, 82.9%, 58.8%)
CIE-LABlab(39.20, -34.73, 39.76)
CIE-LCHlch(39.20, 52.79, 131.14°)
OKLaboklab(46.43% -0.0963 0.0883)
OKLCHoklch(46.43% 0.131 137.5)
XYZxyz(6.3795, 10.7747, 2.3157)
Luminance0.1077 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#306912 #4B1269
analogous
#5C6912 #306912 #12691F
triadic
#306912 #123069 #691230
tetradic
#306912 #125C69 #4B1269 #691F12
square
#306912 #125C69 #4B1269 #691F12
split-complementary
#306912 #1F1269 #69125C
monochromatic
#0C1A04 #183509 #306912 #489D1B #60D124

Accessibility & contrast

On white

6.66
#306912 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.16
#306912 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #306912
6.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##306912#FFFFFF#000000##FFFFFF
##3069121.006.663.166.66
#FFFFFF6.661.0021.001.00
#0000003.1621.001.0021.00
##FFFFFF6.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#6D5F00
Deuteranopia (green-blind)
#655B1C
Tritanopia (blue-blind)
#2C6559
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #306912;
/* rgb */ color: rgb(48, 105, 18);
/* oklch */ color: oklch(46.4% 0.131 137.5);
Tailwind
colors: {
  custom: {
    50: '#6f9458',
    500: '#306912',
    950: '#000000',
  },
}
SCSS
$custom: #306912;
$custom-light: #6f9458;
$custom-dark: #000000;
JSON
{
  "hex": "#306912",
  "rgb": {
    "r": 48,
    "g": 105,
    "b": 18
  },
  "hsl": {
    "h": 99.31,
    "s": 70.732,
    "l": 24.118
  },
  "oklch": {
    "l": 0.46434,
    "c": 0.13068,
    "h": 137.5
  },
  "luminance": 0.10775
}

Semantic roles & 50–950 ramp

primary
#306912
secondary
#7C36A1
accent
#3AEDB0
background
#F7F9F5
surface
#EDF1E9
border
#C8CBC5
text
#080D04
muted
#7B7E79

Preview Lab

Preview with #306912

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

Preview Lab → · Contrast checker → · Palette generator →

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