#338F4E#338F4E

#338F4E is a mid, vivid green. Relative luminance 0.209; OKLCH L 57.9% C 0.131 H 149.9°. Best body text is #000000 at 5.18:1 contrast (WCAG AA passes).

Color values

HEX#338F4E
RGBrgb(51, 143, 78)
HSLhsl(138, 47%, 38%)
HSVhsv(138, 64%, 56%)
CMYKcmyk(64.3%, 0%, 45.5%, 43.9%)
CIE-LABlab(52.84, -42.02, 26.74)
CIE-LCHlch(52.84, 49.81, 147.53°)
OKLaboklab(57.91% -0.1135 0.0658)
OKLCHoklch(57.91% 0.131 149.9)
XYZxyz(12.5619, 20.8975, 10.5779)
Luminance0.2090 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#338F4E #8F3374
analogous
#468F33 #338F4E #338F7C
triadic
#338F4E #4E338F #8F4E33
tetradic
#338F4E #33468F #8F3374 #8F7C33
square
#338F4E #33468F #8F3374 #8F7C33
split-complementary
#338F4E #7C338F #8F3346
monochromatic
#13351D #236235 #338F4E #43BC67 #70CC8B

Accessibility & contrast

On white

4.05
#338F4E on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.18
#338F4E on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #338F4E
5.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##338F4E#FFFFFF#000000##000000
##338F4E1.004.055.185.18
#FFFFFF4.051.0021.0021.00
#0000005.1821.001.001.00
##0000005.1821.001.001.00

Color blindness preview

Protanopia (red-blind)
#908349
Deuteranopia (green-blind)
#847B52
Tritanopia (blue-blind)
#148D7F
Achromatopsia (no color)
#7E7E7E

Design tokens & code

CSS
--color: #338f4e;
/* rgb */ color: rgb(51, 143, 78);
/* oklch */ color: oklch(57.9% 0.131 149.9);
Tailwind
colors: {
  custom: {
    50: '#75b180',
    500: '#338f4e',
    950: '#000000',
  },
}
SCSS
$custom: #338f4e;
$custom-light: #75b180;
$custom-dark: #000000;
JSON
{
  "hex": "#338f4e",
  "rgb": {
    "r": 51,
    "g": 143,
    "b": 78
  },
  "hsl": {
    "h": 137.609,
    "s": 47.423,
    "l": 38.039
  },
  "oklch": {
    "l": 0.57913,
    "c": 0.13114,
    "h": 149.9
  },
  "luminance": 0.20899
}

Semantic roles & 50–950 ramp

primary
#338F4E
secondary
#B46A9E
accent
#51B0D7
background
#F7FAF7
surface
#EDF5EE
border
#C8CFC9
text
#09110A
muted
#7B807C

Preview Lab

Preview with #338F4E

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

Preview Lab → · Contrast checker → · Palette generator →

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