#304D16#304D16

#304D16 is a dark, moderate yellow-green. Relative luminance 0.060; OKLCH L 38.4% C 0.088 H 132.9°. Best body text is #FFFFFF at 9.55:1 contrast (WCAG AA passes).

Color values

HEX#304D16
RGBrgb(48, 77, 22)
HSLhsl(92, 56%, 19%)
HSVhsv(92, 71%, 30%)
CMYKcmyk(37.7%, 0%, 71.4%, 69.8%)
CIE-LABlab(29.40, -21.50, 28.24)
CIE-LCHlch(29.40, 35.50, 127.29°)
OKLaboklab(38.41% -0.0602 0.0649)
OKLCHoklch(38.41% 0.088 132.9)
XYZxyz(4.0176, 5.9939, 1.7042)
Luminance0.0599 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#304D16 #33164D
analogous
#4C4D16 #304D16 #164D17
triadic
#304D16 #16304D #4D1630
tetradic
#304D16 #164C4D #33164D #4D1716
square
#304D16 #164C4D #33164D #4D1716
split-complementary
#304D16 #17164D #4D164C
monochromatic
#0F1807 #121D08 #304D16 #4E7D24 #6BAC31

Accessibility & contrast

On white

9.55
#304D16 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.20
#304D16 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #304D16
9.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##304D16#FFFFFF#000000##FFFFFF
##304D161.009.552.209.55
#FFFFFF9.551.0021.001.00
#0000002.2021.001.0021.00
##FFFFFF9.551.0021.001.00

Color blindness preview

Protanopia (red-blind)
#50470F
Deuteranopia (green-blind)
#4C441A
Tritanopia (blue-blind)
#304A42
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #304d16;
/* rgb */ color: rgb(48, 77, 22);
/* oklch */ color: oklch(38.4% 0.088 132.9);
Tailwind
colors: {
  custom: {
    50: '#6b7f56',
    500: '#304d16',
    950: '#000000',
  },
}
SCSS
$custom: #304d16;
$custom-light: #6b7f56;
$custom-dark: #000000;
JSON
{
  "hex": "#304d16",
  "rgb": {
    "r": 48,
    "g": 77,
    "b": 22
  },
  "hsl": {
    "h": 91.636,
    "s": 55.556,
    "l": 19.412
  },
  "oklch": {
    "l": 0.38407,
    "c": 0.08849,
    "h": 132.9
  },
  "luminance": 0.05994
}

Semantic roles & 50–950 ramp

primary
#304D16
secondary
#613A85
accent
#49DF98
background
#F6F7F5
surface
#EBEEE9
border
#C6C9C5
text
#070A03
muted
#7A7C78

Preview Lab

Preview with #304D16

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

Preview Lab → · Contrast checker → · Palette generator →

#304D16 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva