#338F4F#338F4F

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

Color values

HEX#338F4F
RGBrgb(51, 143, 79)
HSLhsl(138, 47%, 38%)
HSVhsv(138, 64%, 56%)
CMYKcmyk(64.3%, 0%, 44.8%, 43.9%)
CIE-LABlab(52.85, -41.85, 26.22)
CIE-LCHlch(52.85, 49.39, 147.93°)
OKLaboklab(57.93% -0.113 0.0646)
OKLCHoklch(57.93% 0.13 150.2)
XYZxyz(12.5980, 20.9120, 10.7681)
Luminance0.2091 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#338F4F #8F3373
analogous
#458F33 #338F4F #338F7D
triadic
#338F4F #4F338F #8F4F33
tetradic
#338F4F #33458F #8F3373 #8F7D33
square
#338F4F #33458F #8F3373 #8F7D33
split-complementary
#338F4F #7D338F #8F3345
monochromatic
#13351D #236236 #338F4F #43BC68 #70CC8C

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##338F4F#FFFFFF#000000##000000
##338F4F1.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)
#90834A
Deuteranopia (green-blind)
#847B53
Tritanopia (blue-blind)
#138D7F
Achromatopsia (no color)
#7E7E7E

Design tokens & code

CSS
--color: #338f4f;
/* rgb */ color: rgb(51, 143, 79);
/* oklch */ color: oklch(57.9% 0.130 150.2);
Tailwind
colors: {
  custom: {
    50: '#75b181',
    500: '#338f4f',
    950: '#000000',
  },
}
SCSS
$custom: #338f4f;
$custom-light: #75b181;
$custom-dark: #000000;
JSON
{
  "hex": "#338f4f",
  "rgb": {
    "r": 51,
    "g": 143,
    "b": 79
  },
  "hsl": {
    "h": 138.261,
    "s": 47.423,
    "l": 38.039
  },
  "oklch": {
    "l": 0.57931,
    "c": 0.13016,
    "h": 150.2
  },
  "luminance": 0.20913
}

Semantic roles & 50–950 ramp

primary
#338F4F
secondary
#B46A9D
accent
#51AED7
background
#F7FAF7
surface
#EDF5EE
border
#C8CFC9
text
#09110A
muted
#7B807C

Preview Lab

Preview with #338F4F

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

Preview Lab → · Contrast checker → · Palette generator →

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