#304906#304906

#304906 is a dark, moderate yellow-green. Relative luminance 0.054; OKLCH L 37.1% C 0.094 H 129.1°. Best body text is #FFFFFF at 10.09:1 contrast (WCAG AA passes).

Color values

HEX#304906
RGBrgb(48, 73, 6)
HSLhsl(82, 85%, 15%)
HSVhsv(82, 92%, 29%)
CMYKcmyk(34.2%, 0%, 91.8%, 71.4%)
CIE-LABlab(27.86, -20.62, 33.41)
CIE-LCHlch(27.86, 39.26, 121.68°)
OKLaboklab(37.12% -0.0592 0.0728)
OKLCHoklch(37.12% 0.094 129.1)
XYZxyz(3.6343, 5.4065, 1.0243)
Luminance0.0541 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#304906 #1F0649
analogous
#494006 #304906 #0E4906
triadic
#304906 #063049 #490630
tetradic
#304906 #064940 #1F0649 #49060E
square
#304906 #064940 #1F0649 #49060E
split-complementary
#304906 #060E49 #400649
monochromatic
#131C02 #131C02 #304906 #55820B #7ABA0F

Accessibility & contrast

On white

10.09
#304906 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.08
#304906 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #304906
10.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##304906#FFFFFF#000000##FFFFFF
##3049061.0010.092.0810.09
#FFFFFF10.091.0021.001.00
#0000002.0821.001.0021.00
##FFFFFF10.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4D4300
Deuteranopia (green-blind)
#4A410E
Tritanopia (blue-blind)
#32453D
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #304906;
/* rgb */ color: rgb(48, 73, 6);
/* oklch */ color: oklch(37.1% 0.094 129.1);
Tailwind
colors: {
  custom: {
    50: '#6b7c4d',
    500: '#304906',
    950: '#000000',
  },
}
SCSS
$custom: #304906;
$custom-light: #6b7c4d;
$custom-dark: #000000;
JSON
{
  "hex": "#304906",
  "rgb": {
    "r": 48,
    "g": 73,
    "b": 6
  },
  "hsl": {
    "h": 82.388,
    "s": 84.81,
    "l": 15.49
  },
  "oklch": {
    "l": 0.3712,
    "c": 0.09387,
    "h": 129.1
  },
  "luminance": 0.05407
}

Semantic roles & 50–950 ramp

primary
#304906
secondary
#492388
accent
#2DFB7A
background
#F6F7F4
surface
#EBEEE7
border
#C6C9C3
text
#070902
muted
#7A7B78

Preview Lab

Preview with #304906

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

Preview Lab → · Contrast checker → · Palette generator →

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