#338310#338310

#338310 is a mid, vivid green. Relative luminance 0.170; OKLCH L 53.9% C 0.162 H 138.8°. Best body text is #FFFFFF at 4.78:1 contrast (WCAG AA passes).

Color values

HEX#338310
RGBrgb(51, 131, 16)
HSLhsl(102, 78%, 29%)
HSVhsv(102, 88%, 51%)
CMYKcmyk(61.1%, 0%, 87.8%, 48.6%)
CIE-LABlab(48.23, -44.19, 48.62)
CIE-LCHlch(48.23, 65.70, 132.27°)
OKLaboklab(53.91% -0.122 0.1066)
OKLCHoklch(53.91% 0.162 138.8)
XYZxyz(9.5747, 16.9730, 3.2617)
Luminance0.1697 (WCAG relative)
Temperaturewarm
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#338310 #601083
analogous
#6D8310 #338310 #108327
triadic
#338310 #103383 #831033
tetradic
#338310 #106D83 #601083 #832710
square
#338310 #106D83 #601083 #832710
split-complementary
#338310 #271083 #83106D
monochromatic
#0B1B03 #1E4C09 #338310 #48BA17 #62E529

Accessibility & contrast

On white

4.78
#338310 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.39
#338310 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #338310
4.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##338310#FFFFFF#000000##FFFFFF
##3383101.004.784.394.78
#FFFFFF4.781.0021.001.00
#0000004.3921.001.0021.00
##FFFFFF4.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#877600
Deuteranopia (green-blind)
#7D7020
Tritanopia (blue-blind)
#2A7E6F
Achromatopsia (no color)
#727272

Design tokens & code

CSS
--color: #338310;
/* rgb */ color: rgb(51, 131, 16);
/* oklch */ color: oklch(53.9% 0.162 138.8);
Tailwind
colors: {
  custom: {
    50: '#76a85c',
    500: '#338310',
    950: '#000000',
  },
}
SCSS
$custom: #338310;
$custom-light: #76a85c;
$custom-dark: #000000;
JSON
{
  "hex": "#338310",
  "rgb": {
    "r": 51,
    "g": 131,
    "b": 16
  },
  "hsl": {
    "h": 101.739,
    "s": 78.231,
    "l": 28.824
  },
  "oklch": {
    "l": 0.53914,
    "c": 0.16199,
    "h": 138.8
  },
  "luminance": 0.16974
}

Semantic roles & 50–950 ramp

primary
#338310
secondary
#9136B9
accent
#33F5BA
background
#F7FAF5
surface
#EEF4E9
border
#C9CEC5
text
#091004
muted
#7B7F79

Preview Lab

Preview with #338310

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

Preview Lab → · Contrast checker → · Palette generator →

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