#306212#306212

#306212 is a dark, vivid yellow-green. Relative luminance 0.094; OKLCH L 44.4% C 0.121 H 136.6°. Best body text is #FFFFFF at 7.29:1 contrast (WCAG AA passes).

Color values

HEX#306212
RGBrgb(48, 98, 18)
HSLhsl(98, 69%, 23%)
HSVhsv(98, 82%, 38%)
CMYKcmyk(51%, 0%, 81.6%, 61.6%)
CIE-LABlab(36.76, -31.74, 37.43)
CIE-LCHlch(36.76, 49.07, 130.30°)
OKLaboklab(44.42% -0.0883 0.0835)
OKLCHoklch(44.42% 0.121 136.6)
XYZxyz(5.6956, 9.4070, 2.0878)
Luminance0.0941 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#306212 #441262
analogous
#586212 #306212 #12621C
triadic
#306212 #123062 #621230
tetradic
#306212 #125862 #441262 #621C12
square
#306212 #125862 #441262 #621C12
split-complementary
#306212 #1C1262 #621258
monochromatic
#0D1A05 #172E09 #306212 #49961B #63C925

Accessibility & contrast

On white

7.29
#306212 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.88
#306212 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #306212
7.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##306212#FFFFFF#000000##FFFFFF
##3062121.007.292.887.29
#FFFFFF7.291.0021.001.00
#0000002.8821.001.0021.00
##FFFFFF7.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#665901
Deuteranopia (green-blind)
#5F551B
Tritanopia (blue-blind)
#2D5E53
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #306212;
/* rgb */ color: rgb(48, 98, 18);
/* oklch */ color: oklch(44.4% 0.121 136.6);
Tailwind
colors: {
  custom: {
    50: '#6e8f57',
    500: '#306212',
    950: '#000000',
  },
}
SCSS
$custom: #306212;
$custom-light: #6e8f57;
$custom-dark: #000000;
JSON
{
  "hex": "#306212",
  "rgb": {
    "r": 48,
    "g": 98,
    "b": 18
  },
  "hsl": {
    "h": 97.5,
    "s": 68.966,
    "l": 22.745
  },
  "oklch": {
    "l": 0.44424,
    "c": 0.12148,
    "h": 136.6
  },
  "luminance": 0.09407
}

Semantic roles & 50–950 ramp

primary
#306212
secondary
#74369A
accent
#3CECAA
background
#F6F8F5
surface
#ECF0E9
border
#C7CBC5
text
#080C03
muted
#7B7D78

Preview Lab

Preview with #306212

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

Preview Lab → · Contrast checker → · Palette generator →

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