#338642#338642

#338642 is a mid, vivid green. Relative luminance 0.181; OKLCH L 55.3% C 0.130 H 147.0°. Best body text is #000000 at 4.63:1 contrast (WCAG AA passes).

Color values

HEX#338642
RGBrgb(51, 134, 66)
HSLhsl(131, 45%, 36%)
HSVhsv(131, 62%, 53%)
CMYKcmyk(61.9%, 0%, 50.7%, 47.5%)
CIE-LABlab(49.67, -40.35, 29.17)
CIE-LCHlch(49.67, 49.79, 144.13°)
OKLaboklab(55.25% -0.1091 0.0708)
OKLCHoklch(55.25% 0.13 147)
XYZxyz(10.8730, 18.1463, 8.0828)
Luminance0.1815 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#338642 #863377
analogous
#4E8633 #338642 #33866C
triadic
#338642 #423386 #864233
tetradic
#338642 #334E86 #863377 #866C33
square
#338642 #334E86 #863377 #866C33
split-complementary
#338642 #6C3386 #86334E
monochromatic
#112D16 #225A2C #338642 #44B258 #6CC77D

Accessibility & contrast

On white

4.54
#338642 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.63
#338642 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #338642
4.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##338642#FFFFFF#000000##000000
##3386421.004.544.634.63
#FFFFFF4.541.0021.0021.00
#0000004.6321.001.001.00
##0000004.6321.001.001.00

Color blindness preview

Protanopia (red-blind)
#887B3C
Deuteranopia (green-blind)
#7D7347
Tritanopia (blue-blind)
#1F8376
Achromatopsia (no color)
#767676

Design tokens & code

CSS
--color: #338642;
/* rgb */ color: rgb(51, 134, 66);
/* oklch */ color: oklch(55.3% 0.130 147.0);
Tailwind
colors: {
  custom: {
    50: '#74aa78',
    500: '#338642',
    950: '#000000',
  },
}
SCSS
$custom: #338642;
$custom-light: #74aa78;
$custom-dark: #000000;
JSON
{
  "hex": "#338642",
  "rgb": {
    "r": 51,
    "g": 134,
    "b": 66
  },
  "hsl": {
    "h": 130.843,
    "s": 44.865,
    "l": 36.275
  },
  "oklch": {
    "l": 0.5525,
    "c": 0.13005,
    "h": 147
  },
  "luminance": 0.18147
}

Semantic roles & 50–950 ramp

primary
#338642
secondary
#AF66A2
accent
#53BDD5
background
#F7FAF7
surface
#EDF4ED
border
#C8CEC8
text
#091009
muted
#7B7F7B

Preview Lab

Preview with #338642

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

Preview Lab → · Contrast checker → · Palette generator →

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