#338C4E#338C4E

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

Color values

HEX#338C4E
RGBrgb(51, 140, 78)
HSLhsl(138, 47%, 37%)
HSVhsv(138, 64%, 55%)
CMYKcmyk(63.6%, 0%, 44.3%, 45.1%)
CIE-LABlab(51.85, -40.80, 25.47)
CIE-LCHlch(51.85, 48.09, 148.02°)
OKLaboklab(57.1% -0.1102 0.0628)
OKLCHoklch(57.1% 0.127 150.3)
XYZxyz(12.1176, 20.0088, 10.4298)
Luminance0.2001 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#338C4E #8C3371
analogous
#458C33 #338C4E #338C7A
triadic
#338C4E #4E338C #8C4E33
tetradic
#338C4E #33458C #8C3371 #8C7A33
square
#338C4E #33458C #8C3371 #8C7A33
split-complementary
#338C4E #7A338C #8C3345
monochromatic
#12321C #235F35 #338C4E #43B967 #6FCB8B

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##338C4E#FFFFFF#000000##000000
##338C4E1.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)
#8D8049
Deuteranopia (green-blind)
#817852
Tritanopia (blue-blind)
#168A7D
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #338c4e;
/* rgb */ color: rgb(51, 140, 78);
/* oklch */ color: oklch(57.1% 0.127 150.3);
Tailwind
colors: {
  custom: {
    50: '#75ae80',
    500: '#338c4e',
    950: '#000000',
  },
}
SCSS
$custom: #338c4e;
$custom-light: #75ae80;
$custom-dark: #000000;
JSON
{
  "hex": "#338c4e",
  "rgb": {
    "r": 51,
    "g": 140,
    "b": 78
  },
  "hsl": {
    "h": 138.202,
    "s": 46.597,
    "l": 37.451
  },
  "oklch": {
    "l": 0.57099,
    "c": 0.12684,
    "h": 150.3
  },
  "luminance": 0.2001
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #338C4E

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

Preview Lab → · Contrast checker → · Palette generator →

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