#304516#304516

#304516 is a dark, moderate yellow-green. Relative luminance 0.049; OKLCH L 36.1% C 0.076 H 129.8°. Best body text is #FFFFFF at 10.56:1 contrast (WCAG AA passes).

Color values

HEX#304516
RGBrgb(48, 69, 22)
HSLhsl(87, 52%, 18%)
HSVhsv(87, 68%, 27%)
CMYKcmyk(30.4%, 0%, 68.1%, 72.9%)
CIE-LABlab(26.57, -17.28, 25.15)
CIE-LCHlch(26.57, 30.51, 124.49°)
OKLaboklab(36.11% -0.0486 0.0583)
OKLCHoklch(36.11% 0.076 129.8)
XYZxyz(3.4918, 4.9425, 1.5289)
Luminance0.0494 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#304516 #2B1645
analogous
#454216 #304516 #184516
triadic
#304516 #163045 #451630
tetradic
#304516 #164542 #2B1645 #451618
square
#304516 #164542 #2B1645 #451618
split-complementary
#304516 #161845 #421645
monochromatic
#101707 #101707 #304516 #507325 #71A234

Accessibility & contrast

On white

10.56
#304516 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.99
#304516 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #304516
10.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##304516#FFFFFF#000000##FFFFFF
##3045161.0010.561.9910.56
#FFFFFF10.561.0021.001.00
#0000001.9921.001.0021.00
##FFFFFF10.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#484011
Deuteranopia (green-blind)
#453E19
Tritanopia (blue-blind)
#31423B
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #304516;
/* rgb */ color: rgb(48, 69, 22);
/* oklch */ color: oklch(36.1% 0.076 129.8);
Tailwind
colors: {
  custom: {
    50: '#6a7855',
    500: '#304516',
    950: '#000000',
  },
}
SCSS
$custom: #304516;
$custom-light: #6a7855;
$custom-dark: #000000;
JSON
{
  "hex": "#304516",
  "rgb": {
    "r": 48,
    "g": 69,
    "b": 22
  },
  "hsl": {
    "h": 86.809,
    "s": 51.648,
    "l": 17.843
  },
  "oklch": {
    "l": 0.36109,
    "c": 0.07589,
    "h": 129.8
  },
  "luminance": 0.04943
}

Semantic roles & 50–950 ramp

primary
#304516
secondary
#583A7C
accent
#4DDB8C
background
#F6F7F5
surface
#EBEDE9
border
#C6C8C5
text
#060903
muted
#7A7B78

Preview Lab

Preview with #304516

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

Preview Lab → · Contrast checker → · Palette generator →

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