#304A17#304A17

#304A17 is a dark, moderate yellow-green. Relative luminance 0.056; OKLCH L 37.6% C 0.083 H 132.1°. Best body text is #FFFFFF at 9.92:1 contrast (WCAG AA passes).

Color values

HEX#304A17
RGBrgb(48, 74, 23)
HSLhsl(91, 53%, 19%)
HSVhsv(91, 69%, 29%)
CMYKcmyk(35.1%, 0%, 68.9%, 71%)
CIE-LABlab(28.35, -19.85, 26.60)
CIE-LCHlch(28.35, 33.19, 126.74°)
OKLaboklab(37.56% -0.0556 0.0615)
OKLCHoklch(37.56% 0.083 132.1)
XYZxyz(3.8223, 5.5877, 1.6876)
Luminance0.0559 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#304A17 #31174A
analogous
#4A4A17 #304A17 #174A18
triadic
#304A17 #17304A #4A1730
tetradic
#304A17 #174A4A #31174A #4A1817
square
#304A17 #174A4A #31174A #4A1817
split-complementary
#304A17 #18174A #4A174A
monochromatic
#0F1707 #121B08 #304A17 #4E7926 #6DA734

Accessibility & contrast

On white

9.92
#304A17 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.12
#304A17 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #304A17
9.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##304A17#FFFFFF#000000##FFFFFF
##304A171.009.922.129.92
#FFFFFF9.921.0021.001.00
#0000002.1221.001.0021.00
##FFFFFF9.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4D4411
Deuteranopia (green-blind)
#4A421B
Tritanopia (blue-blind)
#31473F
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #304a17;
/* rgb */ color: rgb(48, 74, 23);
/* oklch */ color: oklch(37.6% 0.083 132.1);
Tailwind
colors: {
  custom: {
    50: '#6a7c56',
    500: '#304a17',
    950: '#000000',
  },
}
SCSS
$custom: #304a17;
$custom-light: #6a7c56;
$custom-dark: #000000;
JSON
{
  "hex": "#304a17",
  "rgb": {
    "r": 48,
    "g": 74,
    "b": 23
  },
  "hsl": {
    "h": 90.588,
    "s": 52.577,
    "l": 19.02
  },
  "oklch": {
    "l": 0.37556,
    "c": 0.08289,
    "h": 132.1
  },
  "luminance": 0.05588
}

Semantic roles & 50–950 ramp

primary
#304A17
secondary
#5F3C81
accent
#4CDC95
background
#F6F7F5
surface
#EBEEE9
border
#C6C9C5
text
#070903
muted
#7A7B78

Preview Lab

Preview with #304A17

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

Preview Lab → · Contrast checker → · Palette generator →

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