#334816#334816

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

Color values

HEX#334816
RGBrgb(51, 72, 22)
HSLhsl(85, 53%, 18%)
HSVhsv(85, 69%, 28%)
CMYKcmyk(29.2%, 0%, 69.4%, 71.8%)
CIE-LABlab(27.84, -17.57, 26.60)
CIE-LCHlch(27.84, 31.88, 123.44°)
OKLaboklab(37.19% -0.0496 0.0613)
OKLCHoklch(37.19% 0.079 129)
XYZxyz(3.8274, 5.3964, 1.5989)
Luminance0.0540 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#334816 #2B1648
analogous
#484416 #334816 #1A4816
triadic
#334816 #163348 #481633
tetradic
#334816 #164844 #2B1648 #48161A
square
#334816 #164844 #2B1648 #48161A
split-complementary
#334816 #161A48 #441648
monochromatic
#111707 #121908 #334816 #547724 #75A633

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##334816#FFFFFF#000000##FFFFFF
##3348161.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)
#4C4310
Deuteranopia (green-blind)
#49411A
Tritanopia (blue-blind)
#35453D
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #334816;
/* rgb */ color: rgb(51, 72, 22);
/* oklch */ color: oklch(37.2% 0.079 129.0);
Tailwind
colors: {
  custom: {
    50: '#6c7b56',
    500: '#334816',
    950: '#000000',
  },
}
SCSS
$custom: #334816;
$custom-light: #6c7b56;
$custom-dark: #000000;
JSON
{
  "hex": "#334816",
  "rgb": {
    "r": 51,
    "g": 72,
    "b": 22
  },
  "hsl": {
    "h": 85.2,
    "s": 53.191,
    "l": 18.431
  },
  "oklch": {
    "l": 0.3719,
    "c": 0.07889,
    "h": 129
  },
  "luminance": 0.05396
}

Semantic roles & 50–950 ramp

primary
#334816
secondary
#573A7F
accent
#4BDD88
background
#F6F7F5
surface
#EBEDE9
border
#C6C8C5
text
#070903
muted
#7A7B78

Preview Lab

Preview with #334816

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

Preview Lab → · Contrast checker → · Palette generator →

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