#338F4A#338F4A

#338F4A is a mid, vivid green. Relative luminance 0.208; OKLCH L 57.8% C 0.135 H 148.6°. Best body text is #000000 at 5.17:1 contrast (WCAG AA passes).

Color values

HEX#338F4A
RGBrgb(51, 143, 74)
HSLhsl(135, 47%, 38%)
HSVhsv(135, 64%, 56%)
CMYKcmyk(64.3%, 0%, 48.3%, 43.9%)
CIE-LABlab(52.78, -42.70, 28.81)
CIE-LCHlch(52.78, 51.51, 145.99°)
OKLaboklab(57.84% -0.1153 0.0703)
OKLCHoklch(57.84% 0.135 148.6)
XYZxyz(12.4228, 20.8419, 9.8454)
Luminance0.2084 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#338F4A #8F3378
analogous
#4A8F33 #338F4A #338F78
triadic
#338F4A #4A338F #8F4A33
tetradic
#338F4A #334A8F #8F3378 #8F7833
square
#338F4A #334A8F #8F3378 #8F7833
split-complementary
#338F4A #78338F #8F334A
monochromatic
#13351B #236233 #338F4A #43BC61 #70CC87

Accessibility & contrast

On white

4.06
#338F4A on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.17
#338F4A on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #338F4A
5.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##338F4A#FFFFFF#000000##000000
##338F4A1.004.065.175.17
#FFFFFF4.061.0021.0021.00
#0000005.1721.001.001.00
##0000005.1721.001.001.00

Color blindness preview

Protanopia (red-blind)
#908345
Deuteranopia (green-blind)
#857B4F
Tritanopia (blue-blind)
#168C7F
Achromatopsia (no color)
#7E7E7E

Design tokens & code

CSS
--color: #338f4a;
/* rgb */ color: rgb(51, 143, 74);
/* oklch */ color: oklch(57.8% 0.135 148.6);
Tailwind
colors: {
  custom: {
    50: '#75b17e',
    500: '#338f4a',
    950: '#000000',
  },
}
SCSS
$custom: #338f4a;
$custom-light: #75b17e;
$custom-dark: #000000;
JSON
{
  "hex": "#338f4a",
  "rgb": {
    "r": 51,
    "g": 143,
    "b": 74
  },
  "hsl": {
    "h": 135,
    "s": 47.423,
    "l": 38.039
  },
  "oklch": {
    "l": 0.57843,
    "c": 0.13505,
    "h": 148.6
  },
  "luminance": 0.20843
}

Semantic roles & 50–950 ramp

primary
#338F4A
secondary
#B46AA2
accent
#51B5D7
background
#F7FAF7
surface
#EDF5EE
border
#C8CFC9
text
#09110A
muted
#7B807C

Preview Lab

Preview with #338F4A

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

Preview Lab → · Contrast checker → · Palette generator →

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