#335B15#335B15

#335B15 is a dark, moderate yellow-green. Relative luminance 0.082; OKLCH L 42.6% C 0.108 H 134.7°. Best body text is #FFFFFF at 7.93:1 contrast (WCAG AA passes).

Color values

HEX#335B15
RGBrgb(51, 91, 21)
HSLhsl(94, 63%, 22%)
HSVhsv(94, 77%, 36%)
CMYKcmyk(44%, 0%, 76.9%, 64.3%)
CIE-LABlab(34.48, -27.26, 34.05)
CIE-LCHlch(34.48, 43.62, 128.68°)
OKLaboklab(42.6% -0.0762 0.0768)
OKLCHoklch(42.6% 0.108 134.7)
XYZxyz(5.2416, 8.2398, 2.0236)
Luminance0.0824 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#335B15 #3D155B
analogous
#565B15 #335B15 #155B1A
triadic
#335B15 #15335B #5B1533
tetradic
#335B15 #15565B #3D155B #5B1A15
square
#335B15 #15565B #3D155B #5B1A15
split-complementary
#335B15 #1A155B #5B1556
monochromatic
#0E1906 #17290A #335B15 #4F8D20 #6BBE2C

Accessibility & contrast

On white

7.93
#335B15 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.65
#335B15 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #335B15
7.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##335B15#FFFFFF#000000##FFFFFF
##335B151.007.932.657.93
#FFFFFF7.931.0021.001.00
#0000002.6521.001.0021.00
##FFFFFF7.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#5F5309
Deuteranopia (green-blind)
#59501C
Tritanopia (blue-blind)
#32574D
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #335b15;
/* rgb */ color: rgb(51, 91, 21);
/* oklch */ color: oklch(42.6% 0.108 134.7);
Tailwind
colors: {
  custom: {
    50: '#6f8a57',
    500: '#335b15',
    950: '#000000',
  },
}
SCSS
$custom: #335b15;
$custom-light: #6f8a57;
$custom-dark: #000000;
JSON
{
  "hex": "#335b15",
  "rgb": {
    "r": 51,
    "g": 91,
    "b": 21
  },
  "hsl": {
    "h": 94.286,
    "s": 62.5,
    "l": 21.961
  },
  "oklch": {
    "l": 0.42601,
    "c": 0.1082,
    "h": 134.7
  },
  "luminance": 0.0824
}

Semantic roles & 50–950 ramp

primary
#335B15
secondary
#6C3992
accent
#42E6A0
background
#F6F8F5
surface
#ECF0E9
border
#C7CBC5
text
#080B03
muted
#7B7C78

Preview Lab

Preview with #335B15

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

Preview Lab → · Contrast checker → · Palette generator →

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