#336A42#336A42

#336A42 is a mid, moderate green. Relative luminance 0.114; OKLCH L 47.5% C 0.087 H 150.7°. Best body text is #FFFFFF at 6.40:1 contrast (WCAG AA passes).

Color values

HEX#336A42
RGBrgb(51, 106, 66)
HSLhsl(136, 35%, 31%)
HSVhsv(136, 52%, 42%)
CMYKcmyk(51.9%, 0%, 37.7%, 58.4%)
CIE-LABlab(40.25, -27.99, 17.02)
CIE-LCHlch(40.25, 32.76, 148.69°)
OKLaboklab(47.52% -0.0761 0.0426)
OKLCHoklch(47.52% 0.087 150.7)
XYZxyz(7.5021, 11.4046, 6.9592)
Luminance0.1140 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#336A42 #6A335B
analogous
#3F6A33 #336A42 #336A5D
triadic
#336A42 #42336A #6A4233
tetradic
#336A42 #333F6A #6A335B #6A5D33
square
#336A42 #333F6A #6A335B #6A5D33
split-complementary
#336A42 #5D336A #6A333F
monochromatic
#0B170F #1F4128 #336A42 #47935C #63B479

Accessibility & contrast

On white

6.40
#336A42 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.28
#336A42 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #336A42
6.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##336A42#FFFFFF#000000##FFFFFF
##336A421.006.403.286.40
#FFFFFF6.401.0021.001.00
#0000003.2821.001.0021.00
##FFFFFF6.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#6B623F
Deuteranopia (green-blind)
#635D44
Tritanopia (blue-blind)
#286860
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #336a42;
/* rgb */ color: rgb(51, 106, 66);
/* oklch */ color: oklch(47.5% 0.087 150.7);
Tailwind
colors: {
  custom: {
    50: '#6f9576',
    500: '#336a42',
    950: '#000000',
  },
}
SCSS
$custom: #336a42;
$custom-light: #6f9576;
$custom-dark: #000000;
JSON
{
  "hex": "#336a42",
  "rgb": {
    "r": 51,
    "g": 106,
    "b": 66
  },
  "hsl": {
    "h": 136.364,
    "s": 35.032,
    "l": 30.784
  },
  "oklch": {
    "l": 0.47524,
    "c": 0.08723,
    "h": 150.7
  },
  "luminance": 0.11405
}

Semantic roles & 50–950 ramp

primary
#336A42
secondary
#9B5E8A
accent
#5DADCB
background
#F6F9F7
surface
#ECF1ED
border
#C7CBC8
text
#070D08
muted
#7A7E7B

Preview Lab

Preview with #336A42

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

Preview Lab → · Contrast checker → · Palette generator →

#336A42 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva