#338011#338011

#338011 is a mid, vivid green. Relative luminance 0.162; OKLCH L 53.1% C 0.158 H 138.7°. Best body text is #FFFFFF at 4.96:1 contrast (WCAG AA passes).

Color values

HEX#338011
RGBrgb(51, 128, 17)
HSLhsl(102, 77%, 28%)
HSVhsv(102, 87%, 50%)
CMYKcmyk(60.2%, 0%, 86.7%, 49.8%)
CIE-LABlab(47.21, -43.02, 47.46)
CIE-LCHlch(47.21, 64.06, 132.19°)
OKLaboklab(53.08% -0.1188 0.1043)
OKLCHoklch(53.08% 0.158 138.7)
XYZxyz(9.1852, 16.1818, 3.1696)
Luminance0.1618 (WCAG relative)
Temperaturewarm
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#338011 #5E1180
analogous
#6A8011 #338011 #118027
triadic
#338011 #113380 #801133
tetradic
#338011 #116A80 #5E1180 #802711
square
#338011 #116A80 #5E1180 #802711
split-complementary
#338011 #271180 #80116A
monochromatic
#0B1B04 #1D4A0A #338011 #49B618 #62E329

Accessibility & contrast

On white

4.96
#338011 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.24
#338011 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #338011
4.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##338011#FFFFFF#000000##FFFFFF
##3380111.004.964.244.96
#FFFFFF4.961.0021.001.00
#0000004.2421.001.0021.00
##FFFFFF4.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#847400
Deuteranopia (green-blind)
#7B6E20
Tritanopia (blue-blind)
#2B7B6C
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #338011;
/* rgb */ color: rgb(51, 128, 17);
/* oklch */ color: oklch(53.1% 0.158 138.7);
Tailwind
colors: {
  custom: {
    50: '#75a65b',
    500: '#338011',
    950: '#000000',
  },
}
SCSS
$custom: #338011;
$custom-light: #75a65b;
$custom-dark: #000000;
JSON
{
  "hex": "#338011",
  "rgb": {
    "r": 51,
    "g": 128,
    "b": 17
  },
  "hsl": {
    "h": 101.622,
    "s": 76.552,
    "l": 28.431
  },
  "oklch": {
    "l": 0.53077,
    "c": 0.15809,
    "h": 138.7
  },
  "luminance": 0.16183
}

Semantic roles & 50–950 ramp

primary
#338011
secondary
#8F37B6
accent
#35F3B9
background
#F7FAF5
surface
#EDF4E9
border
#C8CEC5
text
#090F04
muted
#7B7F79

Preview Lab

Preview with #338011

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

Preview Lab → · Contrast checker → · Palette generator →

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