#306012#306012

#306012 is a dark, moderate yellow-green. Relative luminance 0.090; OKLCH L 43.8% C 0.119 H 136.3°. Best body text is #FFFFFF at 7.48:1 contrast (WCAG AA passes).

Color values

HEX#306012
RGBrgb(48, 96, 18)
HSLhsl(97, 68%, 22%)
HSVhsv(97, 81%, 38%)
CMYKcmyk(50%, 0%, 81.3%, 62.4%)
CIE-LABlab(36.06, -30.86, 36.75)
CIE-LCHlch(36.06, 47.99, 130.02°)
OKLaboklab(43.85% -0.0859 0.0821)
OKLCHoklch(43.85% 0.119 136.3)
XYZxyz(5.5108, 9.0374, 2.0262)
Luminance0.0904 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#306012 #421260
analogous
#576012 #306012 #12601B
triadic
#306012 #123060 #601230
tetradic
#306012 #125760 #421260 #601B12
square
#306012 #125760 #421260 #601B12
split-complementary
#306012 #1B1260 #601257
monochromatic
#0D1A05 #162C08 #306012 #4A941C #64C725

Accessibility & contrast

On white

7.48
#306012 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.81
#306012 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #306012
7.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##306012#FFFFFF#000000##FFFFFF
##3060121.007.482.817.48
#FFFFFF7.481.0021.001.00
#0000002.8121.001.0021.00
##FFFFFF7.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#645702
Deuteranopia (green-blind)
#5D531A
Tritanopia (blue-blind)
#2E5C51
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #306012;
/* rgb */ color: rgb(48, 96, 18);
/* oklch */ color: oklch(43.8% 0.119 136.3);
Tailwind
colors: {
  custom: {
    50: '#6e8d57',
    500: '#306012',
    950: '#000000',
  },
}
SCSS
$custom: #306012;
$custom-light: #6e8d57;
$custom-dark: #000000;
JSON
{
  "hex": "#306012",
  "rgb": {
    "r": 48,
    "g": 96,
    "b": 18
  },
  "hsl": {
    "h": 96.923,
    "s": 68.421,
    "l": 22.353
  },
  "oklch": {
    "l": 0.43849,
    "c": 0.11879,
    "h": 136.3
  },
  "luminance": 0.09038
}

Semantic roles & 50–950 ramp

primary
#306012
secondary
#723698
accent
#3DEBA8
background
#F6F8F5
surface
#ECF0E9
border
#C7CBC5
text
#070C03
muted
#7A7D78

Preview Lab

Preview with #306012

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

Preview Lab → · Contrast checker → · Palette generator →

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