#304718#304718

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

Color values

HEX#304718
RGBrgb(48, 71, 24)
HSLhsl(89, 49%, 19%)
HSVhsv(89, 66%, 28%)
CMYKcmyk(32.4%, 0%, 66.2%, 72.2%)
CIE-LABlab(27.30, -18.14, 24.90)
CIE-LCHlch(27.30, 30.81, 126.08°)
OKLaboklab(36.71% -0.0508 0.058)
OKLCHoklch(36.71% 0.077 131.2)
XYZxyz(3.6370, 5.2007, 1.6762)
Luminance0.0520 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#304718 #2F1847
analogous
#474618 #304718 #184718
triadic
#304718 #183047 #471830
tetradic
#304718 #184746 #2F1847 #471818
square
#304718 #184746 #2F1847 #471818
split-complementary
#304718 #181847 #461847
monochromatic
#0F1708 #111909 #304718 #4F7527 #6EA237

Accessibility & contrast

On white

10.29
#304718 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #304718
10.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##304718#FFFFFF#000000##FFFFFF
##3047181.0010.292.0410.29
#FFFFFF10.291.0021.001.00
#0000002.0421.001.0021.00
##FFFFFF10.291.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #304718;
/* rgb */ color: rgb(48, 71, 24);
/* oklch */ color: oklch(36.7% 0.077 131.2);
Tailwind
colors: {
  custom: {
    50: '#6a7a57',
    500: '#304718',
    950: '#000000',
  },
}
SCSS
$custom: #304718;
$custom-light: #6a7a57;
$custom-dark: #000000;
JSON
{
  "hex": "#304718",
  "rgb": {
    "r": 48,
    "g": 71,
    "b": 24
  },
  "hsl": {
    "h": 89.362,
    "s": 49.474,
    "l": 18.627
  },
  "oklch": {
    "l": 0.36708,
    "c": 0.07712,
    "h": 131.2
  },
  "luminance": 0.05201
}

Semantic roles & 50–950 ramp

primary
#304718
secondary
#5D3D7E
accent
#4FD992
background
#F6F7F5
surface
#EBEDE9
border
#C6C8C5
text
#060903
muted
#7A7B78

Preview Lab

Preview with #304718

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

Preview Lab → · Contrast checker → · Palette generator →

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