#338F23#338F23

#338F23 is a mid, vivid green. Relative luminance 0.205; OKLCH L 57.4% C 0.167 H 141.0°. Best body text is #000000 at 5.09:1 contrast (WCAG AA passes).

Color values

HEX#338F23
RGBrgb(51, 143, 35)
HSLhsl(111, 61%, 35%)
HSVhsv(111, 76%, 56%)
CMYKcmyk(64.3%, 0%, 75.5%, 43.9%)
CIE-LABlab(52.36, -47.44, 46.56)
CIE-LCHlch(52.36, 66.47, 135.54°)
OKLaboklab(57.37% -0.1297 0.1051)
OKLCHoklch(57.37% 0.167 141)
XYZxyz(11.4905, 20.4690, 4.9352)
Luminance0.2047 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#338F23 #7F238F
analogous
#698F23 #338F23 #238F49
triadic
#338F23 #23338F #8F2333
tetradic
#338F23 #23698F #7F238F #8F4923
square
#338F23 #23698F #7F238F #8F4923
split-complementary
#338F23 #49238F #8F2369
monochromatic
#102D0B #215E17 #338F23 #45C02F #69D657

Accessibility & contrast

On white

4.12
#338F23 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.09
#338F23 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #338F23
5.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##338F23#FFFFFF#000000##000000
##338F231.004.125.095.09
#FFFFFF4.121.0021.0021.00
#0000005.0921.001.001.00
##0000005.0921.001.001.00

Color blindness preview

Protanopia (red-blind)
#93820E
Deuteranopia (green-blind)
#887A2E
Tritanopia (blue-blind)
#248A7A
Achromatopsia (no color)
#7D7D7D

Design tokens & code

CSS
--color: #338f23;
/* rgb */ color: rgb(51, 143, 35);
/* oklch */ color: oklch(57.4% 0.167 141.0);
Tailwind
colors: {
  custom: {
    50: '#77b166',
    500: '#338f23',
    950: '#000000',
  },
}
SCSS
$custom: #338f23;
$custom-light: #77b166;
$custom-dark: #000000;
JSON
{
  "hex": "#338f23",
  "rgb": {
    "r": 51,
    "g": 143,
    "b": 35
  },
  "hsl": {
    "h": 111.111,
    "s": 60.674,
    "l": 34.902
  },
  "oklch": {
    "l": 0.57369,
    "c": 0.16693,
    "h": 141
  },
  "luminance": 0.2047
}

Semantic roles & 50–950 ramp

primary
#338F23
secondary
#AB54BA
accent
#44E4CC
background
#F7FBF6
surface
#EEF6EB
border
#C9D0C6
text
#0A1106
muted
#7C807A

Preview Lab

Preview with #338F23

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

Preview Lab → · Contrast checker → · Palette generator →

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