#338A4A#338A4A

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

Color values

HEX#338A4A
RGBrgb(51, 138, 74)
HSLhsl(136, 46%, 37%)
HSVhsv(136, 63%, 54%)
CMYKcmyk(63%, 0%, 46.4%, 45.9%)
CIE-LABlab(51.12, -40.67, 26.71)
CIE-LCHlch(51.12, 48.66, 146.71°)
OKLaboklab(56.48% -0.1099 0.0655)
OKLCHoklch(56.48% 0.128 149.2)
XYZxyz(11.6889, 19.3740, 9.6008)
Luminance0.1938 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#338A4A #8A3373
analogous
#488A33 #338A4A #338A76
triadic
#338A4A #4A338A #8A4A33
tetradic
#338A4A #33488A #8A3373 #8A7633
square
#338A4A #33488A #8A3373 #8A7633
split-complementary
#338A4A #76338A #8A3348
monochromatic
#12311A #225D32 #338A4A #44B762 #6EC986

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##338A4A#FFFFFF#000000##000000
##338A4A1.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)
#8B7E45
Deuteranopia (green-blind)
#80774E
Tritanopia (blue-blind)
#19877B
Achromatopsia (no color)
#7A7A7A

Design tokens & code

CSS
--color: #338a4a;
/* rgb */ color: rgb(51, 138, 74);
/* oklch */ color: oklch(56.5% 0.128 149.2);
Tailwind
colors: {
  custom: {
    50: '#74ad7d',
    500: '#338a4a',
    950: '#000000',
  },
}
SCSS
$custom: #338a4a;
$custom-light: #74ad7d;
$custom-dark: #000000;
JSON
{
  "hex": "#338a4a",
  "rgb": {
    "r": 51,
    "g": 138,
    "b": 74
  },
  "hsl": {
    "h": 135.862,
    "s": 46.032,
    "l": 37.059
  },
  "oklch": {
    "l": 0.56481,
    "c": 0.12792,
    "h": 149.2
  },
  "luminance": 0.19375
}

Semantic roles & 50–950 ramp

primary
#338A4A
secondary
#B1679E
accent
#52B3D6
background
#F7FAF7
surface
#EDF4EE
border
#C8CEC9
text
#09100A
muted
#7B7F7C

Preview Lab

Preview with #338A4A

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

Preview Lab → · Contrast checker → · Palette generator →

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