#338E2A#338E2A

#338E2A is a mid, vivid green. Relative luminance 0.202; OKLCH L 57.2% C 0.161 H 141.8°. Best body text is #000000 at 5.04:1 contrast (WCAG AA passes).

Color values

HEX#338E2A
RGBrgb(51, 142, 42)
HSLhsl(115, 54%, 36%)
HSVhsv(115, 70%, 56%)
CMYKcmyk(64.1%, 0%, 70.4%, 44.3%)
CIE-LABlab(52.08, -46.47, 43.50)
CIE-LCHlch(52.08, 63.65, 136.89°)
OKLaboklab(57.15% -0.1267 0.0996)
OKLCHoklch(57.15% 0.161 141.8)
XYZxyz(11.4556, 20.2159, 5.4884)
Luminance0.2022 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#338E2A #852A8E
analogous
#658E2A #338E2A #2A8E53
triadic
#338E2A #2A338E #8E2A33
tetradic
#338E2A #2A658E #852A8E #8E532A
square
#338E2A #2A658E #852A8E #8E532A
split-complementary
#338E2A #532A8E #8E2A65
monochromatic
#11300E #225F1C #338E2A #44BD38 #6CD162

Accessibility & contrast

On white

4.16
#338E2A on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.04
#338E2A on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #338E2A
5.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##338E2A#FFFFFF#000000##000000
##338E2A1.004.165.045.04
#FFFFFF4.161.0021.0021.00
#0000005.0421.001.001.00
##0000005.0421.001.001.00

Color blindness preview

Protanopia (red-blind)
#91811B
Deuteranopia (green-blind)
#867933
Tritanopia (blue-blind)
#238A7A
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #338e2a;
/* rgb */ color: rgb(51, 142, 42);
/* oklch */ color: oklch(57.2% 0.161 141.8);
Tailwind
colors: {
  custom: {
    50: '#76b069',
    500: '#338e2a',
    950: '#000000',
  },
}
SCSS
$custom: #338e2a;
$custom-light: #76b069;
$custom-dark: #000000;
JSON
{
  "hex": "#338e2a",
  "rgb": {
    "r": 51,
    "g": 142,
    "b": 42
  },
  "hsl": {
    "h": 114.6,
    "s": 54.348,
    "l": 36.078
  },
  "oklch": {
    "l": 0.57151,
    "c": 0.16117,
    "h": 141.8
  },
  "luminance": 0.20217
}

Semantic roles & 50–950 ramp

primary
#338E2A
secondary
#AE5DB6
accent
#4ADED0
background
#F7FAF6
surface
#EEF5EB
border
#C9CFC6
text
#0A1007
muted
#7C7F7A

Preview Lab

Preview with #338E2A

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

Preview Lab → · Contrast checker → · Palette generator →

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