#338E5B#338E5B

#338E5B is a mid, moderate green. Relative luminance 0.208; OKLCH L 57.9% C 0.117 H 155.3°. Best body text is #000000 at 5.16:1 contrast (WCAG AA passes).

Color values

HEX#338E5B
RGBrgb(51, 142, 91)
HSLhsl(146, 47%, 38%)
HSVhsv(146, 64%, 56%)
CMYKcmyk(64.1%, 0%, 35.9%, 44.3%)
CIE-LABlab(52.73, -39.15, 19.45)
CIE-LCHlch(52.73, 43.71, 153.58°)
OKLaboklab(57.9% -0.1062 0.0489)
OKLCHoklch(57.9% 0.117 155.3)
XYZxyz(12.9255, 20.8038, 13.2299)
Luminance0.2081 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#338E5B #8E3366
analogous
#388E33 #338E5B #338E88
triadic
#338E5B #5B338E #8E5B33
tetradic
#338E5B #33388E #8E3366 #8E8833
square
#338E5B #33388E #8E3366 #8E8833
split-complementary
#338E5B #88338E #8E3338
monochromatic
#133421 #23613E #338E5B #43BB78 #70CC98

Accessibility & contrast

On white

4.07
#338E5B on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.16
#338E5B on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #338E5B
5.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##338E5B#FFFFFF#000000##000000
##338E5B1.004.075.165.16
#FFFFFF4.071.0021.0021.00
#0000005.1621.001.001.00
##0000005.1621.001.001.00

Color blindness preview

Protanopia (red-blind)
#8D8358
Deuteranopia (green-blind)
#817A5E
Tritanopia (blue-blind)
#078D81
Achromatopsia (no color)
#7E7E7E

Design tokens & code

CSS
--color: #338e5b;
/* rgb */ color: rgb(51, 142, 91);
/* oklch */ color: oklch(57.9% 0.117 155.3);
Tailwind
colors: {
  custom: {
    50: '#75b089',
    500: '#338e5b',
    950: '#000000',
  },
}
SCSS
$custom: #338e5b;
$custom-light: #75b089;
$custom-dark: #000000;
JSON
{
  "hex": "#338e5b",
  "rgb": {
    "r": 51,
    "g": 142,
    "b": 91
  },
  "hsl": {
    "h": 146.374,
    "s": 47.15,
    "l": 37.843
  },
  "oklch": {
    "l": 0.57902,
    "c": 0.1169,
    "h": 155.3
  },
  "luminance": 0.20805
}

Semantic roles & 50–950 ramp

primary
#338E5B
secondary
#B46993
accent
#519CD7
background
#F7FAF8
surface
#EDF5F0
border
#C8CFCB
text
#09100B
muted
#7B7F7C

Preview Lab

Preview with #338E5B

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

Preview Lab → · Contrast checker → · Palette generator →

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