#338112#338112

#338112 is a mid, vivid green. Relative luminance 0.164; OKLCH L 53.4% C 0.159 H 138.9°. Best body text is #FFFFFF at 4.90:1 contrast (WCAG AA passes).

Color values

HEX#338112
RGBrgb(51, 129, 18)
HSLhsl(102, 76%, 29%)
HSVhsv(102, 86%, 51%)
CMYKcmyk(60.5%, 0%, 86%, 49.4%)
CIE-LABlab(47.56, -43.35, 47.50)
CIE-LCHlch(47.56, 64.31, 132.38°)
OKLaboklab(53.36% -0.1196 0.1045)
OKLCHoklch(53.36% 0.159 138.9)
XYZxyz(9.3243, 16.4472, 3.2554)
Luminance0.1645 (WCAG relative)
Temperaturewarm
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#338112 #601281
analogous
#6B8112 #338112 #128129
triadic
#338112 #123381 #811233
tetradic
#338112 #126B81 #601281 #812912
square
#338112 #126B81 #601281 #812912
split-complementary
#338112 #291281 #81126B
monochromatic
#0B1B04 #1E4B0B #338112 #48B719 #62E22C

Accessibility & contrast

On white

4.90
#338112 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.29
#338112 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #338112
4.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##338112#FFFFFF#000000##FFFFFF
##3381121.004.904.294.90
#FFFFFF4.901.0021.001.00
#0000004.2921.001.0021.00
##FFFFFF4.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#857500
Deuteranopia (green-blind)
#7B6E21
Tritanopia (blue-blind)
#2A7C6D
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #338112;
/* rgb */ color: rgb(51, 129, 18);
/* oklch */ color: oklch(53.4% 0.159 138.9);
Tailwind
colors: {
  custom: {
    50: '#75a65c',
    500: '#338112',
    950: '#000000',
  },
}
SCSS
$custom: #338112;
$custom-light: #75a65c;
$custom-dark: #000000;
JSON
{
  "hex": "#338112",
  "rgb": {
    "r": 51,
    "g": 129,
    "b": 18
  },
  "hsl": {
    "h": 102.162,
    "s": 75.51,
    "l": 28.824
  },
  "oklch": {
    "l": 0.53363,
    "c": 0.15887,
    "h": 138.9
  },
  "luminance": 0.16448
}

Semantic roles & 50–950 ramp

primary
#338112
secondary
#9138B7
accent
#36F2BA
background
#F7FAF5
surface
#EEF4E9
border
#C9CEC5
text
#090F04
muted
#7B7F79

Preview Lab

Preview with #338112

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

Preview Lab → · Contrast checker → · Palette generator →

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