#334915#334915

#334915 is a dark, moderate yellow-green. Relative luminance 0.055; OKLCH L 37.5% C 0.081 H 129.2°. Best body text is #FFFFFF at 9.98:1 contrast (WCAG AA passes).

Color values

HEX#334915
RGBrgb(51, 73, 21)
HSLhsl(85, 55%, 18%)
HSVhsv(85, 71%, 29%)
CMYKcmyk(30.1%, 0%, 71.2%, 71.4%)
CIE-LABlab(28.18, -18.20, 27.48)
CIE-LCHlch(28.18, 32.96, 123.53°)
OKLaboklab(37.46% -0.0515 0.063)
OKLCHoklch(37.46% 0.081 129.2)
XYZxyz(3.8831, 5.5229, 1.5708)
Luminance0.0552 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#334915 #2B1549
analogous
#494515 #334915 #194915
triadic
#334915 #153349 #491533
tetradic
#334915 #154945 #2B1549 #491519
square
#334915 #154945 #2B1549 #491519
split-complementary
#334915 #151949 #451549
monochromatic
#111807 #121907 #334915 #547923 #75A830

Accessibility & contrast

On white

9.98
#334915 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.10
#334915 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #334915
9.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##334915#FFFFFF#000000##FFFFFF
##3349151.009.982.109.98
#FFFFFF9.981.0021.001.00
#0000002.1021.001.0021.00
##FFFFFF9.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4D430E
Deuteranopia (green-blind)
#4A4219
Tritanopia (blue-blind)
#35463E
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #334915;
/* rgb */ color: rgb(51, 73, 21);
/* oklch */ color: oklch(37.5% 0.081 129.2);
Tailwind
colors: {
  custom: {
    50: '#6d7c55',
    500: '#334915',
    950: '#000000',
  },
}
SCSS
$custom: #334915;
$custom-light: #6d7c55;
$custom-dark: #000000;
JSON
{
  "hex": "#334915",
  "rgb": {
    "r": 51,
    "g": 73,
    "b": 21
  },
  "hsl": {
    "h": 85.385,
    "s": 55.319,
    "l": 18.431
  },
  "oklch": {
    "l": 0.37463,
    "c": 0.08138,
    "h": 129.2
  },
  "luminance": 0.05523
}

Semantic roles & 50–950 ramp

primary
#334915
secondary
#573981
accent
#49DF88
background
#F6F7F5
surface
#ECEEE9
border
#C7C9C5
text
#070903
muted
#7A7B78

Preview Lab

Preview with #334915

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

Preview Lab → · Contrast checker → · Palette generator →

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