#334815#334815

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

Color values

HEX#334815
RGBrgb(51, 72, 21)
HSLhsl(85, 55%, 18%)
HSVhsv(85, 71%, 28%)
CMYKcmyk(29.2%, 0%, 70.8%, 71.8%)
CIE-LABlab(27.83, -17.66, 27.10)
CIE-LCHlch(27.83, 32.35, 123.10°)
OKLaboklab(37.18% -0.05 0.0622)
OKLCHoklch(37.18% 0.08 128.8)
XYZxyz(3.8179, 5.3926, 1.5490)
Luminance0.0539 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#334815 #2A1548
analogous
#484315 #334815 #194815
triadic
#334815 #153348 #481533
tetradic
#334815 #154843 #2A1548 #481519
square
#334815 #154843 #2A1548 #481519
split-complementary
#334815 #151948 #431548
monochromatic
#111807 #111907 #334815 #557723 #76A731

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##334815#FFFFFF#000000##FFFFFF
##3348151.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)
#4C430F
Deuteranopia (green-blind)
#494119
Tritanopia (blue-blind)
#35453D
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #334815;
/* rgb */ color: rgb(51, 72, 21);
/* oklch */ color: oklch(37.2% 0.080 128.8);
Tailwind
colors: {
  custom: {
    50: '#6d7b55',
    500: '#334815',
    950: '#000000',
  },
}
SCSS
$custom: #334815;
$custom-light: #6d7b55;
$custom-dark: #000000;
JSON
{
  "hex": "#334815",
  "rgb": {
    "r": 51,
    "g": 72,
    "b": 21
  },
  "hsl": {
    "h": 84.706,
    "s": 54.839,
    "l": 18.235
  },
  "oklch": {
    "l": 0.37179,
    "c": 0.07982,
    "h": 128.8
  },
  "luminance": 0.05393
}

Semantic roles & 50–950 ramp

primary
#334815
secondary
#563980
accent
#4ADE87
background
#F6F7F5
surface
#EBEDE9
border
#C6C8C5
text
#070903
muted
#7A7B78

Preview Lab

Preview with #334815

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

Preview Lab → · Contrast checker → · Palette generator →

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