#334E17#334E17

#334E17 is a dark, moderate yellow-green. Relative luminance 0.062; OKLCH L 38.9% C 0.087 H 131.6°. Best body text is #FFFFFF at 9.36:1 contrast (WCAG AA passes).

Color values

HEX#334E17
RGBrgb(51, 78, 23)
HSLhsl(89, 54%, 20%)
HSVhsv(89, 71%, 31%)
CMYKcmyk(34.6%, 0%, 70.5%, 69.4%)
CIE-LABlab(29.95, -20.66, 28.40)
CIE-LCHlch(29.95, 35.12, 126.03°)
OKLaboklab(38.91% -0.058 0.0653)
OKLCHoklch(38.91% 0.087 131.6)
XYZxyz(4.2442, 6.2143, 1.7863)
Luminance0.0621 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#334E17 #32174E
analogous
#4E4E17 #334E17 #174E17
triadic
#334E17 #17334E #4E1733
tetradic
#334E17 #174E4E #32174E #4E1717
square
#334E17 #174E4E #32174E #4E1717
split-complementary
#334E17 #17174E #4E174E
monochromatic
#0F1807 #141F09 #334E17 #527D25 #71AD33

Accessibility & contrast

On white

9.36
#334E17 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.24
#334E17 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #334E17
9.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##334E17#FFFFFF#000000##FFFFFF
##334E171.009.362.249.36
#FFFFFF9.361.0021.001.00
#0000002.2421.001.0021.00
##FFFFFF9.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#524810
Deuteranopia (green-blind)
#4E461B
Tritanopia (blue-blind)
#344B43
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #334e17;
/* rgb */ color: rgb(51, 78, 23);
/* oklch */ color: oklch(38.9% 0.087 131.6);
Tailwind
colors: {
  custom: {
    50: '#6d7f57',
    500: '#334e17',
    950: '#000000',
  },
}
SCSS
$custom: #334e17;
$custom-light: #6d7f57;
$custom-dark: #000000;
JSON
{
  "hex": "#334e17",
  "rgb": {
    "r": 51,
    "g": 78,
    "b": 23
  },
  "hsl": {
    "h": 89.455,
    "s": 54.455,
    "l": 19.804
  },
  "oklch": {
    "l": 0.38908,
    "c": 0.08733,
    "h": 131.6
  },
  "luminance": 0.06214
}

Semantic roles & 50–950 ramp

primary
#334E17
secondary
#603C85
accent
#4ADE93
background
#F6F7F5
surface
#ECEEE9
border
#C7C9C5
text
#070A03
muted
#7A7C78

Preview Lab

Preview with #334E17

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

Preview Lab → · Contrast checker → · Palette generator →

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