#335115#335115

#335115 is a dark, moderate yellow-green. Relative luminance 0.066; OKLCH L 39.7% C 0.094 H 132.2°. Best body text is #FFFFFF at 9.02:1 contrast (WCAG AA passes).

Color values

HEX#335115
RGBrgb(51, 81, 21)
HSLhsl(90, 59%, 20%)
HSVhsv(90, 74%, 32%)
CMYKcmyk(37%, 0%, 74.1%, 68.2%)
CIE-LABlab(30.98, -22.38, 30.45)
CIE-LCHlch(30.98, 37.79, 126.31°)
OKLaboklab(39.74% -0.0629 0.0693)
OKLCHoklch(39.74% 0.094 132.2)
XYZxyz(4.4430, 6.6426, 1.7574)
Luminance0.0664 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#335115 #331551
analogous
#515115 #335115 #155115
triadic
#335115 #153351 #511533
tetradic
#335115 #155151 #331551 #511515
square
#335115 #155151 #331551 #511515
split-complementary
#335115 #151551 #511551
monochromatic
#0F1806 #142008 #335115 #528222 #70B22E

Accessibility & contrast

On white

9.02
#335115 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.33
#335115 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #335115
9.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##335115#FFFFFF#000000##FFFFFF
##3351151.009.022.339.02
#FFFFFF9.021.0021.001.00
#0000002.3321.001.0021.00
##FFFFFF9.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#554A0C
Deuteranopia (green-blind)
#51481A
Tritanopia (blue-blind)
#344D45
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #335115;
/* rgb */ color: rgb(51, 81, 21);
/* oklch */ color: oklch(39.7% 0.094 132.2);
Tailwind
colors: {
  custom: {
    50: '#6d8256',
    500: '#335115',
    950: '#000000',
  },
}
SCSS
$custom: #335115;
$custom-light: #6d8256;
$custom-dark: #000000;
JSON
{
  "hex": "#335115",
  "rgb": {
    "r": 51,
    "g": 81,
    "b": 21
  },
  "hsl": {
    "h": 90,
    "s": 58.824,
    "l": 20
  },
  "oklch": {
    "l": 0.39743,
    "c": 0.0936,
    "h": 132.2
  },
  "luminance": 0.06643
}

Semantic roles & 50–950 ramp

primary
#335115
secondary
#613989
accent
#46E294
background
#F6F7F5
surface
#ECEEE9
border
#C7C9C5
text
#070A03
muted
#7A7C78

Preview Lab

Preview with #335115

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

Preview Lab → · Contrast checker → · Palette generator →

#335115 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva