#338B26#338B26

#338B26 is a mid, vivid green. Relative luminance 0.193; OKLCH L 56.3% C 0.160 H 141.3°. Best body text is #000000 at 4.86:1 contrast (WCAG AA passes).

Color values

HEX#338B26
RGBrgb(51, 139, 38)
HSLhsl(112, 57%, 35%)
HSVhsv(112, 73%, 55%)
CMYKcmyk(63.3%, 0%, 72.7%, 45.5%)
CIE-LABlab(51.05, -45.72, 44.06)
CIE-LCHlch(51.05, 63.49, 136.06°)
OKLaboklab(56.29% -0.1249 0.1002)
OKLCHoklch(56.29% 0.16 141.3)
XYZxyz(10.9472, 19.3079, 4.9833)
Luminance0.1931 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#338B26 #7E268B
analogous
#668B26 #338B26 #268B4B
triadic
#338B26 #26338B #8B2633
tetradic
#338B26 #26668B #7E268B #8B4B26
square
#338B26 #26668B #7E268B #8B4B26
split-complementary
#338B26 #4B268B #8B2666
monochromatic
#102B0C #215B19 #338B26 #45BB33 #69D25A

Accessibility & contrast

On white

4.32
#338B26 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.86
#338B26 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #338B26
4.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##338B26#FFFFFF#000000##000000
##338B261.004.324.864.86
#FFFFFF4.321.0021.0021.00
#0000004.8621.001.001.00
##0000004.8621.001.001.00

Color blindness preview

Protanopia (red-blind)
#8F7E16
Deuteranopia (green-blind)
#847730
Tritanopia (blue-blind)
#258777
Achromatopsia (no color)
#7A7A7A

Design tokens & code

CSS
--color: #338b26;
/* rgb */ color: rgb(51, 139, 38);
/* oklch */ color: oklch(56.3% 0.160 141.3);
Tailwind
colors: {
  custom: {
    50: '#76ae67',
    500: '#338b26',
    950: '#000000',
  },
}
SCSS
$custom: #338b26;
$custom-light: #76ae67;
$custom-dark: #000000;
JSON
{
  "hex": "#338b26",
  "rgb": {
    "r": 51,
    "g": 139,
    "b": 38
  },
  "hsl": {
    "h": 112.277,
    "s": 57.062,
    "l": 34.706
  },
  "oklch": {
    "l": 0.56285,
    "c": 0.16015,
    "h": 141.3
  },
  "luminance": 0.19309
}

Semantic roles & 50–950 ramp

primary
#338B26
secondary
#AA56B7
accent
#47E0CD
background
#F7FAF6
surface
#EEF4EB
border
#C9CEC6
text
#091006
muted
#7B7F7A

Preview Lab

Preview with #338B26

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

Preview Lab → · Contrast checker → · Palette generator →

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