#338E52#338E52

#338E52 is a mid, vivid green. Relative luminance 0.207; OKLCH L 57.7% C 0.126 H 151.5°. Best body text is #000000 at 5.13:1 contrast (WCAG AA passes).

Color values

HEX#338E52
RGBrgb(51, 142, 82)
HSLhsl(140, 47%, 38%)
HSVhsv(140, 64%, 56%)
CMYKcmyk(64.1%, 0%, 42.3%, 44.3%)
CIE-LABlab(52.57, -40.90, 24.22)
CIE-LCHlch(52.57, 47.53, 149.36°)
OKLaboklab(57.72% -0.1105 0.06)
OKLCHoklch(57.72% 0.126 151.5)
XYZxyz(12.5602, 20.6577, 11.3064)
Luminance0.2066 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#338E52 #8E336F
analogous
#418E33 #338E52 #338E80
triadic
#338E52 #52338E #8E5233
tetradic
#338E52 #33418E #8E336F #8E8033
square
#338E52 #33418E #8E336F #8E8033
split-complementary
#338E52 #80338E #8E3341
monochromatic
#13341E #236138 #338E52 #43BB6C #70CC8F

Accessibility & contrast

On white

4.09
#338E52 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.13
#338E52 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #338E52
5.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##338E52#FFFFFF#000000##000000
##338E521.004.095.135.13
#FFFFFF4.091.0021.0021.00
#0000005.1321.001.001.00
##0000005.1321.001.001.00

Color blindness preview

Protanopia (red-blind)
#8E824E
Deuteranopia (green-blind)
#837A56
Tritanopia (blue-blind)
#118C7F
Achromatopsia (no color)
#7D7D7D

Design tokens & code

CSS
--color: #338e52;
/* rgb */ color: rgb(51, 142, 82);
/* oklch */ color: oklch(57.7% 0.126 151.5);
Tailwind
colors: {
  custom: {
    50: '#75b083',
    500: '#338e52',
    950: '#000000',
  },
}
SCSS
$custom: #338e52;
$custom-light: #75b083;
$custom-dark: #000000;
JSON
{
  "hex": "#338e52",
  "rgb": {
    "r": 51,
    "g": 142,
    "b": 82
  },
  "hsl": {
    "h": 140.44,
    "s": 47.15,
    "l": 37.843
  },
  "oklch": {
    "l": 0.57717,
    "c": 0.12576,
    "h": 151.5
  },
  "luminance": 0.20659
}

Semantic roles & 50–950 ramp

primary
#338E52
secondary
#B4699A
accent
#51A9D7
background
#F7FAF8
surface
#EDF5EF
border
#C8CFCA
text
#09100A
muted
#7B7F7C

Preview Lab

Preview with #338E52

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

Preview Lab → · Contrast checker → · Palette generator →

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