#338D12#338D12

#338D12 is a mid, vivid green. Relative luminance 0.198; OKLCH L 56.7% C 0.173 H 139.5°. Best body text is #000000 at 4.96:1 contrast (WCAG AA passes).

Color values

HEX#338D12
RGBrgb(51, 141, 18)
HSLhsl(104, 77%, 31%)
HSVhsv(104, 87%, 55%)
CMYKcmyk(63.8%, 0%, 87.2%, 44.7%)
CIE-LABlab(51.61, -47.75, 51.13)
CIE-LCHlch(51.61, 69.96, 133.05°)
OKLaboklab(56.71% -0.1314 0.1122)
OKLCHoklch(56.71% 0.173 139.5)
XYZxyz(10.9988, 19.7962, 3.8136)
Luminance0.1980 (WCAG relative)
Temperaturewarm
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#338D12 #6C128D
analogous
#708D12 #338D12 #128D2E
triadic
#338D12 #12338D #8D1233
tetradic
#338D12 #12708D #6C128D #8D2E12
square
#338D12 #12708D #6C128D #8D2E12
split-complementary
#338D12 #2E128D #8D1270
monochromatic
#0C2004 #1F570B #338D12 #47C319 #64E534

Accessibility & contrast

On white

4.23
#338D12 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.96
#338D12 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #338D12
4.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##338D12#FFFFFF#000000##000000
##338D121.004.234.964.96
#FFFFFF4.231.0021.0021.00
#0000004.9621.001.001.00
##0000004.9621.001.001.00

Color blindness preview

Protanopia (red-blind)
#917F00
Deuteranopia (green-blind)
#867823
Tritanopia (blue-blind)
#278878
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #338d12;
/* rgb */ color: rgb(51, 141, 18);
/* oklch */ color: oklch(56.7% 0.173 139.5);
Tailwind
colors: {
  custom: {
    50: '#77af5e',
    500: '#338d12',
    950: '#000000',
  },
}
SCSS
$custom: #338d12;
$custom-light: #77af5e;
$custom-dark: #000000;
JSON
{
  "hex": "#338d12",
  "rgb": {
    "r": 51,
    "g": 141,
    "b": 18
  },
  "hsl": {
    "h": 103.902,
    "s": 77.358,
    "l": 31.176
  },
  "oklch": {
    "l": 0.56714,
    "c": 0.17278,
    "h": 139.5
  },
  "luminance": 0.19797
}

Semantic roles & 50–950 ramp

primary
#338D12
secondary
#9D39C1
accent
#34F4C0
background
#F7FAF5
surface
#EEF5EA
border
#C9CFC6
text
#0A1005
muted
#7C7F79

Preview Lab

Preview with #338D12

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

Preview Lab → · Contrast checker → · Palette generator →

#338D12 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva