#306412#306412

#306412 is a dark, vivid yellow-green. Relative luminance 0.098; OKLCH L 45.0% C 0.124 H 136.9°. Best body text is #FFFFFF at 7.10:1 contrast (WCAG AA passes).

Color values

HEX#306412
RGBrgb(48, 100, 18)
HSLhsl(98, 69%, 23%)
HSVhsv(98, 82%, 39%)
CMYKcmyk(52%, 0%, 82%, 60.8%)
CIE-LABlab(37.46, -32.60, 38.10)
CIE-LCHlch(37.46, 50.15, 130.56°)
OKLaboklab(45% -0.0906 0.0849)
OKLCHoklch(45% 0.124 136.9)
XYZxyz(5.8851, 9.7860, 2.1509)
Luminance0.0979 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#306412 #461264
analogous
#596412 #306412 #12641D
triadic
#306412 #123064 #641230
tetradic
#306412 #125964 #461264 #641D12
square
#306412 #125964 #461264 #641D12
split-complementary
#306412 #1D1264 #641259
monochromatic
#0C1A05 #173009 #306412 #49981B #62CC25

Accessibility & contrast

On white

7.10
#306412 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.96
#306412 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #306412
7.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##306412#FFFFFF#000000##FFFFFF
##3064121.007.102.967.10
#FFFFFF7.101.0021.001.00
#0000002.9621.001.0021.00
##FFFFFF7.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#685B00
Deuteranopia (green-blind)
#61571B
Tritanopia (blue-blind)
#2D6055
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #306412;
/* rgb */ color: rgb(48, 100, 18);
/* oklch */ color: oklch(45.0% 0.124 136.9);
Tailwind
colors: {
  custom: {
    50: '#6e9157',
    500: '#306412',
    950: '#000000',
  },
}
SCSS
$custom: #306412;
$custom-light: #6e9157;
$custom-dark: #000000;
JSON
{
  "hex": "#306412",
  "rgb": {
    "r": 48,
    "g": 100,
    "b": 18
  },
  "hsl": {
    "h": 98.049,
    "s": 69.492,
    "l": 23.137
  },
  "oklch": {
    "l": 0.44999,
    "c": 0.12414,
    "h": 136.9
  },
  "luminance": 0.09786
}

Semantic roles & 50–950 ramp

primary
#306412
secondary
#77369C
accent
#3BECAC
background
#F6F8F5
surface
#ECF0E9
border
#C7CBC5
text
#080C03
muted
#7B7D78

Preview Lab

Preview with #306412

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

Preview Lab → · Contrast checker → · Palette generator →

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