#338D4E#338D4E

#338D4E is a mid, vivid green. Relative luminance 0.203; OKLCH L 57.4% C 0.128 H 150.2°. Best body text is #000000 at 5.06:1 contrast (WCAG AA passes).

Color values

HEX#338D4E
RGBrgb(51, 141, 78)
HSLhsl(138, 47%, 38%)
HSVhsv(138, 64%, 55%)
CMYKcmyk(63.8%, 0%, 44.7%, 44.7%)
CIE-LABlab(52.18, -41.21, 25.89)
CIE-LCHlch(52.18, 48.67, 147.85°)
OKLaboklab(57.37% -0.1113 0.0638)
OKLCHoklch(57.37% 0.128 150.2)
XYZxyz(12.2643, 20.3024, 10.4787)
Luminance0.2030 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#338D4E #8D3372
analogous
#458D33 #338D4E #338D7B
triadic
#338D4E #4E338D #8D4E33
tetradic
#338D4E #33458D #8D3372 #8D7B33
square
#338D4E #33458D #8D3372 #8D7B33
split-complementary
#338D4E #7B338D #8D3345
monochromatic
#12331C #236035 #338D4E #43BA67 #6FCB8B

Accessibility & contrast

On white

4.15
#338D4E on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.06
#338D4E on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #338D4E
5.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##338D4E#FFFFFF#000000##000000
##338D4E1.004.155.065.06
#FFFFFF4.151.0021.0021.00
#0000005.0621.001.001.00
##0000005.0621.001.001.00

Color blindness preview

Protanopia (red-blind)
#8E8149
Deuteranopia (green-blind)
#827952
Tritanopia (blue-blind)
#158B7E
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #338d4e;
/* rgb */ color: rgb(51, 141, 78);
/* oklch */ color: oklch(57.4% 0.128 150.2);
Tailwind
colors: {
  custom: {
    50: '#75af80',
    500: '#338d4e',
    950: '#000000',
  },
}
SCSS
$custom: #338d4e;
$custom-light: #75af80;
$custom-dark: #000000;
JSON
{
  "hex": "#338d4e",
  "rgb": {
    "r": 51,
    "g": 141,
    "b": 78
  },
  "hsl": {
    "h": 138,
    "s": 46.875,
    "l": 37.647
  },
  "oklch": {
    "l": 0.5737,
    "c": 0.12828,
    "h": 150.2
  },
  "luminance": 0.20304
}

Semantic roles & 50–950 ramp

primary
#338D4E
secondary
#B3699D
accent
#51AFD7
background
#F7FAF7
surface
#EDF5EE
border
#C8CFC9
text
#09100A
muted
#7B7F7C

Preview Lab

Preview with #338D4E

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

Preview Lab → · Contrast checker → · Palette generator →

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