#335F15#335F15

#335F15 is a dark, moderate yellow-green. Relative luminance 0.089; OKLCH L 43.7% C 0.114 H 135.5°. Best body text is #FFFFFF at 7.53:1 contrast (WCAG AA passes).

Color values

HEX#335F15
RGBrgb(51, 95, 21)
HSLhsl(96, 64%, 23%)
HSVhsv(96, 78%, 37%)
CMYKcmyk(46.3%, 0%, 77.9%, 62.7%)
CIE-LABlab(35.87, -29.11, 35.46)
CIE-LCHlch(35.87, 45.88, 129.39°)
OKLaboklab(43.74% -0.0812 0.0798)
OKLCHoklch(43.74% 0.114 135.5)
XYZxyz(5.5927, 8.9420, 2.1406)
Luminance0.0894 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#335F15 #41155F
analogous
#585F15 #335F15 #155F1C
triadic
#335F15 #15335F #5F1533
tetradic
#335F15 #15585F #41155F #5F1C15
square
#335F15 #15585F #41155F #5F1C15
split-complementary
#335F15 #1C155F #5F1558
monochromatic
#0D1906 #182D0A #335F15 #4E9120 #69C32B

Accessibility & contrast

On white

7.53
#335F15 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.79
#335F15 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #335F15
7.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##335F15#FFFFFF#000000##FFFFFF
##335F151.007.532.797.53
#FFFFFF7.531.0021.001.00
#0000002.7921.001.0021.00
##FFFFFF7.531.0021.001.00

Color blindness preview

Protanopia (red-blind)
#635707
Deuteranopia (green-blind)
#5D531C
Tritanopia (blue-blind)
#325B51
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #335f15;
/* rgb */ color: rgb(51, 95, 21);
/* oklch */ color: oklch(43.7% 0.114 135.5);
Tailwind
colors: {
  custom: {
    50: '#6f8d58',
    500: '#335f15',
    950: '#000000',
  },
}
SCSS
$custom: #335f15;
$custom-light: #6f8d58;
$custom-dark: #000000;
JSON
{
  "hex": "#335f15",
  "rgb": {
    "r": 51,
    "g": 95,
    "b": 21
  },
  "hsl": {
    "h": 95.676,
    "s": 63.793,
    "l": 22.745
  },
  "oklch": {
    "l": 0.43744,
    "c": 0.11383,
    "h": 135.5
  },
  "luminance": 0.08942
}

Semantic roles & 50–950 ramp

primary
#335F15
secondary
#713A96
accent
#41E7A4
background
#F6F8F5
surface
#ECF0E9
border
#C7CBC5
text
#080C03
muted
#7B7D78

Preview Lab

Preview with #335F15

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

Preview Lab → · Contrast checker → · Palette generator →

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