#304716#304716

#304716 is a dark, moderate yellow-green. Relative luminance 0.052; OKLCH L 36.7% C 0.079 H 130.7°. Best body text is #FFFFFF at 10.30:1 contrast (WCAG AA passes).

Color values

HEX#304716
RGBrgb(48, 71, 22)
HSLhsl(88, 53%, 18%)
HSVhsv(88, 69%, 28%)
CMYKcmyk(32.4%, 0%, 69%, 72.2%)
CIE-LABlab(27.28, -18.36, 25.93)
CIE-LCHlch(27.28, 31.77, 125.30°)
OKLaboklab(36.68% -0.0516 0.06)
OKLCHoklch(36.68% 0.079 130.7)
XYZxyz(3.6169, 5.1927, 1.5706)
Luminance0.0519 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#304716 #2D1647
analogous
#474516 #304716 #174716
triadic
#304716 #163047 #471630
tetradic
#304716 #164745 #2D1647 #471617
square
#304716 #164745 #2D1647 #471617
split-complementary
#304716 #161747 #451647
monochromatic
#101707 #101808 #304716 #507624 #6FA433

Accessibility & contrast

On white

10.30
#304716 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.04
#304716 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #304716
10.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##304716#FFFFFF#000000##FFFFFF
##3047161.0010.302.0410.30
#FFFFFF10.301.0021.001.00
#0000002.0421.001.0021.00
##FFFFFF10.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4A4210
Deuteranopia (green-blind)
#47401A
Tritanopia (blue-blind)
#31443D
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #304716;
/* rgb */ color: rgb(48, 71, 22);
/* oklch */ color: oklch(36.7% 0.079 130.7);
Tailwind
colors: {
  custom: {
    50: '#6a7a55',
    500: '#304716',
    950: '#000000',
  },
}
SCSS
$custom: #304716;
$custom-light: #6a7a55;
$custom-dark: #000000;
JSON
{
  "hex": "#304716",
  "rgb": {
    "r": 48,
    "g": 71,
    "b": 22
  },
  "hsl": {
    "h": 88.163,
    "s": 52.688,
    "l": 18.235
  },
  "oklch": {
    "l": 0.36682,
    "c": 0.07909,
    "h": 130.7
  },
  "luminance": 0.05193
}

Semantic roles & 50–950 ramp

primary
#304716
secondary
#5A3A7E
accent
#4CDC8F
background
#F6F7F5
surface
#EBEDE9
border
#C6C8C5
text
#070903
muted
#7A7B78

Preview Lab

Preview with #304716

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

Preview Lab → · Contrast checker → · Palette generator →

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