#335A15#335A15

#335A15 is a dark, moderate yellow-green. Relative luminance 0.081; OKLCH L 42.3% C 0.107 H 134.5°. Best body text is #FFFFFF at 8.03:1 contrast (WCAG AA passes).

Color values

HEX#335A15
RGBrgb(51, 90, 21)
HSLhsl(94, 62%, 22%)
HSVhsv(94, 77%, 35%)
CMYKcmyk(43.3%, 0%, 76.7%, 64.7%)
CIE-LABlab(34.13, -26.79, 33.70)
CIE-LCHlch(34.13, 43.05, 128.48°)
OKLaboklab(42.32% -0.0749 0.0761)
OKLCHoklch(42.32% 0.107 134.5)
XYZxyz(5.1567, 8.0700, 1.9953)
Luminance0.0807 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#335A15 #3C155A
analogous
#565A15 #335A15 #155A1A
triadic
#335A15 #15335A #5A1533
tetradic
#335A15 #15565A #3C155A #5A1A15
square
#335A15 #15565A #3C155A #5A1A15
split-complementary
#335A15 #1A155A #5A1556
monochromatic
#0E1906 #172809 #335A15 #4F8C21 #6BBD2C

Accessibility & contrast

On white

8.03
#335A15 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.61
#335A15 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #335A15
8.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##335A15#FFFFFF#000000##FFFFFF
##335A151.008.032.618.03
#FFFFFF8.031.0021.001.00
#0000002.6121.001.0021.00
##FFFFFF8.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#5E5209
Deuteranopia (green-blind)
#584F1B
Tritanopia (blue-blind)
#32564C
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #335a15;
/* rgb */ color: rgb(51, 90, 21);
/* oklch */ color: oklch(42.3% 0.107 134.5);
Tailwind
colors: {
  custom: {
    50: '#6f8957',
    500: '#335a15',
    950: '#000000',
  },
}
SCSS
$custom: #335a15;
$custom-light: #6f8957;
$custom-dark: #000000;
JSON
{
  "hex": "#335a15",
  "rgb": {
    "r": 51,
    "g": 90,
    "b": 21
  },
  "hsl": {
    "h": 93.913,
    "s": 62.162,
    "l": 21.765
  },
  "oklch": {
    "l": 0.42315,
    "c": 0.10677,
    "h": 134.5
  },
  "luminance": 0.0807
}

Semantic roles & 50–950 ramp

primary
#335A15
secondary
#6B3992
accent
#43E59F
background
#F6F8F5
surface
#ECF0E9
border
#C7CBC5
text
#070B03
muted
#7A7C78

Preview Lab

Preview with #335A15

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

Preview Lab → · Contrast checker → · Palette generator →

#335A15 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva