#335128#335128

#335128 is a dark, moderate green. Relative luminance 0.067; OKLCH L 40.0% C 0.074 H 137.8°. Best body text is #FFFFFF at 8.94:1 contrast (WCAG AA passes).

Color values

HEX#335128
RGBrgb(51, 81, 40)
HSLhsl(104, 34%, 24%)
HSVhsv(104, 51%, 32%)
CMYKcmyk(37%, 0%, 50.6%, 68.2%)
CIE-LABlab(31.21, -20.10, 20.58)
CIE-LCHlch(31.21, 28.77, 134.32°)
OKLaboklab(40.01% -0.0551 0.05)
OKLCHoklch(40.01% 0.074 137.8)
XYZxyz(4.6905, 6.7417, 3.0612)
Luminance0.0674 (WCAG relative)
Temperaturewarm
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#335128 #462851
analogous
#475128 #335128 #285131
triadic
#335128 #283351 #512833
tetradic
#335128 #284751 #462851 #513128
square
#335128 #284751 #462851 #513128
split-complementary
#335128 #312851 #512847
monochromatic
#0D140A #192814 #335128 #4D7A3C #67A350

Accessibility & contrast

On white

8.94
#335128 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.35
#335128 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #335128
8.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##335128#FFFFFF#000000##FFFFFF
##3351281.008.942.358.94
#FFFFFF8.941.0021.001.00
#0000002.3521.001.0021.00
##FFFFFF8.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#534B25
Deuteranopia (green-blind)
#4F482B
Tritanopia (blue-blind)
#324E47
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #335128;
/* rgb */ color: rgb(51, 81, 40);
/* oklch */ color: oklch(40.0% 0.074 137.8);
Tailwind
colors: {
  custom: {
    50: '#6c8263',
    500: '#335128',
    950: '#000000',
  },
}
SCSS
$custom: #335128;
$custom-light: #6c8263;
$custom-dark: #000000;
JSON
{
  "hex": "#335128",
  "rgb": {
    "r": 51,
    "g": 81,
    "b": 40
  },
  "hsl": {
    "h": 103.902,
    "s": 33.884,
    "l": 23.725
  },
  "oklch": {
    "l": 0.40007,
    "c": 0.07438,
    "h": 137.8
  },
  "luminance": 0.06742
}

Semantic roles & 50–950 ramp

primary
#335128
secondary
#765184
accent
#5ECAAD
background
#F6F7F5
surface
#EBEEEA
border
#C6C9C6
text
#070A05
muted
#7A7C79

Preview Lab

Preview with #335128

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

Preview Lab → · Contrast checker → · Palette generator →

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