#338A1B#338A1B

#338A1B is a mid, vivid green. Relative luminance 0.190; OKLCH L 55.9% C 0.165 H 140.0°. Best body text is #000000 at 4.79:1 contrast (WCAG AA passes).

Color values

HEX#338A1B
RGBrgb(51, 138, 27)
HSLhsl(107, 67%, 32%)
HSVhsv(107, 80%, 54%)
CMYKcmyk(63%, 0%, 80.4%, 45.9%)
CIE-LABlab(50.64, -46.18, 47.67)
CIE-LCHlch(50.64, 66.37, 134.09°)
OKLaboklab(55.93% -0.1268 0.1062)
OKLCHoklch(55.93% 0.165 140)
XYZxyz(10.6511, 18.9589, 4.1348)
Luminance0.1896 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#338A1B #721B8A
analogous
#6B8A1B #338A1B #1B8A3A
triadic
#338A1B #1B338A #8A1B33
tetradic
#338A1B #1B6B8A #721B8A #8A3A1B
square
#338A1B #1B6B8A #721B8A #8A3A1B
split-complementary
#338A1B #3A1B8A #8A1B6B
monochromatic
#0D2407 #205711 #338A1B #46BD25 #65DB45

Accessibility & contrast

On white

4.38
#338A1B on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.79
#338A1B on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #338A1B
4.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##338A1B#FFFFFF#000000##000000
##338A1B1.004.384.794.79
#FFFFFF4.381.0021.0021.00
#0000004.7921.001.001.00
##0000004.7921.001.001.00

Color blindness preview

Protanopia (red-blind)
#8E7D00
Deuteranopia (green-blind)
#837628
Tritanopia (blue-blind)
#278575
Achromatopsia (no color)
#797979

Design tokens & code

CSS
--color: #338a1b;
/* rgb */ color: rgb(51, 138, 27);
/* oklch */ color: oklch(55.9% 0.165 140.0);
Tailwind
colors: {
  custom: {
    50: '#76ad61',
    500: '#338a1b',
    950: '#000000',
  },
}
SCSS
$custom: #338a1b;
$custom-light: #76ad61;
$custom-dark: #000000;
JSON
{
  "hex": "#338a1b",
  "rgb": {
    "r": 51,
    "g": 138,
    "b": 27
  },
  "hsl": {
    "h": 107.027,
    "s": 67.273,
    "l": 32.353
  },
  "oklch": {
    "l": 0.55927,
    "c": 0.16539,
    "h": 140
  },
  "luminance": 0.1896
}

Semantic roles & 50–950 ramp

primary
#338A1B
secondary
#A245BC
accent
#3EEAC5
background
#F7FAF6
surface
#EEF4EB
border
#C9CEC6
text
#0A1005
muted
#7C7F7A

Preview Lab

Preview with #338A1B

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

Preview Lab → · Contrast checker → · Palette generator →

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