#304604#304604

#304604 is a dark, moderate yellow-green. Relative luminance 0.050; OKLCH L 36.2% C 0.091 H 127.6°. Best body text is #FFFFFF at 10.48:1 contrast (WCAG AA passes).

Color values

HEX#304604
RGBrgb(48, 70, 4)
HSLhsl(80, 89%, 15%)
HSVhsv(80, 94%, 27%)
CMYKcmyk(31.4%, 0%, 94.3%, 72.5%)
CIE-LABlab(26.78, -19.17, 33.27)
CIE-LCHlch(26.78, 38.40, 119.95°)
OKLaboklab(36.24% -0.0555 0.0721)
OKLCHoklch(36.24% 0.091 127.6)
XYZxyz(3.4310, 5.0174, 0.9025)
Luminance0.0502 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#304604 #1A0446
analogous
#463B04 #304604 #0F4604
triadic
#304604 #043046 #460430
tetradic
#304604 #04463B #1A0446 #46040F
square
#304604 #04463B #1A0446 #46040F
split-complementary
#304604 #040F46 #3B0446
monochromatic
#141D02 #141D02 #304604 #588007 #7FBA0B

Accessibility & contrast

On white

10.48
#304604 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.00
#304604 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #304604
10.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##304604#FFFFFF#000000##FFFFFF
##3046041.0010.482.0010.48
#FFFFFF10.481.0021.001.00
#0000002.0021.001.0021.00
##FFFFFF10.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4A4000
Deuteranopia (green-blind)
#473F0B
Tritanopia (blue-blind)
#32423A
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #304604;
/* rgb */ color: rgb(48, 70, 4);
/* oklch */ color: oklch(36.2% 0.091 127.6);
Tailwind
colors: {
  custom: {
    50: '#6b794c',
    500: '#304604',
    950: '#000000',
  },
}
SCSS
$custom: #304604;
$custom-light: #6b794c;
$custom-dark: #000000;
JSON
{
  "hex": "#304604",
  "rgb": {
    "r": 48,
    "g": 70,
    "b": 4
  },
  "hsl": {
    "h": 80,
    "s": 89.189,
    "l": 14.51
  },
  "oklch": {
    "l": 0.36238,
    "c": 0.09097,
    "h": 127.6
  },
  "luminance": 0.05017
}

Semantic roles & 50–950 ramp

primary
#304604
secondary
#421F87
accent
#29FF70
background
#F6F7F4
surface
#EBEDE7
border
#C6C8C3
text
#070901
muted
#7A7B77

Preview Lab

Preview with #304604

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

Preview Lab → · Contrast checker → · Palette generator →

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