#338A38#338A38

#338A38 is a mid, vivid green. Relative luminance 0.192; OKLCH L 56.2% C 0.145 H 144.3°. Best body text is #000000 at 4.83:1 contrast (WCAG AA passes).

Color values

HEX#338A38
RGBrgb(51, 138, 56)
HSLhsl(123, 46%, 37%)
HSVhsv(123, 63%, 54%)
CMYKcmyk(63%, 0%, 59.4%, 45.9%)
CIE-LABlab(50.88, -43.39, 35.76)
CIE-LCHlch(50.88, 56.23, 140.50°)
OKLaboklab(56.2% -0.1176 0.0846)
OKLCHoklch(56.2% 0.145 144.3)
XYZxyz(11.1669, 19.1652, 6.8514)
Luminance0.1917 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#338A38 #8A3385
analogous
#5A8A33 #338A38 #338A64
triadic
#338A38 #38338A #8A3833
tetradic
#338A38 #335A8A #8A3385 #8A6433
square
#338A38 #335A8A #8A3385 #8A6433
split-complementary
#338A38 #64338A #8A335A
monochromatic
#123114 #225D26 #338A38 #44B74A #6EC973

Accessibility & contrast

On white

4.34
#338A38 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.83
#338A38 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #338A38
4.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##338A38#FFFFFF#000000##000000
##338A381.004.344.834.83
#FFFFFF4.341.0021.0021.00
#0000004.8321.001.001.00
##0000004.8321.001.001.00

Color blindness preview

Protanopia (red-blind)
#8D7E30
Deuteranopia (green-blind)
#82763E
Tritanopia (blue-blind)
#218678
Achromatopsia (no color)
#797979

Design tokens & code

CSS
--color: #338a38;
/* rgb */ color: rgb(51, 138, 56);
/* oklch */ color: oklch(56.2% 0.145 144.3);
Tailwind
colors: {
  custom: {
    50: '#75ad71',
    500: '#338a38',
    950: '#000000',
  },
}
SCSS
$custom: #338a38;
$custom-light: #75ad71;
$custom-dark: #000000;
JSON
{
  "hex": "#338a38",
  "rgb": {
    "r": 51,
    "g": 138,
    "b": 56
  },
  "hsl": {
    "h": 123.448,
    "s": 46.032,
    "l": 37.059
  },
  "oklch": {
    "l": 0.56203,
    "c": 0.1449,
    "h": 144.3
  },
  "luminance": 0.19166
}

Semantic roles & 50–950 ramp

primary
#338A38
secondary
#B167AD
accent
#52CED6
background
#F7FAF6
surface
#EDF4EC
border
#C8CEC7
text
#091008
muted
#7B7F7B

Preview Lab

Preview with #338A38

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

Preview Lab → · Contrast checker → · Palette generator →

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