#338A4B#338A4B

#338A4B is a mid, vivid green. Relative luminance 0.194; OKLCH L 56.5% C 0.127 H 149.5°. Best body text is #000000 at 4.88:1 contrast (WCAG AA passes).

Color values

HEX#338A4B
RGBrgb(51, 138, 75)
HSLhsl(137, 46%, 37%)
HSVhsv(137, 63%, 54%)
CMYKcmyk(63%, 0%, 45.7%, 45.9%)
CIE-LABlab(51.14, -40.50, 26.19)
CIE-LCHlch(51.14, 48.23, 147.11°)
OKLaboklab(56.5% -0.1094 0.0644)
OKLCHoklch(56.5% 0.127 149.5)
XYZxyz(11.7229, 19.3876, 9.7796)
Luminance0.1939 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#338A4B #8A3372
analogous
#468A33 #338A4B #338A77
triadic
#338A4B #4B338A #8A4B33
tetradic
#338A4B #33468A #8A3372 #8A7733
square
#338A4B #33468A #8A3372 #8A7733
split-complementary
#338A4B #77338A #8A3346
monochromatic
#12311A #225D33 #338A4B #44B763 #6EC987

Accessibility & contrast

On white

4.31
#338A4B on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.88
#338A4B on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #338A4B
4.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##338A4B#FFFFFF#000000##000000
##338A4B1.004.314.884.88
#FFFFFF4.311.0021.0021.00
#0000004.8821.001.001.00
##0000004.8821.001.001.00

Color blindness preview

Protanopia (red-blind)
#8B7F46
Deuteranopia (green-blind)
#80774F
Tritanopia (blue-blind)
#19887B
Achromatopsia (no color)
#7A7A7A

Design tokens & code

CSS
--color: #338a4b;
/* rgb */ color: rgb(51, 138, 75);
/* oklch */ color: oklch(56.5% 0.127 149.5);
Tailwind
colors: {
  custom: {
    50: '#74ad7e',
    500: '#338a4b',
    950: '#000000',
  },
}
SCSS
$custom: #338a4b;
$custom-light: #74ad7e;
$custom-dark: #000000;
JSON
{
  "hex": "#338a4b",
  "rgb": {
    "r": 51,
    "g": 138,
    "b": 75
  },
  "hsl": {
    "h": 136.552,
    "s": 46.032,
    "l": 37.059
  },
  "oklch": {
    "l": 0.56499,
    "c": 0.12694,
    "h": 149.5
  },
  "luminance": 0.19389
}

Semantic roles & 50–950 ramp

primary
#338A4B
secondary
#B1679D
accent
#52B1D6
background
#F7FAF7
surface
#EDF4EE
border
#C8CEC9
text
#09100A
muted
#7B7F7C

Preview Lab

Preview with #338A4B

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

Preview Lab → · Contrast checker → · Palette generator →

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