#338D3D#338D3D

#338D3D is a mid, vivid green. Relative luminance 0.201; OKLCH L 57.1% C 0.145 H 145.3°. Best body text is #000000 at 5.02:1 contrast (WCAG AA passes).

Color values

HEX#338D3D
RGBrgb(51, 141, 61)
HSLhsl(127, 47%, 38%)
HSVhsv(127, 64%, 55%)
CMYKcmyk(63.8%, 0%, 56.7%, 44.7%)
CIE-LABlab(51.94, -43.89, 34.52)
CIE-LCHlch(51.94, 55.84, 141.81°)
OKLaboklab(57.1% -0.1188 0.0823)
OKLCHoklch(57.1% 0.145 145.3)
XYZxyz(11.7317, 20.0893, 7.6734)
Luminance0.2009 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#338D3D #8D3383
analogous
#568D33 #338D3D #338D6A
triadic
#338D3D #3D338D #8D3D33
tetradic
#338D3D #33568D #8D3383 #8D6A33
square
#338D3D #33568D #8D3383 #8D6A33
split-complementary
#338D3D #6A338D #8D3356
monochromatic
#123316 #23602A #338D3D #43BA50 #6FCB7A

Accessibility & contrast

On white

4.18
#338D3D on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.02
#338D3D on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #338D3D
5.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##338D3D#FFFFFF#000000##000000
##338D3D1.004.185.025.02
#FFFFFF4.181.0021.0021.00
#0000005.0221.001.001.00
##0000005.0221.001.001.00

Color blindness preview

Protanopia (red-blind)
#8F8135
Deuteranopia (green-blind)
#847943
Tritanopia (blue-blind)
#1E8A7B
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #338d3d;
/* rgb */ color: rgb(51, 141, 61);
/* oklch */ color: oklch(57.1% 0.145 145.3);
Tailwind
colors: {
  custom: {
    50: '#75af75',
    500: '#338d3d',
    950: '#000000',
  },
}
SCSS
$custom: #338d3d;
$custom-light: #75af75;
$custom-dark: #000000;
JSON
{
  "hex": "#338d3d",
  "rgb": {
    "r": 51,
    "g": 141,
    "b": 61
  },
  "hsl": {
    "h": 126.667,
    "s": 46.875,
    "l": 37.647
  },
  "oklch": {
    "l": 0.57095,
    "c": 0.14451,
    "h": 145.3
  },
  "luminance": 0.2009
}

Semantic roles & 50–950 ramp

primary
#338D3D
secondary
#B369AB
accent
#51C8D7
background
#F7FAF7
surface
#EEF5ED
border
#C9CFC8
text
#091008
muted
#7B7F7B

Preview Lab

Preview with #338D3D

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

Preview Lab → · Contrast checker → · Palette generator →

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