#335C15#335C15

#335C15 is a dark, moderate yellow-green. Relative luminance 0.084; OKLCH L 42.9% C 0.110 H 134.9°. Best body text is #FFFFFF at 7.83:1 contrast (WCAG AA passes).

Color values

HEX#335C15
RGBrgb(51, 92, 21)
HSLhsl(95, 63%, 22%)
HSVhsv(95, 77%, 36%)
CMYKcmyk(44.6%, 0%, 77.2%, 63.9%)
CIE-LABlab(34.83, -27.73, 34.41)
CIE-LCHlch(34.83, 44.19, 128.87°)
OKLaboklab(42.89% -0.0774 0.0776)
OKLCHoklch(42.89% 0.11 134.9)
XYZxyz(5.3276, 8.4120, 2.0523)
Luminance0.0841 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#335C15 #3E155C
analogous
#575C15 #335C15 #155C1B
triadic
#335C15 #15335C #5C1533
tetradic
#335C15 #15575C #3E155C #5C1B15
square
#335C15 #15575C #3E155C #5C1B15
split-complementary
#335C15 #1B155C #5C1557
monochromatic
#0E1906 #172A0A #335C15 #4F8E20 #6AC02C

Accessibility & contrast

On white

7.83
#335C15 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.68
#335C15 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #335C15
7.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##335C15#FFFFFF#000000##FFFFFF
##335C151.007.832.687.83
#FFFFFF7.831.0021.001.00
#0000002.6821.001.0021.00
##FFFFFF7.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#605409
Deuteranopia (green-blind)
#5A511C
Tritanopia (blue-blind)
#32584E
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #335c15;
/* rgb */ color: rgb(51, 92, 21);
/* oklch */ color: oklch(42.9% 0.110 134.9);
Tailwind
colors: {
  custom: {
    50: '#6f8a58',
    500: '#335c15',
    950: '#000000',
  },
}
SCSS
$custom: #335c15;
$custom-light: #6f8a58;
$custom-dark: #000000;
JSON
{
  "hex": "#335c15",
  "rgb": {
    "r": 51,
    "g": 92,
    "b": 21
  },
  "hsl": {
    "h": 94.648,
    "s": 62.832,
    "l": 22.157
  },
  "oklch": {
    "l": 0.42887,
    "c": 0.10961,
    "h": 134.9
  },
  "luminance": 0.08412
}

Semantic roles & 50–950 ramp

primary
#335C15
secondary
#6D3993
accent
#42E6A1
background
#F6F8F5
surface
#ECF0E9
border
#C7CBC5
text
#080C03
muted
#7B7D78

Preview Lab

Preview with #335C15

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

Preview Lab → · Contrast checker → · Palette generator →

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