#338012#338012

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

Color values

HEX#338012
RGBrgb(51, 128, 18)
HSLhsl(102, 75%, 29%)
HSVhsv(102, 86%, 50%)
CMYKcmyk(60.2%, 0%, 85.9%, 49.8%)
CIE-LABlab(47.22, -42.97, 47.20)
CIE-LCHlch(47.22, 63.83, 132.31°)
OKLaboklab(53.08% -0.1186 0.1039)
OKLCHoklch(53.08% 0.158 138.8)
XYZxyz(9.1932, 16.1850, 3.2117)
Luminance0.1619 (WCAG relative)
Temperaturewarm
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#338012 #5F1280
analogous
#6A8012 #338012 #128028
triadic
#338012 #123380 #801233
tetradic
#338012 #126A80 #5F1280 #802812
square
#338012 #126A80 #5F1280 #802812
split-complementary
#338012 #281280 #80126A
monochromatic
#0B1B04 #1E4A0A #338012 #48B61A #62E12B

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##338012#FFFFFF#000000##FFFFFF
##3380121.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: #338012;
/* rgb */ color: rgb(51, 128, 18);
/* oklch */ color: oklch(53.1% 0.158 138.8);
Tailwind
colors: {
  custom: {
    50: '#75a65c',
    500: '#338012',
    950: '#000000',
  },
}
SCSS
$custom: #338012;
$custom-light: #75a65c;
$custom-dark: #000000;
JSON
{
  "hex": "#338012",
  "rgb": {
    "r": 51,
    "g": 128,
    "b": 18
  },
  "hsl": {
    "h": 102,
    "s": 75.342,
    "l": 28.627
  },
  "oklch": {
    "l": 0.53082,
    "c": 0.15768,
    "h": 138.8
  },
  "luminance": 0.16186
}

Semantic roles & 50–950 ramp

primary
#338012
secondary
#9038B6
accent
#36F2BA
background
#F7FAF5
surface
#EDF4E9
border
#C8CEC5
text
#090F04
muted
#7B7F79

Preview Lab

Preview with #338012

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

Preview Lab → · Contrast checker → · Palette generator →

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