#338F16#338F16

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

Color values

HEX#338F16
RGBrgb(51, 143, 22)
HSLhsl(106, 73%, 32%)
HSVhsv(106, 85%, 56%)
CMYKcmyk(64.3%, 0%, 84.6%, 43.9%)
CIE-LABlab(52.29, -48.28, 50.71)
CIE-LCHlch(52.29, 70.01, 133.59°)
OKLaboklab(57.29% -0.1327 0.1119)
OKLCHoklch(57.29% 0.174 139.9)
XYZxyz(11.3320, 20.4056, 4.1004)
Luminance0.2041 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#338F16 #72168F
analogous
#6F8F16 #338F16 #168F36
triadic
#338F16 #16338F #8F1633
tetradic
#338F16 #166F8F #72168F #8F3616
square
#338F16 #166F8F #72168F #8F3616
split-complementary
#338F16 #36168F #8F166F
monochromatic
#0D2506 #205A0E #338F16 #46C41E #65E13E

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##338F16#FFFFFF#000000##000000
##338F161.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)
#887A26
Tritanopia (blue-blind)
#268A79
Achromatopsia (no color)
#7D7D7D

Design tokens & code

CSS
--color: #338f16;
/* rgb */ color: rgb(51, 143, 22);
/* oklch */ color: oklch(57.3% 0.174 139.9);
Tailwind
colors: {
  custom: {
    50: '#78b160',
    500: '#338f16',
    950: '#000000',
  },
}
SCSS
$custom: #338f16;
$custom-light: #78b160;
$custom-dark: #000000;
JSON
{
  "hex": "#338f16",
  "rgb": {
    "r": 51,
    "g": 143,
    "b": 22
  },
  "hsl": {
    "h": 105.62,
    "s": 73.333,
    "l": 32.353
  },
  "oklch": {
    "l": 0.57288,
    "c": 0.17352,
    "h": 139.9
  },
  "luminance": 0.20407
}

Semantic roles & 50–950 ramp

primary
#338F16
secondary
#A23FC1
accent
#38F0C4
background
#F7FBF5
surface
#EEF6EA
border
#C9D0C6
text
#0A1105
muted
#7C8079

Preview Lab

Preview with #338F16

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

Preview Lab → · Contrast checker → · Palette generator →

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