#334917#334917

#334917 is a dark, moderate yellow-green. Relative luminance 0.055; OKLCH L 37.5% C 0.080 H 129.7°. Best body text is #FFFFFF at 9.97:1 contrast (WCAG AA passes).

Color values

HEX#334917
RGBrgb(51, 73, 23)
HSLhsl(86, 52%, 19%)
HSVhsv(86, 68%, 29%)
CMYKcmyk(30.1%, 0%, 68.5%, 71.4%)
CIE-LABlab(28.20, -18.01, 26.48)
CIE-LCHlch(28.20, 32.03, 124.21°)
OKLaboklab(37.49% -0.0507 0.0612)
OKLCHoklch(37.49% 0.08 129.7)
XYZxyz(3.9024, 5.5307, 1.6724)
Luminance0.0553 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#334917 #2D1749
analogous
#494617 #334917 #1A4917
triadic
#334917 #173349 #491733
tetradic
#334917 #174946 #2D1749 #49171A
square
#334917 #174946 #2D1749 #49171A
split-complementary
#334917 #171A49 #461749
monochromatic
#101707 #121A08 #334917 #547826 #74A634

Accessibility & contrast

On white

9.97
#334917 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.11
#334917 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #334917
9.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##334917#FFFFFF#000000##FFFFFF
##3349171.009.972.119.97
#FFFFFF9.971.0021.001.00
#0000002.1121.001.0021.00
##FFFFFF9.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4D4411
Deuteranopia (green-blind)
#49421B
Tritanopia (blue-blind)
#34463E
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #334917;
/* rgb */ color: rgb(51, 73, 23);
/* oklch */ color: oklch(37.5% 0.080 129.7);
Tailwind
colors: {
  custom: {
    50: '#6d7c56',
    500: '#334917',
    950: '#000000',
  },
}
SCSS
$custom: #334917;
$custom-light: #6d7c56;
$custom-dark: #000000;
JSON
{
  "hex": "#334917",
  "rgb": {
    "r": 51,
    "g": 73,
    "b": 23
  },
  "hsl": {
    "h": 86.4,
    "s": 52.083,
    "l": 18.824
  },
  "oklch": {
    "l": 0.37486,
    "c": 0.07951,
    "h": 129.7
  },
  "luminance": 0.05531
}

Semantic roles & 50–950 ramp

primary
#334917
secondary
#5A3C80
accent
#4CDC8B
background
#F6F7F5
surface
#EBEEE9
border
#C6C9C5
text
#070903
muted
#7A7B78

Preview Lab

Preview with #334917

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

Preview Lab → · Contrast checker → · Palette generator →

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