#338C4D#338C4D

#338C4D is a mid, vivid green. Relative luminance 0.200; OKLCH L 57.1% C 0.128 H 150.0°. Best body text is #000000 at 5.00:1 contrast (WCAG AA passes).

Color values

HEX#338C4D
RGBrgb(51, 140, 77)
HSLhsl(138, 47%, 37%)
HSVhsv(138, 64%, 55%)
CMYKcmyk(63.6%, 0%, 45%, 45.1%)
CIE-LABlab(51.83, -40.97, 25.99)
CIE-LCHlch(51.83, 48.52, 147.61°)
OKLaboklab(57.08% -0.1107 0.064)
OKLCHoklch(57.08% 0.128 150)
XYZxyz(12.0820, 19.9946, 10.2424)
Luminance0.2000 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#338C4D #8C3372
analogous
#468C33 #338C4D #338C7A
triadic
#338C4D #4D338C #8C4D33
tetradic
#338C4D #33468C #8C3372 #8C7A33
square
#338C4D #33468C #8C3372 #8C7A33
split-complementary
#338C4D #7A338C #8C3346
monochromatic
#12321C #235F34 #338C4D #43B966 #6FCB8A

Accessibility & contrast

On white

4.20
#338C4D on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.00
#338C4D on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #338C4D
5.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##338C4D#FFFFFF#000000##000000
##338C4D1.004.205.005.00
#FFFFFF4.201.0021.0021.00
#0000005.0021.001.001.00
##0000005.0021.001.001.00

Color blindness preview

Protanopia (red-blind)
#8D8048
Deuteranopia (green-blind)
#817851
Tritanopia (blue-blind)
#168A7D
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #338c4d;
/* rgb */ color: rgb(51, 140, 77);
/* oklch */ color: oklch(57.1% 0.128 150.0);
Tailwind
colors: {
  custom: {
    50: '#75ae7f',
    500: '#338c4d',
    950: '#000000',
  },
}
SCSS
$custom: #338c4d;
$custom-light: #75ae7f;
$custom-dark: #000000;
JSON
{
  "hex": "#338c4d",
  "rgb": {
    "r": 51,
    "g": 140,
    "b": 77
  },
  "hsl": {
    "h": 137.528,
    "s": 46.597,
    "l": 37.451
  },
  "oklch": {
    "l": 0.5708,
    "c": 0.12783,
    "h": 150
  },
  "luminance": 0.19996
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #338C4D

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

Preview Lab → · Contrast checker → · Palette generator →

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