#304717#304717

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

Color values

HEX#304717
RGBrgb(48, 71, 23)
HSLhsl(89, 51%, 18%)
HSVhsv(89, 68%, 28%)
CMYKcmyk(32.4%, 0%, 67.6%, 72.2%)
CIE-LABlab(27.29, -18.25, 25.42)
CIE-LCHlch(27.29, 31.29, 125.68°)
OKLaboklab(36.7% -0.0512 0.059)
OKLCHoklch(36.7% 0.078 131)
XYZxyz(3.6268, 5.1966, 1.6224)
Luminance0.0520 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#304717 #2E1747
analogous
#474617 #304717 #184717
triadic
#304717 #173047 #471730
tetradic
#304717 #174746 #2E1747 #471718
square
#304717 #174746 #2E1747 #471718
split-complementary
#304717 #171847 #461747
monochromatic
#101707 #111908 #304717 #4F7526 #6FA335

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##304717#FFFFFF#000000##FFFFFF
##3047171.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)
#4A4212
Deuteranopia (green-blind)
#47401B
Tritanopia (blue-blind)
#31443D
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #304717;
/* rgb */ color: rgb(48, 71, 23);
/* oklch */ color: oklch(36.7% 0.078 131.0);
Tailwind
colors: {
  custom: {
    50: '#6a7a56',
    500: '#304717',
    950: '#000000',
  },
}
SCSS
$custom: #304717;
$custom-light: #6a7a56;
$custom-dark: #000000;
JSON
{
  "hex": "#304717",
  "rgb": {
    "r": 48,
    "g": 71,
    "b": 23
  },
  "hsl": {
    "h": 88.75,
    "s": 51.064,
    "l": 18.431
  },
  "oklch": {
    "l": 0.36695,
    "c": 0.07812,
    "h": 131
  },
  "luminance": 0.05197
}

Semantic roles & 50–950 ramp

primary
#304717
secondary
#5C3C7E
accent
#4DDB91
background
#F6F7F5
surface
#EBEDE9
border
#C6C8C5
text
#060903
muted
#7A7B78

Preview Lab

Preview with #304717

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

Preview Lab → · Contrast checker → · Palette generator →

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