#306712#306712

#306712 is a mid, vivid yellow-green. Relative luminance 0.104; OKLCH L 45.9% C 0.128 H 137.2°. Best body text is #FFFFFF at 6.83:1 contrast (WCAG AA passes).

Color values

HEX#306712
RGBrgb(48, 103, 18)
HSLhsl(99, 70%, 24%)
HSVhsv(99, 83%, 40%)
CMYKcmyk(53.4%, 0%, 82.5%, 59.6%)
CIE-LABlab(38.50, -33.89, 39.10)
CIE-LCHlch(38.50, 51.74, 130.91°)
OKLaboklab(45.86% -0.094 0.087)
OKLCHoklch(45.86% 0.128 137.2)
XYZxyz(6.1782, 10.3721, 2.2486)
Luminance0.1037 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#306712 #491267
analogous
#5A6712 #306712 #12671F
triadic
#306712 #123067 #671230
tetradic
#306712 #125A67 #491267 #671F12
square
#306712 #125A67 #491267 #671F12
split-complementary
#306712 #1F1267 #67125A
monochromatic
#0C1A05 #183309 #306712 #489B1B #61CF24

Accessibility & contrast

On white

6.83
#306712 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.07
#306712 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #306712
6.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##306712#FFFFFF#000000##FFFFFF
##3067121.006.833.076.83
#FFFFFF6.831.0021.001.00
#0000003.0721.001.0021.00
##FFFFFF6.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#6B5D00
Deuteranopia (green-blind)
#64591C
Tritanopia (blue-blind)
#2C6357
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #306712;
/* rgb */ color: rgb(48, 103, 18);
/* oklch */ color: oklch(45.9% 0.128 137.2);
Tailwind
colors: {
  custom: {
    50: '#6f9358',
    500: '#306712',
    950: '#000000',
  },
}
SCSS
$custom: #306712;
$custom-light: #6f9358;
$custom-dark: #000000;
JSON
{
  "hex": "#306712",
  "rgb": {
    "r": 48,
    "g": 103,
    "b": 18
  },
  "hsl": {
    "h": 98.824,
    "s": 70.248,
    "l": 23.725
  },
  "oklch": {
    "l": 0.4586,
    "c": 0.12808,
    "h": 137.2
  },
  "luminance": 0.10373
}

Semantic roles & 50–950 ramp

primary
#306712
secondary
#7A369F
accent
#3BEDAE
background
#F7F9F5
surface
#EDF1E9
border
#C8CBC5
text
#080D03
muted
#7B7E78

Preview Lab

Preview with #306712

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

Preview Lab → · Contrast checker → · Palette generator →

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