#304806#304806

#304806 is a dark, moderate yellow-green. Relative luminance 0.053; OKLCH L 36.8% C 0.092 H 128.7°. Best body text is #FFFFFF at 10.22:1 contrast (WCAG AA passes).

Color values

HEX#304806
RGBrgb(48, 72, 6)
HSLhsl(82, 85%, 15%)
HSVhsv(82, 92%, 28%)
CMYKcmyk(33.3%, 0%, 91.7%, 71.8%)
CIE-LABlab(27.51, -20.10, 33.09)
CIE-LCHlch(27.51, 38.72, 121.27°)
OKLaboklab(36.83% -0.0578 0.0722)
OKLCHoklch(36.83% 0.092 128.7)
XYZxyz(3.5692, 5.2762, 1.0026)
Luminance0.0528 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#304806 #1E0648
analogous
#483F06 #304806 #0F4806
triadic
#304806 #063048 #480630
tetradic
#304806 #06483F #1E0648 #48060F
square
#304806 #06483F #1E0648 #48060F
split-complementary
#304806 #060F48 #3F0648
monochromatic
#131C02 #131C02 #304806 #56800B #7BB90F

Accessibility & contrast

On white

10.22
#304806 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.06
#304806 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #304806
10.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##304806#FFFFFF#000000##FFFFFF
##3048061.0010.222.0610.22
#FFFFFF10.221.0021.001.00
#0000002.0621.001.0021.00
##FFFFFF10.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4C4200
Deuteranopia (green-blind)
#49400D
Tritanopia (blue-blind)
#32443C
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #304806;
/* rgb */ color: rgb(48, 72, 6);
/* oklch */ color: oklch(36.8% 0.092 128.7);
Tailwind
colors: {
  custom: {
    50: '#6b7b4d',
    500: '#304806',
    950: '#000000',
  },
}
SCSS
$custom: #304806;
$custom-light: #6b7b4d;
$custom-dark: #000000;
JSON
{
  "hex": "#304806",
  "rgb": {
    "r": 48,
    "g": 72,
    "b": 6
  },
  "hsl": {
    "h": 81.818,
    "s": 84.615,
    "l": 15.294
  },
  "oklch": {
    "l": 0.3683,
    "c": 0.09248,
    "h": 128.7
  },
  "luminance": 0.05276
}

Semantic roles & 50–950 ramp

primary
#304806
secondary
#472387
accent
#2DFB78
background
#F6F7F4
surface
#EBEDE7
border
#C6C8C3
text
#070902
muted
#7A7B78

Preview Lab

Preview with #304806

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

Preview Lab → · Contrast checker → · Palette generator →

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