#338F4B#338F4B

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

Color values

HEX#338F4B
RGBrgb(51, 143, 75)
HSLhsl(136, 47%, 38%)
HSVhsv(136, 64%, 56%)
CMYKcmyk(64.3%, 0%, 47.6%, 43.9%)
CIE-LABlab(52.79, -42.54, 28.30)
CIE-LCHlch(52.79, 51.09, 146.37°)
OKLaboklab(57.86% -0.1148 0.0692)
OKLCHoklch(57.86% 0.134 148.9)
XYZxyz(12.4568, 20.8555, 10.0243)
Luminance0.2086 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#338F4B #8F3377
analogous
#498F33 #338F4B #338F79
triadic
#338F4B #4B338F #8F4B33
tetradic
#338F4B #33498F #8F3377 #8F7933
square
#338F4B #33498F #8F3377 #8F7933
split-complementary
#338F4B #79338F #8F3349
monochromatic
#13351C #236233 #338F4B #43BC63 #70CC88

Accessibility & contrast

On white

4.06
#338F4B on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.17
#338F4B on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #338F4B
5.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##338F4B#FFFFFF#000000##000000
##338F4B1.004.065.175.17
#FFFFFF4.061.0021.0021.00
#0000005.1721.001.001.00
##0000005.1721.001.001.00

Color blindness preview

Protanopia (red-blind)
#908346
Deuteranopia (green-blind)
#847B50
Tritanopia (blue-blind)
#168C7F
Achromatopsia (no color)
#7E7E7E

Design tokens & code

CSS
--color: #338f4b;
/* rgb */ color: rgb(51, 143, 75);
/* oklch */ color: oklch(57.9% 0.134 148.9);
Tailwind
colors: {
  custom: {
    50: '#75b17e',
    500: '#338f4b',
    950: '#000000',
  },
}
SCSS
$custom: #338f4b;
$custom-light: #75b17e;
$custom-dark: #000000;
JSON
{
  "hex": "#338f4b",
  "rgb": {
    "r": 51,
    "g": 143,
    "b": 75
  },
  "hsl": {
    "h": 135.652,
    "s": 47.423,
    "l": 38.039
  },
  "oklch": {
    "l": 0.5786,
    "c": 0.13408,
    "h": 148.9
  },
  "luminance": 0.20857
}

Semantic roles & 50–950 ramp

primary
#338F4B
secondary
#B46AA1
accent
#51B4D7
background
#F7FAF7
surface
#EDF5EE
border
#C8CFC9
text
#09110A
muted
#7B807C

Preview Lab

Preview with #338F4B

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

Preview Lab → · Contrast checker → · Palette generator →

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