#338B48#338B48

#338B48 is a mid, vivid green. Relative luminance 0.196; OKLCH L 56.7% C 0.131 H 148.4°. Best body text is #000000 at 4.93:1 contrast (WCAG AA passes).

Color values

HEX#338B48
RGBrgb(51, 139, 72)
HSLhsl(134, 46%, 37%)
HSVhsv(134, 63%, 55%)
CMYKcmyk(63.3%, 0%, 48.2%, 45.5%)
CIE-LABlab(51.42, -41.42, 28.17)
CIE-LCHlch(51.42, 50.09, 145.78°)
OKLaboklab(56.72% -0.1119 0.0688)
OKLCHoklch(56.72% 0.131 148.4)
XYZxyz(11.7667, 19.6358, 9.2996)
Luminance0.1964 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#338B48 #8B3376
analogous
#4A8B33 #338B48 #338B74
triadic
#338B48 #48338B #8B4833
tetradic
#338B48 #334A8B #8B3376 #8B7433
square
#338B48 #334A8B #8B3376 #8B7433
split-complementary
#338B48 #74338B #8B334A
monochromatic
#12311A #235E31 #338B48 #43B85F #6ECA84

Accessibility & contrast

On white

4.26
#338B48 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.93
#338B48 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #338B48
4.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##338B48#FFFFFF#000000##000000
##338B481.004.264.934.93
#FFFFFF4.261.0021.0021.00
#0000004.9321.001.001.00
##0000004.9321.001.001.00

Color blindness preview

Protanopia (red-blind)
#8C7F43
Deuteranopia (green-blind)
#81774D
Tritanopia (blue-blind)
#1A887B
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #338b48;
/* rgb */ color: rgb(51, 139, 72);
/* oklch */ color: oklch(56.7% 0.131 148.4);
Tailwind
colors: {
  custom: {
    50: '#75ae7c',
    500: '#338b48',
    950: '#000000',
  },
}
SCSS
$custom: #338b48;
$custom-light: #75ae7c;
$custom-dark: #000000;
JSON
{
  "hex": "#338b48",
  "rgb": {
    "r": 51,
    "g": 139,
    "b": 72
  },
  "hsl": {
    "h": 134.318,
    "s": 46.316,
    "l": 37.255
  },
  "oklch": {
    "l": 0.56719,
    "c": 0.13133,
    "h": 148.4
  },
  "luminance": 0.19637
}

Semantic roles & 50–950 ramp

primary
#338B48
secondary
#B268A0
accent
#52B6D6
background
#F7FAF7
surface
#EDF4EE
border
#C8CEC9
text
#091009
muted
#7B7F7B

Preview Lab

Preview with #338B48

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

Preview Lab → · Contrast checker → · Palette generator →

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