#306612#306612

#306612 is a mid, vivid yellow-green. Relative luminance 0.102; OKLCH L 45.6% C 0.127 H 137.1°. Best body text is #FFFFFF at 6.92:1 contrast (WCAG AA passes).

Color values

HEX#306612
RGBrgb(48, 102, 18)
HSLhsl(99, 70%, 24%)
HSVhsv(99, 82%, 40%)
CMYKcmyk(52.9%, 0%, 82.4%, 60%)
CIE-LABlab(38.15, -33.46, 38.77)
CIE-LCHlch(38.15, 51.21, 130.80°)
OKLaboklab(45.57% -0.0929 0.0863)
OKLCHoklch(45.57% 0.127 137.1)
XYZxyz(6.0793, 10.1744, 2.2157)
Luminance0.1017 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#306612 #481266
analogous
#5A6612 #306612 #12661E
triadic
#306612 #123066 #661230
tetradic
#306612 #125A66 #481266 #661E12
square
#306612 #125A66 #481266 #661E12
split-complementary
#306612 #1E1266 #66125A
monochromatic
#0C1A05 #183209 #306612 #489A1B #61CE24

Accessibility & contrast

On white

6.92
#306612 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.03
#306612 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #306612
6.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##306612#FFFFFF#000000##FFFFFF
##3066121.006.923.036.92
#FFFFFF6.921.0021.001.00
#0000003.0321.001.0021.00
##FFFFFF6.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#6A5D00
Deuteranopia (green-blind)
#63581B
Tritanopia (blue-blind)
#2D6256
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #306612;
/* rgb */ color: rgb(48, 102, 18);
/* oklch */ color: oklch(45.6% 0.127 137.1);
Tailwind
colors: {
  custom: {
    50: '#6f9257',
    500: '#306612',
    950: '#000000',
  },
}
SCSS
$custom: #306612;
$custom-light: #6f9257;
$custom-dark: #000000;
JSON
{
  "hex": "#306612",
  "rgb": {
    "r": 48,
    "g": 102,
    "b": 18
  },
  "hsl": {
    "h": 98.571,
    "s": 70,
    "l": 23.529
  },
  "oklch": {
    "l": 0.45573,
    "c": 0.12677,
    "h": 137.1
  },
  "luminance": 0.10175
}

Semantic roles & 50–950 ramp

primary
#306612
secondary
#79369E
accent
#3BEDAD
background
#F6F9F5
surface
#ECF1E9
border
#C7CBC5
text
#080D03
muted
#7B7E78

Preview Lab

Preview with #306612

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

Preview Lab → · Contrast checker → · Palette generator →

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