#338C4C#338C4C

#338C4C is a mid, vivid green. Relative luminance 0.200; OKLCH L 57.1% C 0.129 H 149.6°. Best body text is #000000 at 5.00:1 contrast (WCAG AA passes).

Color values

HEX#338C4C
RGBrgb(51, 140, 76)
HSLhsl(137, 47%, 37%)
HSVhsv(137, 64%, 55%)
CMYKcmyk(63.6%, 0%, 45.7%, 45.1%)
CIE-LABlab(51.82, -41.15, 26.51)
CIE-LCHlch(51.82, 48.95, 147.20°)
OKLaboklab(57.06% -0.1111 0.0652)
OKLCHoklch(57.06% 0.129 149.6)
XYZxyz(12.0469, 19.9806, 10.0578)
Luminance0.1998 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#338C4C #8C3373
analogous
#468C33 #338C4C #338C79
triadic
#338C4C #4C338C #8C4C33
tetradic
#338C4C #33468C #8C3373 #8C7933
square
#338C4C #33468C #8C3373 #8C7933
split-complementary
#338C4C #79338C #8C3346
monochromatic
#12321B #235F34 #338C4C #43B964 #6FCB89

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##338C4C#FFFFFF#000000##000000
##338C4C1.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)
#8D8047
Deuteranopia (green-blind)
#827850
Tritanopia (blue-blind)
#178A7D
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #338c4c;
/* rgb */ color: rgb(51, 140, 76);
/* oklch */ color: oklch(57.1% 0.129 149.6);
Tailwind
colors: {
  custom: {
    50: '#75ae7f',
    500: '#338c4c',
    950: '#000000',
  },
}
SCSS
$custom: #338c4c;
$custom-light: #75ae7f;
$custom-dark: #000000;
JSON
{
  "hex": "#338c4c",
  "rgb": {
    "r": 51,
    "g": 140,
    "b": 76
  },
  "hsl": {
    "h": 136.854,
    "s": 46.597,
    "l": 37.451
  },
  "oklch": {
    "l": 0.57062,
    "c": 0.12882,
    "h": 149.6
  },
  "luminance": 0.19982
}

Semantic roles & 50–950 ramp

primary
#338C4C
secondary
#B2689E
accent
#52B1D6
background
#F7FAF7
surface
#EDF4EE
border
#C8CEC9
text
#09100A
muted
#7B7F7C

Preview Lab

Preview with #338C4C

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

Preview Lab → · Contrast checker → · Palette generator →

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