#338F15#338F15

#338F15 is a mid, vivid green. Relative luminance 0.204; OKLCH L 57.3% C 0.174 H 139.8°. Best body text is #000000 at 5.08:1 contrast (WCAG AA passes).

Color values

HEX#338F15
RGBrgb(51, 143, 21)
HSLhsl(105, 74%, 32%)
HSVhsv(105, 85%, 56%)
CMYKcmyk(64.3%, 0%, 85.3%, 43.9%)
CIE-LABlab(52.29, -48.33, 50.97)
CIE-LCHlch(52.29, 70.24, 133.47°)
OKLaboklab(57.28% -0.1328 0.1123)
OKLCHoklch(57.28% 0.174 139.8)
XYZxyz(11.3225, 20.4018, 4.0506)
Luminance0.2040 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#338F15 #71158F
analogous
#708F15 #338F15 #158F34
triadic
#338F15 #15338F #8F1533
tetradic
#338F15 #15708F #71158F #8F3415
square
#338F15 #15708F #71158F #8F3415
split-complementary
#338F15 #34158F #8F1570
monochromatic
#0D2405 #205A0D #338F15 #46C41D #65E23C

Accessibility & contrast

On white

4.13
#338F15 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.08
#338F15 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #338F15
5.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##338F15#FFFFFF#000000##000000
##338F151.004.135.085.08
#FFFFFF4.131.0021.0021.00
#0000005.0821.001.001.00
##0000005.0821.001.001.00

Color blindness preview

Protanopia (red-blind)
#938100
Deuteranopia (green-blind)
#887A25
Tritanopia (blue-blind)
#268A79
Achromatopsia (no color)
#7D7D7D

Design tokens & code

CSS
--color: #338f15;
/* rgb */ color: rgb(51, 143, 21);
/* oklch */ color: oklch(57.3% 0.174 139.8);
Tailwind
colors: {
  custom: {
    50: '#78b15f',
    500: '#338f15',
    950: '#000000',
  },
}
SCSS
$custom: #338f15;
$custom-light: #78b15f;
$custom-dark: #000000;
JSON
{
  "hex": "#338f15",
  "rgb": {
    "r": 51,
    "g": 143,
    "b": 21
  },
  "hsl": {
    "h": 105.246,
    "s": 74.39,
    "l": 32.157
  },
  "oklch": {
    "l": 0.57283,
    "c": 0.17392,
    "h": 139.8
  },
  "luminance": 0.20403
}

Semantic roles & 50–950 ramp

primary
#338F15
secondary
#A23EC2
accent
#37F1C3
background
#F7FBF5
surface
#EEF6EA
border
#C9D0C6
text
#0A1105
muted
#7C8079

Preview Lab

Preview with #338F15

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

Preview Lab → · Contrast checker → · Palette generator →

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