#304608#304608

#304608 is a dark, moderate yellow-green. Relative luminance 0.050; OKLCH L 36.3% C 0.088 H 128.0°. Best body text is #FFFFFF at 10.47:1 contrast (WCAG AA passes).

Color values

HEX#304608
RGBrgb(48, 70, 8)
HSLhsl(81, 79%, 15%)
HSVhsv(81, 89%, 27%)
CMYKcmyk(31.4%, 0%, 88.6%, 72.5%)
CIE-LABlab(26.81, -18.92, 31.68)
CIE-LCHlch(26.81, 36.90, 120.86°)
OKLaboklab(36.27% -0.0545 0.0696)
OKLCHoklch(36.27% 0.088 128)
XYZxyz(3.4529, 5.0261, 1.0179)
Luminance0.0503 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#304608 #1E0846
analogous
#463D08 #304608 #114608
triadic
#304608 #083046 #460830
tetradic
#304608 #08463D #1E0846 #460811
square
#304608 #08463D #1E0846 #460811
split-complementary
#304608 #081146 #3D0846
monochromatic
#131B03 #131B03 #304608 #567D0E #7BB415

Accessibility & contrast

On white

10.47
#304608 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.01
#304608 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #304608
10.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##304608#FFFFFF#000000##FFFFFF
##3046081.0010.472.0110.47
#FFFFFF10.471.0021.001.00
#0000002.0121.001.0021.00
##FFFFFF10.471.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #304608;
/* rgb */ color: rgb(48, 70, 8);
/* oklch */ color: oklch(36.3% 0.088 128.0);
Tailwind
colors: {
  custom: {
    50: '#6b794e',
    500: '#304608',
    950: '#000000',
  },
}
SCSS
$custom: #304608;
$custom-light: #6b794e;
$custom-dark: #000000;
JSON
{
  "hex": "#304608",
  "rgb": {
    "r": 48,
    "g": 70,
    "b": 8
  },
  "hsl": {
    "h": 81.29,
    "s": 79.487,
    "l": 15.294
  },
  "oklch": {
    "l": 0.36266,
    "c": 0.0884,
    "h": 128
  },
  "luminance": 0.05026
}

Semantic roles & 50–950 ramp

primary
#304608
secondary
#472684
accent
#32F677
background
#F6F7F4
surface
#EBEDE7
border
#C6C8C3
text
#070902
muted
#7A7B78

Preview Lab

Preview with #304608

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

Preview Lab → · Contrast checker → · Palette generator →

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