#338F28#338F28

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

Color values

HEX#338F28
RGBrgb(51, 143, 40)
HSLhsl(114, 56%, 36%)
HSVhsv(114, 72%, 56%)
CMYKcmyk(64.3%, 0%, 72%, 43.9%)
CIE-LABlab(52.40, -47.02, 44.66)
CIE-LCHlch(52.40, 64.85, 136.48°)
OKLaboklab(57.41% -0.1283 0.1018)
OKLCHoklch(57.41% 0.164 141.6)
XYZxyz(11.5701, 20.5008, 5.3544)
Luminance0.2050 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#338F28 #84288F
analogous
#668F28 #338F28 #288F50
triadic
#338F28 #28338F #8F2833
tetradic
#338F28 #28668F #84288F #8F5028
square
#338F28 #28668F #84288F #8F5028
split-complementary
#338F28 #50288F #8F2866
monochromatic
#112F0D #225F1B #338F28 #44BF35 #6BD25F

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##338F28#FFFFFF#000000##000000
##338F281.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)
#938218
Deuteranopia (green-blind)
#877A32
Tritanopia (blue-blind)
#238B7B
Achromatopsia (no color)
#7D7D7D

Design tokens & code

CSS
--color: #338f28;
/* rgb */ color: rgb(51, 143, 40);
/* oklch */ color: oklch(57.4% 0.164 141.6);
Tailwind
colors: {
  custom: {
    50: '#77b168',
    500: '#338f28',
    950: '#000000',
  },
}
SCSS
$custom: #338f28;
$custom-light: #77b168;
$custom-dark: #000000;
JSON
{
  "hex": "#338f28",
  "rgb": {
    "r": 51,
    "g": 143,
    "b": 40
  },
  "hsl": {
    "h": 113.592,
    "s": 56.284,
    "l": 35.882
  },
  "oklch": {
    "l": 0.57409,
    "c": 0.16376,
    "h": 141.6
  },
  "luminance": 0.20502
}

Semantic roles & 50–950 ramp

primary
#338F28
secondary
#AE5BB8
accent
#48E0CF
background
#F7FBF6
surface
#EEF6EB
border
#C9D0C6
text
#0A1106
muted
#7C807A

Preview Lab

Preview with #338F28

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

Preview Lab → · Contrast checker → · Palette generator →

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