#338A3D#338A3D

#338A3D is a mid, vivid green. Relative luminance 0.192; OKLCH L 56.3% C 0.140 H 145.4°. Best body text is #000000 at 4.84:1 contrast (WCAG AA passes).

Color values

HEX#338A3D
RGBrgb(51, 138, 61)
HSLhsl(127, 46%, 37%)
HSVhsv(127, 63%, 54%)
CMYKcmyk(63%, 0%, 55.8%, 45.9%)
CIE-LABlab(50.94, -42.71, 33.33)
CIE-LCHlch(50.94, 54.17, 142.03°)
OKLaboklab(56.27% -0.1156 0.0797)
OKLCHoklch(56.27% 0.14 145.4)
XYZxyz(11.2953, 19.2166, 7.5279)
Luminance0.1922 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#338A3D #8A3380
analogous
#548A33 #338A3D #338A69
triadic
#338A3D #3D338A #8A3D33
tetradic
#338A3D #33548A #8A3380 #8A6933
square
#338A3D #33548A #8A3380 #8A6933
split-complementary
#338A3D #69338A #8A3354
monochromatic
#123115 #225D29 #338A3D #44B751 #6EC978

Accessibility & contrast

On white

4.34
#338A3D on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.84
#338A3D on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #338A3D
4.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##338A3D#FFFFFF#000000##000000
##338A3D1.004.344.844.84
#FFFFFF4.341.0021.0021.00
#0000004.8421.001.001.00
##0000004.8421.001.001.00

Color blindness preview

Protanopia (red-blind)
#8C7E36
Deuteranopia (green-blind)
#817643
Tritanopia (blue-blind)
#1F8779
Achromatopsia (no color)
#797979

Design tokens & code

CSS
--color: #338a3d;
/* rgb */ color: rgb(51, 138, 61);
/* oklch */ color: oklch(56.3% 0.140 145.4);
Tailwind
colors: {
  custom: {
    50: '#75ad74',
    500: '#338a3d',
    950: '#000000',
  },
}
SCSS
$custom: #338a3d;
$custom-light: #75ad74;
$custom-dark: #000000;
JSON
{
  "hex": "#338a3d",
  "rgb": {
    "r": 51,
    "g": 138,
    "b": 61
  },
  "hsl": {
    "h": 126.897,
    "s": 46.032,
    "l": 37.059
  },
  "oklch": {
    "l": 0.56272,
    "c": 0.14041,
    "h": 145.4
  },
  "luminance": 0.19218
}

Semantic roles & 50–950 ramp

primary
#338A3D
secondary
#B167A9
accent
#52C7D6
background
#F7FAF7
surface
#EDF4ED
border
#C8CEC8
text
#091008
muted
#7B7F7B

Preview Lab

Preview with #338A3D

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

Preview Lab → · Contrast checker → · Palette generator →

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