#304606#304606

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

Color values

HEX#304606
RGBrgb(48, 70, 6)
HSLhsl(81, 84%, 15%)
HSVhsv(81, 91%, 27%)
CMYKcmyk(31.4%, 0%, 91.4%, 72.5%)
CIE-LABlab(26.80, -19.05, 32.47)
CIE-LCHlch(26.80, 37.64, 120.40°)
OKLaboklab(36.25% -0.055 0.0709)
OKLCHoklch(36.25% 0.09 127.8)
XYZxyz(3.4420, 5.0218, 0.9602)
Luminance0.0502 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#304606 #1C0646
analogous
#463C06 #304606 #104606
triadic
#304606 #063046 #460630
tetradic
#304606 #06463C #1C0646 #460610
square
#304606 #06463C #1C0646 #460610
split-complementary
#304606 #061046 #3C0646
monochromatic
#131C02 #131C02 #304606 #577E0B #7DB710

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##304606#FFFFFF#000000##FFFFFF
##3046061.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)
#473F0D
Tritanopia (blue-blind)
#32423B
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #304606;
/* rgb */ color: rgb(48, 70, 6);
/* oklch */ color: oklch(36.3% 0.090 127.8);
Tailwind
colors: {
  custom: {
    50: '#6b794d',
    500: '#304606',
    950: '#000000',
  },
}
SCSS
$custom: #304606;
$custom-light: #6b794d;
$custom-dark: #000000;
JSON
{
  "hex": "#304606",
  "rgb": {
    "r": 48,
    "g": 70,
    "b": 6
  },
  "hsl": {
    "h": 80.625,
    "s": 84.211,
    "l": 14.902
  },
  "oklch": {
    "l": 0.36252,
    "c": 0.08967,
    "h": 127.8
  },
  "luminance": 0.05022
}

Semantic roles & 50–950 ramp

primary
#304606
secondary
#442285
accent
#2DFA74
background
#F6F7F4
surface
#EBEDE7
border
#C6C8C3
text
#070901
muted
#7A7B77

Preview Lab

Preview with #304606

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

Preview Lab → · Contrast checker → · Palette generator →

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