#335E15#335E15

#335E15 is a dark, moderate yellow-green. Relative luminance 0.088; OKLCH L 43.5% C 0.112 H 135.3°. Best body text is #FFFFFF at 7.63:1 contrast (WCAG AA passes).

Color values

HEX#335E15
RGBrgb(51, 94, 21)
HSLhsl(95, 63%, 23%)
HSVhsv(95, 78%, 37%)
CMYKcmyk(45.7%, 0%, 77.7%, 63.1%)
CIE-LABlab(35.52, -28.65, 35.11)
CIE-LCHlch(35.52, 45.32, 129.22°)
OKLaboklab(43.46% -0.0799 0.0791)
OKLCHoklch(43.46% 0.112 135.3)
XYZxyz(5.5032, 8.7630, 2.1108)
Luminance0.0876 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#335E15 #40155E
analogous
#585E15 #335E15 #155E1B
triadic
#335E15 #15335E #5E1533
tetradic
#335E15 #15585E #40155E #5E1B15
square
#335E15 #15585E #40155E #5E1B15
split-complementary
#335E15 #1B155E #5E1558
monochromatic
#0E1906 #182C0A #335E15 #4E9020 #69C22B

Accessibility & contrast

On white

7.63
#335E15 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.75
#335E15 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #335E15
7.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##335E15#FFFFFF#000000##FFFFFF
##335E151.007.632.757.63
#FFFFFF7.631.0021.001.00
#0000002.7521.001.0021.00
##FFFFFF7.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#625608
Deuteranopia (green-blind)
#5C521C
Tritanopia (blue-blind)
#325A50
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #335e15;
/* rgb */ color: rgb(51, 94, 21);
/* oklch */ color: oklch(43.5% 0.112 135.3);
Tailwind
colors: {
  custom: {
    50: '#6f8c58',
    500: '#335e15',
    950: '#000000',
  },
}
SCSS
$custom: #335e15;
$custom-light: #6f8c58;
$custom-dark: #000000;
JSON
{
  "hex": "#335e15",
  "rgb": {
    "r": 51,
    "g": 94,
    "b": 21
  },
  "hsl": {
    "h": 95.342,
    "s": 63.478,
    "l": 22.549
  },
  "oklch": {
    "l": 0.43458,
    "c": 0.11242,
    "h": 135.3
  },
  "luminance": 0.08763
}

Semantic roles & 50–950 ramp

primary
#335E15
secondary
#703995
accent
#41E7A3
background
#F6F8F5
surface
#ECF0E9
border
#C7CBC5
text
#080C03
muted
#7B7D78

Preview Lab

Preview with #335E15

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

Preview Lab → · Contrast checker → · Palette generator →

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