#306512#306512

#306512 is a mid, vivid yellow-green. Relative luminance 0.100; OKLCH L 45.3% C 0.125 H 137.0°. Best body text is #FFFFFF at 7.01:1 contrast (WCAG AA passes).

Color values

HEX#306512
RGBrgb(48, 101, 18)
HSLhsl(98, 70%, 23%)
HSVhsv(98, 82%, 40%)
CMYKcmyk(52.5%, 0%, 82.2%, 60.4%)
CIE-LABlab(37.80, -33.03, 38.43)
CIE-LCHlch(37.80, 50.68, 130.68°)
OKLaboklab(45.29% -0.0917 0.0856)
OKLCHoklch(45.29% 0.125 137)
XYZxyz(5.9816, 9.9790, 2.1831)
Luminance0.0998 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#306512 #471265
analogous
#596512 #306512 #12651D
triadic
#306512 #123065 #651230
tetradic
#306512 #125965 #471265 #651D12
square
#306512 #125965 #471265 #651D12
split-complementary
#306512 #1D1265 #651259
monochromatic
#0C1A05 #173109 #306512 #49991B #61CD25

Accessibility & contrast

On white

7.01
#306512 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

3.00
#306512 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #306512
7.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##306512#FFFFFF#000000##FFFFFF
##3065121.007.013.007.01
#FFFFFF7.011.0021.001.00
#0000003.0021.001.0021.00
##FFFFFF7.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#695C00
Deuteranopia (green-blind)
#62571B
Tritanopia (blue-blind)
#2D6156
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #306512;
/* rgb */ color: rgb(48, 101, 18);
/* oklch */ color: oklch(45.3% 0.125 137.0);
Tailwind
colors: {
  custom: {
    50: '#6f9157',
    500: '#306512',
    950: '#000000',
  },
}
SCSS
$custom: #306512;
$custom-light: #6f9157;
$custom-dark: #000000;
JSON
{
  "hex": "#306512",
  "rgb": {
    "r": 48,
    "g": 101,
    "b": 18
  },
  "hsl": {
    "h": 98.313,
    "s": 69.748,
    "l": 23.333
  },
  "oklch": {
    "l": 0.45286,
    "c": 0.12546,
    "h": 137
  },
  "luminance": 0.09979
}

Semantic roles & 50–950 ramp

primary
#306512
secondary
#78369D
accent
#3BEDAC
background
#F6F9F5
surface
#ECF1E9
border
#C7CBC5
text
#080D03
muted
#7B7E78

Preview Lab

Preview with #306512

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

Preview Lab → · Contrast checker → · Palette generator →

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