#338B4E#338B4E

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

Color values

HEX#338B4E
RGBrgb(51, 139, 78)
HSLhsl(138, 46%, 37%)
HSVhsv(138, 63%, 55%)
CMYKcmyk(63.3%, 0%, 43.9%, 45.5%)
CIE-LABlab(51.52, -40.38, 25.04)
CIE-LCHlch(51.52, 47.52, 148.20°)
OKLaboklab(56.83% -0.1091 0.0618)
OKLCHoklch(56.83% 0.125 150.5)
XYZxyz(11.9721, 19.7179, 10.3813)
Luminance0.1972 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#338B4E #8B3370
analogous
#448B33 #338B4E #338B7A
triadic
#338B4E #4E338B #8B4E33
tetradic
#338B4E #33448B #8B3370 #8B7A33
square
#338B4E #33448B #8B3370 #8B7A33
split-complementary
#338B4E #7A338B #8B3344
monochromatic
#12311C #235E35 #338B4E #43B867 #6ECA8B

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##338B4E#FFFFFF#000000##000000
##338B4E1.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)
#8C804A
Deuteranopia (green-blind)
#807852
Tritanopia (blue-blind)
#16897C
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #338b4e;
/* rgb */ color: rgb(51, 139, 78);
/* oklch */ color: oklch(56.8% 0.125 150.5);
Tailwind
colors: {
  custom: {
    50: '#74ae80',
    500: '#338b4e',
    950: '#000000',
  },
}
SCSS
$custom: #338b4e;
$custom-light: #74ae80;
$custom-dark: #000000;
JSON
{
  "hex": "#338b4e",
  "rgb": {
    "r": 51,
    "g": 139,
    "b": 78
  },
  "hsl": {
    "h": 138.409,
    "s": 46.316,
    "l": 37.255
  },
  "oklch": {
    "l": 0.56827,
    "c": 0.12541,
    "h": 150.5
  },
  "luminance": 0.19719
}

Semantic roles & 50–950 ramp

primary
#338B4E
secondary
#B2689B
accent
#52ADD6
background
#F7FAF7
surface
#EDF4EE
border
#C8CEC9
text
#09100A
muted
#7B7F7C

Preview Lab

Preview with #338B4E

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

Preview Lab → · Contrast checker → · Palette generator →

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