#338B4C#338B4C

#338B4C is a mid, vivid green. Relative luminance 0.197; OKLCH L 56.8% C 0.127 H 149.8°. Best body text is #000000 at 4.94:1 contrast (WCAG AA passes).

Color values

HEX#338B4C
RGBrgb(51, 139, 76)
HSLhsl(137, 46%, 37%)
HSVhsv(137, 63%, 55%)
CMYKcmyk(63.3%, 0%, 45.3%, 45.5%)
CIE-LABlab(51.48, -40.74, 26.09)
CIE-LCHlch(51.48, 48.38, 147.36°)
OKLaboklab(56.79% -0.11 0.0642)
OKLCHoklch(56.79% 0.127 149.8)
XYZxyz(11.9015, 19.6897, 10.0094)
Luminance0.1969 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#338B4C #8B3372
analogous
#468B33 #338B4C #338B78
triadic
#338B4C #4C338B #8B4C33
tetradic
#338B4C #33468B #8B3372 #8B7833
square
#338B4C #33468B #8B3372 #8B7833
split-complementary
#338B4C #78338B #8B3346
monochromatic
#12311B #235E34 #338B4C #43B864 #6ECA88

Accessibility & contrast

On white

4.25
#338B4C on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.94
#338B4C on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #338B4C
4.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##338B4C#FFFFFF#000000##000000
##338B4C1.004.254.944.94
#FFFFFF4.251.0021.0021.00
#0000004.9421.001.001.00
##0000004.9421.001.001.00

Color blindness preview

Protanopia (red-blind)
#8C7F47
Deuteranopia (green-blind)
#817850
Tritanopia (blue-blind)
#17897C
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #338b4c;
/* rgb */ color: rgb(51, 139, 76);
/* oklch */ color: oklch(56.8% 0.127 149.8);
Tailwind
colors: {
  custom: {
    50: '#74ae7f',
    500: '#338b4c',
    950: '#000000',
  },
}
SCSS
$custom: #338b4c;
$custom-light: #74ae7f;
$custom-dark: #000000;
JSON
{
  "hex": "#338b4c",
  "rgb": {
    "r": 51,
    "g": 139,
    "b": 76
  },
  "hsl": {
    "h": 137.045,
    "s": 46.316,
    "l": 37.255
  },
  "oklch": {
    "l": 0.5679,
    "c": 0.12738,
    "h": 149.8
  },
  "luminance": 0.19691
}

Semantic roles & 50–950 ramp

primary
#338B4C
secondary
#B2689D
accent
#52B0D6
background
#F7FAF7
surface
#EDF4EE
border
#C8CEC9
text
#09100A
muted
#7B7F7C

Preview Lab

Preview with #338B4C

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

Preview Lab → · Contrast checker → · Palette generator →

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