#334D17#334D17

#334D17 is a dark, moderate yellow-green. Relative luminance 0.061; OKLCH L 38.6% C 0.086 H 131.3°. Best body text is #FFFFFF at 9.48:1 contrast (WCAG AA passes).

Color values

HEX#334D17
RGBrgb(51, 77, 23)
HSLhsl(89, 54%, 20%)
HSVhsv(89, 70%, 30%)
CMYKcmyk(33.8%, 0%, 70.1%, 69.8%)
CIE-LABlab(29.60, -20.14, 28.02)
CIE-LCHlch(29.60, 34.51, 125.70°)
OKLaboklab(38.62% -0.0566 0.0645)
OKLCHoklch(38.62% 0.086 131.3)
XYZxyz(4.1737, 6.0733, 1.7628)
Luminance0.0607 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#334D17 #31174D
analogous
#4D4C17 #334D17 #184D17
triadic
#334D17 #17334D #4D1733
tetradic
#334D17 #174D4C #31174D #4D1718
square
#334D17 #174D4C #31174D #4D1718
split-complementary
#334D17 #17184D #4C174D
monochromatic
#101807 #141E09 #334D17 #527C25 #71AB33

Accessibility & contrast

On white

9.48
#334D17 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.21
#334D17 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #334D17
9.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##334D17#FFFFFF#000000##FFFFFF
##334D171.009.482.219.48
#FFFFFF9.481.0021.001.00
#0000002.2121.001.0021.00
##FFFFFF9.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#514710
Deuteranopia (green-blind)
#4D451B
Tritanopia (blue-blind)
#344A42
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #334d17;
/* rgb */ color: rgb(51, 77, 23);
/* oklch */ color: oklch(38.6% 0.086 131.3);
Tailwind
colors: {
  custom: {
    50: '#6d7f57',
    500: '#334d17',
    950: '#000000',
  },
}
SCSS
$custom: #334d17;
$custom-light: #6d7f57;
$custom-dark: #000000;
JSON
{
  "hex": "#334d17",
  "rgb": {
    "r": 51,
    "g": 77,
    "b": 23
  },
  "hsl": {
    "h": 88.889,
    "s": 54,
    "l": 19.608
  },
  "oklch": {
    "l": 0.38623,
    "c": 0.08578,
    "h": 131.3
  },
  "luminance": 0.06073
}

Semantic roles & 50–950 ramp

primary
#334D17
secondary
#5F3C84
accent
#4ADD91
background
#F6F7F5
surface
#ECEEE9
border
#C7C9C5
text
#070A03
muted
#7A7C78

Preview Lab

Preview with #334D17

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

Preview Lab → · Contrast checker → · Palette generator →

#334D17 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva