#334817#334817

#334817 is a dark, moderate yellow-green. Relative luminance 0.054; OKLCH L 37.2% C 0.078 H 129.2°. Best body text is #FFFFFF at 10.10:1 contrast (WCAG AA passes).

Color values

HEX#334817
RGBrgb(51, 72, 23)
HSLhsl(86, 52%, 19%)
HSVhsv(86, 68%, 28%)
CMYKcmyk(29.2%, 0%, 68.1%, 71.8%)
CIE-LABlab(27.85, -17.47, 26.10)
CIE-LCHlch(27.85, 31.40, 123.79°)
OKLaboklab(37.2% -0.0492 0.0604)
OKLCHoklch(37.2% 0.078 129.2)
XYZxyz(3.8372, 5.4003, 1.6506)
Luminance0.0540 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#334817 #2C1748
analogous
#484417 #334817 #1A4817
triadic
#334817 #173348 #481733
tetradic
#334817 #174844 #2C1748 #48171A
square
#334817 #174844 #2C1748 #48171A
split-complementary
#334817 #171A48 #441748
monochromatic
#101707 #121A08 #334817 #547626 #75A535

Accessibility & contrast

On white

10.10
#334817 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.08
#334817 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #334817
10.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##334817#FFFFFF#000000##FFFFFF
##3348171.0010.102.0810.10
#FFFFFF10.101.0021.001.00
#0000002.0821.001.0021.00
##FFFFFF10.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4C4311
Deuteranopia (green-blind)
#49411B
Tritanopia (blue-blind)
#35453E
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #334817;
/* rgb */ color: rgb(51, 72, 23);
/* oklch */ color: oklch(37.2% 0.078 129.2);
Tailwind
colors: {
  custom: {
    50: '#6c7b56',
    500: '#334817',
    950: '#000000',
  },
}
SCSS
$custom: #334817;
$custom-light: #6c7b56;
$custom-dark: #000000;
JSON
{
  "hex": "#334817",
  "rgb": {
    "r": 51,
    "g": 72,
    "b": 23
  },
  "hsl": {
    "h": 85.714,
    "s": 51.579,
    "l": 18.627
  },
  "oklch": {
    "l": 0.37202,
    "c": 0.07793,
    "h": 129.2
  },
  "luminance": 0.054
}

Semantic roles & 50–950 ramp

primary
#334817
secondary
#593C7F
accent
#4DDB8A
background
#F6F7F5
surface
#EBEDE9
border
#C6C8C5
text
#070903
muted
#7A7B78

Preview Lab

Preview with #334817

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

Preview Lab → · Contrast checker → · Palette generator →

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