#338A22#338A22

#338A22 is a mid, vivid green. Relative luminance 0.190; OKLCH L 56.0% C 0.161 H 140.7°. Best body text is #000000 at 4.80:1 contrast (WCAG AA passes).

Color values

HEX#338A22
RGBrgb(51, 138, 34)
HSLhsl(110, 60%, 34%)
HSVhsv(110, 75%, 54%)
CMYKcmyk(63%, 0%, 75.4%, 45.9%)
CIE-LABlab(50.68, -45.68, 45.24)
CIE-LCHlch(50.68, 64.29, 135.27°)
OKLaboklab(55.97% -0.125 0.1022)
OKLCHoklch(55.97% 0.161 140.7)
XYZxyz(10.7419, 18.9952, 4.6134)
Luminance0.1900 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#338A22 #79228A
analogous
#678A22 #338A22 #228A45
triadic
#338A22 #22338A #8A2233
tetradic
#338A22 #22678A #79228A #8A4522
square
#338A22 #22678A #79228A #8A4522
split-complementary
#338A22 #45228A #8A2267
monochromatic
#0F280A #215916 #338A22 #45BB2E #67D452

Accessibility & contrast

On white

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

On black

4.80
#338A22 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #338A22
4.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##338A22#FFFFFF#000000##000000
##338A221.004.384.804.80
#FFFFFF4.381.0021.0021.00
#0000004.8021.001.001.00
##0000004.8021.001.001.00

Color blindness preview

Protanopia (red-blind)
#8E7D0E
Deuteranopia (green-blind)
#83762D
Tritanopia (blue-blind)
#268576
Achromatopsia (no color)
#797979

Design tokens & code

CSS
--color: #338a22;
/* rgb */ color: rgb(51, 138, 34);
/* oklch */ color: oklch(56.0% 0.161 140.7);
Tailwind
colors: {
  custom: {
    50: '#76ad64',
    500: '#338a22',
    950: '#000000',
  },
}
SCSS
$custom: #338a22;
$custom-light: #76ad64;
$custom-dark: #000000;
JSON
{
  "hex": "#338a22",
  "rgb": {
    "r": 51,
    "g": 138,
    "b": 34
  },
  "hsl": {
    "h": 110.192,
    "s": 60.465,
    "l": 33.725
  },
  "oklch": {
    "l": 0.55975,
    "c": 0.16147,
    "h": 140.7
  },
  "luminance": 0.18996
}

Semantic roles & 50–950 ramp

primary
#338A22
secondary
#A750B8
accent
#44E4CA
background
#F7FAF6
surface
#EEF4EB
border
#C9CEC6
text
#091006
muted
#7B7F7A

Preview Lab

Preview with #338A22

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

Preview Lab → · Contrast checker → · Palette generator →

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