#338F26#338F26

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

Color values

HEX#338F26
RGBrgb(51, 143, 38)
HSLhsl(113, 58%, 35%)
HSVhsv(113, 73%, 56%)
CMYKcmyk(64.3%, 0%, 73.4%, 43.9%)
CIE-LABlab(52.38, -47.19, 45.43)
CIE-LCHlch(52.38, 65.51, 136.09°)
OKLaboklab(57.39% -0.1289 0.1031)
OKLCHoklch(57.39% 0.165 141.3)
XYZxyz(11.5370, 20.4875, 5.1799)
Luminance0.2049 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#338F26 #82268F
analogous
#688F26 #338F26 #268F4D
triadic
#338F26 #26338F #8F2633
tetradic
#338F26 #26688F #82268F #8F4D26
square
#338F26 #26688F #82268F #8F4D26
split-complementary
#338F26 #4D268F #8F2668
monochromatic
#112E0C #225F19 #338F26 #44BF33 #6BD45C

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##338F26#FFFFFF#000000##000000
##338F261.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)
#938214
Deuteranopia (green-blind)
#877A31
Tritanopia (blue-blind)
#238A7A
Achromatopsia (no color)
#7D7D7D

Design tokens & code

CSS
--color: #338f26;
/* rgb */ color: rgb(51, 143, 38);
/* oklch */ color: oklch(57.4% 0.165 141.3);
Tailwind
colors: {
  custom: {
    50: '#77b167',
    500: '#338f26',
    950: '#000000',
  },
}
SCSS
$custom: #338f26;
$custom-light: #77b167;
$custom-dark: #000000;
JSON
{
  "hex": "#338f26",
  "rgb": {
    "r": 51,
    "g": 143,
    "b": 38
  },
  "hsl": {
    "h": 112.571,
    "s": 58.011,
    "l": 35.49
  },
  "oklch": {
    "l": 0.57393,
    "c": 0.16507,
    "h": 141.3
  },
  "luminance": 0.20489
}

Semantic roles & 50–950 ramp

primary
#338F26
secondary
#AD58B9
accent
#47E1CE
background
#F7FBF6
surface
#EEF6EB
border
#C9D0C6
text
#0A1106
muted
#7C807A

Preview Lab

Preview with #338F26

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

Preview Lab → · Contrast checker → · Palette generator →

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