#306312#306312

#306312 is a dark, vivid yellow-green. Relative luminance 0.096; OKLCH L 44.7% C 0.123 H 136.7°. Best body text is #FFFFFF at 7.19:1 contrast (WCAG AA passes).

Color values

HEX#306312
RGBrgb(48, 99, 18)
HSLhsl(98, 69%, 23%)
HSVhsv(98, 82%, 39%)
CMYKcmyk(51.5%, 0%, 81.8%, 61.2%)
CIE-LABlab(37.11, -32.17, 37.76)
CIE-LCHlch(37.11, 49.61, 130.43°)
OKLaboklab(44.71% -0.0894 0.0842)
OKLCHoklch(44.71% 0.123 136.7)
XYZxyz(5.7898, 9.5953, 2.1191)
Luminance0.0960 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#306312 #451263
analogous
#586312 #306312 #12631C
triadic
#306312 #123063 #631230
tetradic
#306312 #125863 #451263 #631C12
square
#306312 #125863 #451263 #631C12
split-complementary
#306312 #1C1263 #631258
monochromatic
#0D1A05 #172F09 #306312 #49971B #62CB25

Accessibility & contrast

On white

7.19
#306312 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.92
#306312 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #306312
7.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##306312#FFFFFF#000000##FFFFFF
##3063121.007.192.927.19
#FFFFFF7.191.0021.001.00
#0000002.9221.001.0021.00
##FFFFFF7.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#675A01
Deuteranopia (green-blind)
#60561B
Tritanopia (blue-blind)
#2D5F54
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #306312;
/* rgb */ color: rgb(48, 99, 18);
/* oklch */ color: oklch(44.7% 0.123 136.7);
Tailwind
colors: {
  custom: {
    50: '#6e9057',
    500: '#306312',
    950: '#000000',
  },
}
SCSS
$custom: #306312;
$custom-light: #6e9057;
$custom-dark: #000000;
JSON
{
  "hex": "#306312",
  "rgb": {
    "r": 48,
    "g": 99,
    "b": 18
  },
  "hsl": {
    "h": 97.778,
    "s": 69.231,
    "l": 22.941
  },
  "oklch": {
    "l": 0.44712,
    "c": 0.12282,
    "h": 136.7
  },
  "luminance": 0.09596
}

Semantic roles & 50–950 ramp

primary
#306312
secondary
#76369B
accent
#3CECAB
background
#F6F8F5
surface
#ECF0E9
border
#C7CBC5
text
#080C03
muted
#7B7D78

Preview Lab

Preview with #306312

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

Preview Lab → · Contrast checker → · Palette generator →

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