#338B23#338B23

#338B23 is a mid, vivid green. Relative luminance 0.193; OKLCH L 56.3% C 0.162 H 140.9°. Best body text is #000000 at 4.86:1 contrast (WCAG AA passes).

Color values

HEX#338B23
RGBrgb(51, 139, 35)
HSLhsl(111, 60%, 34%)
HSVhsv(111, 75%, 55%)
CMYKcmyk(63.3%, 0%, 74.8%, 45.5%)
CIE-LABlab(51.02, -45.97, 45.21)
CIE-LCHlch(51.02, 64.48, 135.48°)
OKLaboklab(56.26% -0.1258 0.1022)
OKLCHoklch(56.26% 0.162 140.9)
XYZxyz(10.9007, 19.2894, 4.7385)
Luminance0.1929 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#338B23 #7B238B
analogous
#678B23 #338B23 #238B47
triadic
#338B23 #23338B #8B2333
tetradic
#338B23 #23678B #7B238B #8B4723
square
#338B23 #23678B #7B238B #8B4723
split-complementary
#338B23 #47238B #8B2367
monochromatic
#0F290A #215A17 #338B23 #45BC2F #68D454

Accessibility & contrast

On white

4.32
#338B23 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.86
#338B23 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #338B23
4.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##338B23#FFFFFF#000000##000000
##338B231.004.324.864.86
#FFFFFF4.321.0021.0021.00
#0000004.8621.001.001.00
##0000004.8621.001.001.00

Color blindness preview

Protanopia (red-blind)
#8F7E10
Deuteranopia (green-blind)
#84772E
Tritanopia (blue-blind)
#258677
Achromatopsia (no color)
#797979

Design tokens & code

CSS
--color: #338b23;
/* rgb */ color: rgb(51, 139, 35);
/* oklch */ color: oklch(56.3% 0.162 140.9);
Tailwind
colors: {
  custom: {
    50: '#76ae65',
    500: '#338b23',
    950: '#000000',
  },
}
SCSS
$custom: #338b23;
$custom-light: #76ae65;
$custom-dark: #000000;
JSON
{
  "hex": "#338b23",
  "rgb": {
    "r": 51,
    "g": 139,
    "b": 35
  },
  "hsl": {
    "h": 110.769,
    "s": 59.77,
    "l": 34.118
  },
  "oklch": {
    "l": 0.56261,
    "c": 0.16208,
    "h": 140.9
  },
  "luminance": 0.1929
}

Semantic roles & 50–950 ramp

primary
#338B23
secondary
#A852B8
accent
#45E3CB
background
#F7FAF6
surface
#EEF4EB
border
#C9CEC6
text
#091006
muted
#7B7F7A

Preview Lab

Preview with #338B23

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

Preview Lab → · Contrast checker → · Palette generator →

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