#338A4E#338A4E

#338A4E is a mid, vivid green. Relative luminance 0.194; OKLCH L 56.6% C 0.124 H 150.6°. Best body text is #000000 at 4.89:1 contrast (WCAG AA passes).

Color values

HEX#338A4E
RGBrgb(51, 138, 78)
HSLhsl(139, 46%, 37%)
HSVhsv(139, 63%, 54%)
CMYKcmyk(63%, 0%, 43.5%, 45.9%)
CIE-LABlab(51.19, -39.97, 24.61)
CIE-LCHlch(51.19, 46.94, 148.38°)
OKLaboklab(56.56% -0.108 0.0608)
OKLCHoklch(56.56% 0.124 150.6)
XYZxyz(11.8280, 19.4297, 10.3332)
Luminance0.1943 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#338A4E #8A336F
analogous
#438A33 #338A4E #338A7A
triadic
#338A4E #4E338A #8A4E33
tetradic
#338A4E #33438A #8A336F #8A7A33
square
#338A4E #33438A #8A336F #8A7A33
split-complementary
#338A4E #7A338A #8A3343
monochromatic
#12311B #225D35 #338A4E #44B767 #6EC98A

Accessibility & contrast

On white

4.30
#338A4E on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.89
#338A4E on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #338A4E
4.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##338A4E#FFFFFF#000000##000000
##338A4E1.004.304.894.89
#FFFFFF4.301.0021.0021.00
#0000004.8921.001.001.00
##0000004.8921.001.001.00

Color blindness preview

Protanopia (red-blind)
#8B7F4A
Deuteranopia (green-blind)
#7F7752
Tritanopia (blue-blind)
#17887B
Achromatopsia (no color)
#7A7A7A

Design tokens & code

CSS
--color: #338a4e;
/* rgb */ color: rgb(51, 138, 78);
/* oklch */ color: oklch(56.6% 0.124 150.6);
Tailwind
colors: {
  custom: {
    50: '#74ad80',
    500: '#338a4e',
    950: '#000000',
  },
}
SCSS
$custom: #338a4e;
$custom-light: #74ad80;
$custom-dark: #000000;
JSON
{
  "hex": "#338a4e",
  "rgb": {
    "r": 51,
    "g": 138,
    "b": 78
  },
  "hsl": {
    "h": 138.621,
    "s": 46.032,
    "l": 37.059
  },
  "oklch": {
    "l": 0.56555,
    "c": 0.12396,
    "h": 150.6
  },
  "luminance": 0.19431
}

Semantic roles & 50–950 ramp

primary
#338A4E
secondary
#B1679A
accent
#52ADD6
background
#F7FAF7
surface
#EDF4EE
border
#C8CEC9
text
#09100A
muted
#7B7F7C

Preview Lab

Preview with #338A4E

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

Preview Lab → · Contrast checker → · Palette generator →

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