#338F24#338F24

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

Color values

HEX#338F24
RGBrgb(51, 143, 36)
HSLhsl(112, 60%, 35%)
HSVhsv(112, 75%, 56%)
CMYKcmyk(64.3%, 0%, 74.8%, 43.9%)
CIE-LABlab(52.37, -47.36, 46.19)
CIE-LCHlch(52.37, 66.15, 135.72°)
OKLaboklab(57.38% -0.1294 0.1044)
OKLCHoklch(57.38% 0.166 141.1)
XYZxyz(11.5056, 20.4750, 5.0145)
Luminance0.2048 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#338F24 #80248F
analogous
#688F24 #338F24 #248F4B
triadic
#338F24 #24338F #8F2433
tetradic
#338F24 #24688F #80248F #8F4B24
square
#338F24 #24688F #80248F #8F4B24
split-complementary
#338F24 #4B248F #8F2468
monochromatic
#102D0B #225E18 #338F24 #44C030 #6AD558

Accessibility & contrast

On white

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

On black

5.10
#338F24 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #338F24
5.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##338F24#FFFFFF#000000##000000
##338F241.004.125.105.10
#FFFFFF4.121.0021.0021.00
#0000005.1021.001.001.00
##0000005.1021.001.001.00

Color blindness preview

Protanopia (red-blind)
#938210
Deuteranopia (green-blind)
#887A2F
Tritanopia (blue-blind)
#248A7A
Achromatopsia (no color)
#7D7D7D

Design tokens & code

CSS
--color: #338f24;
/* rgb */ color: rgb(51, 143, 36);
/* oklch */ color: oklch(57.4% 0.166 141.1);
Tailwind
colors: {
  custom: {
    50: '#77b166',
    500: '#338f24',
    950: '#000000',
  },
}
SCSS
$custom: #338f24;
$custom-light: #77b166;
$custom-dark: #000000;
JSON
{
  "hex": "#338f24",
  "rgb": {
    "r": 51,
    "g": 143,
    "b": 36
  },
  "hsl": {
    "h": 111.589,
    "s": 59.777,
    "l": 35.098
  },
  "oklch": {
    "l": 0.57377,
    "c": 0.16632,
    "h": 141.1
  },
  "luminance": 0.20476
}

Semantic roles & 50–950 ramp

primary
#338F24
secondary
#AB55B9
accent
#45E3CD
background
#F7FBF6
surface
#EEF6EB
border
#C9D0C6
text
#0A1106
muted
#7C807A

Preview Lab

Preview with #338F24

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

Preview Lab → · Contrast checker → · Palette generator →

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