#338A23#338A23

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

Color values

HEX#338A23
RGBrgb(51, 138, 35)
HSLhsl(111, 60%, 34%)
HSVhsv(111, 75%, 54%)
CMYKcmyk(63%, 0%, 74.6%, 45.9%)
CIE-LABlab(50.69, -45.60, 44.87)
CIE-LCHlch(50.69, 63.97, 135.46°)
OKLaboklab(55.98% -0.1248 0.1015)
OKLCHoklch(55.98% 0.161 140.9)
XYZxyz(10.7566, 19.0011, 4.6905)
Luminance0.1900 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#338A23 #7A238A
analogous
#678A23 #338A23 #238A47
triadic
#338A23 #23338A #8A2333
tetradic
#338A23 #23678A #7A238A #8A4723
square
#338A23 #23678A #7A238A #8A4723
split-complementary
#338A23 #47238A #8A2367
monochromatic
#0F280A #215917 #338A23 #45BB2F #68D454

Accessibility & contrast

On white

4.37
#338A23 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

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

Best text color

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

Contrast matrix

fg \ bg##338A23#FFFFFF#000000##000000
##338A231.004.374.804.80
#FFFFFF4.371.0021.0021.00
#0000004.8021.001.001.00
##0000004.8021.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #338a23;
/* rgb */ color: rgb(51, 138, 35);
/* oklch */ color: oklch(56.0% 0.161 140.9);
Tailwind
colors: {
  custom: {
    50: '#76ad65',
    500: '#338a23',
    950: '#000000',
  },
}
SCSS
$custom: #338a23;
$custom-light: #76ad65;
$custom-dark: #000000;
JSON
{
  "hex": "#338a23",
  "rgb": {
    "r": 51,
    "g": 138,
    "b": 35
  },
  "hsl": {
    "h": 110.68,
    "s": 59.538,
    "l": 33.922
  },
  "oklch": {
    "l": 0.55983,
    "c": 0.16085,
    "h": 140.9
  },
  "luminance": 0.19002
}

Semantic roles & 50–950 ramp

primary
#338A23
secondary
#A851B7
accent
#45E3CA
background
#F7FAF6
surface
#EEF4EB
border
#C9CEC6
text
#091006
muted
#7B7F7A

Preview Lab

Preview with #338A23

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

Preview Lab → · Contrast checker → · Palette generator →

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