#304911#304911

#304911 is a dark, moderate yellow-green. Relative luminance 0.054; OKLCH L 37.2% C 0.087 H 130.5°. Best body text is #FFFFFF at 10.06:1 contrast (WCAG AA passes).

Color values

HEX#304911
RGBrgb(48, 73, 17)
HSLhsl(87, 62%, 18%)
HSVhsv(87, 77%, 29%)
CMYKcmyk(34.2%, 0%, 76.7%, 71.4%)
CIE-LABlab(27.94, -19.89, 29.08)
CIE-LCHlch(27.94, 35.23, 124.37°)
OKLaboklab(37.2% -0.0563 0.0658)
OKLCHoklch(37.2% 0.087 130.5)
XYZxyz(3.7026, 5.4338, 1.3840)
Luminance0.0543 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#304911 #2A1149
analogous
#494611 #304911 #144911
triadic
#304911 #113049 #491130
tetradic
#304911 #114946 #2A1149 #491114
square
#304911 #114946 #2A1149 #491114
split-complementary
#304911 #111449 #461149
monochromatic
#101906 #101906 #304911 #517B1D #71AC28

Accessibility & contrast

On white

10.06
#304911 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.09
#304911 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #304911
10.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##304911#FFFFFF#000000##FFFFFF
##3049111.0010.062.0910.06
#FFFFFF10.061.0021.001.00
#0000002.0921.001.0021.00
##FFFFFF10.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4D4308
Deuteranopia (green-blind)
#494116
Tritanopia (blue-blind)
#31463E
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #304911;
/* rgb */ color: rgb(48, 73, 17);
/* oklch */ color: oklch(37.2% 0.087 130.5);
Tailwind
colors: {
  custom: {
    50: '#6b7c53',
    500: '#304911',
    950: '#000000',
  },
}
SCSS
$custom: #304911;
$custom-light: #6b7c53;
$custom-dark: #000000;
JSON
{
  "hex": "#304911",
  "rgb": {
    "r": 48,
    "g": 73,
    "b": 17
  },
  "hsl": {
    "h": 86.786,
    "s": 62.222,
    "l": 17.647
  },
  "oklch": {
    "l": 0.37204,
    "c": 0.0866,
    "h": 130.5
  },
  "luminance": 0.05434
}

Semantic roles & 50–950 ramp

primary
#304911
secondary
#573382
accent
#43E58B
background
#F6F7F4
surface
#EBEEE7
border
#C6C9C3
text
#070902
muted
#7A7B78

Preview Lab

Preview with #304911

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

Preview Lab → · Contrast checker → · Palette generator →

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