#338B5E#338B5E

#338B5E is a mid, moderate green. Relative luminance 0.200; OKLCH L 57.2% C 0.110 H 157.6°. Best body text is #000000 at 5.00:1 contrast (WCAG AA passes).

Color values

HEX#338B5E
RGBrgb(51, 139, 94)
HSLhsl(149, 46%, 37%)
HSVhsv(149, 63%, 55%)
CMYKcmyk(63.3%, 0%, 32.4%, 45.5%)
CIE-LABlab(51.81, -37.22, 16.50)
CIE-LCHlch(51.81, 40.72, 156.09°)
OKLaboklab(57.16% -0.1014 0.0418)
OKLCHoklch(57.16% 0.11 157.6)
XYZxyz(12.6171, 19.9759, 13.7783)
Luminance0.1998 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#338B5E #8B3360
analogous
#348B33 #338B5E #338B8A
triadic
#338B5E #5E338B #8B5E33
tetradic
#338B5E #33348B #8B3360 #8B8A33
square
#338B5E #33348B #8B3360 #8B8A33
split-complementary
#338B5E #8A338B #8B3334
monochromatic
#123121 #235E40 #338B5E #43B87C #6ECA9B

Accessibility & contrast

On white

4.20
#338B5E on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.00
#338B5E on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #338B5E
5.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##338B5E#FFFFFF#000000##000000
##338B5E1.004.205.005.00
#FFFFFF4.201.0021.0021.00
#0000005.0021.001.001.00
##0000005.0021.001.001.00

Color blindness preview

Protanopia (red-blind)
#8A815B
Deuteranopia (green-blind)
#7E7861
Tritanopia (blue-blind)
#068A7F
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #338b5e;
/* rgb */ color: rgb(51, 139, 94);
/* oklch */ color: oklch(57.2% 0.110 157.6);
Tailwind
colors: {
  custom: {
    50: '#74ad8c',
    500: '#338b5e',
    950: '#000000',
  },
}
SCSS
$custom: #338b5e;
$custom-light: #74ad8c;
$custom-dark: #000000;
JSON
{
  "hex": "#338b5e",
  "rgb": {
    "r": 51,
    "g": 139,
    "b": 94
  },
  "hsl": {
    "h": 149.318,
    "s": 46.316,
    "l": 37.255
  },
  "oklch": {
    "l": 0.57164,
    "c": 0.10963,
    "h": 157.6
  },
  "luminance": 0.19977
}

Semantic roles & 50–950 ramp

primary
#338B5E
secondary
#B2688E
accent
#5295D6
background
#F7FAF8
surface
#EDF4F0
border
#C8CECB
text
#09100C
muted
#7B7F7D

Preview Lab

Preview with #338B5E

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

Preview Lab → · Contrast checker → · Palette generator →

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