#338B4D#338B4D

#338B4D is a mid, vivid green. Relative luminance 0.197; OKLCH L 56.8% C 0.126 H 150.1°. Best body text is #000000 at 4.94:1 contrast (WCAG AA passes).

Color values

HEX#338B4D
RGBrgb(51, 139, 77)
HSLhsl(138, 46%, 37%)
HSVhsv(138, 63%, 55%)
CMYKcmyk(63.3%, 0%, 44.6%, 45.5%)
CIE-LABlab(51.50, -40.56, 25.57)
CIE-LCHlch(51.50, 47.95, 147.78°)
OKLaboklab(56.81% -0.1096 0.063)
OKLCHoklch(56.81% 0.126 150.1)
XYZxyz(11.9365, 19.7037, 10.1939)
Luminance0.1971 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#338B4D #8B3371
analogous
#458B33 #338B4D #338B79
triadic
#338B4D #4D338B #8B4D33
tetradic
#338B4D #33458B #8B3371 #8B7933
square
#338B4D #33458B #8B3371 #8B7933
split-complementary
#338B4D #79338B #8B3345
monochromatic
#12311B #235E34 #338B4D #43B866 #6ECA89

Accessibility & contrast

On white

4.25
#338B4D on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.94
#338B4D on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #338B4D
4.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##338B4D#FFFFFF#000000##000000
##338B4D1.004.254.944.94
#FFFFFF4.251.0021.0021.00
#0000004.9421.001.001.00
##0000004.9421.001.001.00

Color blindness preview

Protanopia (red-blind)
#8C8048
Deuteranopia (green-blind)
#807851
Tritanopia (blue-blind)
#17897C
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #338b4d;
/* rgb */ color: rgb(51, 139, 77);
/* oklch */ color: oklch(56.8% 0.126 150.1);
Tailwind
colors: {
  custom: {
    50: '#74ae7f',
    500: '#338b4d',
    950: '#000000',
  },
}
SCSS
$custom: #338b4d;
$custom-light: #74ae7f;
$custom-dark: #000000;
JSON
{
  "hex": "#338b4d",
  "rgb": {
    "r": 51,
    "g": 139,
    "b": 77
  },
  "hsl": {
    "h": 137.727,
    "s": 46.316,
    "l": 37.255
  },
  "oklch": {
    "l": 0.56808,
    "c": 0.12639,
    "h": 150.1
  },
  "luminance": 0.19705
}

Semantic roles & 50–950 ramp

primary
#338B4D
secondary
#B2689C
accent
#52AFD6
background
#F7FAF7
surface
#EDF4EE
border
#C8CEC9
text
#09100A
muted
#7B7F7C

Preview Lab

Preview with #338B4D

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

Preview Lab → · Contrast checker → · Palette generator →

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