#338C2A#338C2A

#338C2A is a mid, vivid green. Relative luminance 0.196; OKLCH L 56.6% C 0.159 H 141.8°. Best body text is #000000 at 4.93:1 contrast (WCAG AA passes).

Color values

HEX#338C2A
RGBrgb(51, 140, 42)
HSLhsl(114, 54%, 36%)
HSVhsv(114, 70%, 55%)
CMYKcmyk(63.6%, 0%, 70%, 45.1%)
CIE-LABlab(51.41, -45.73, 42.79)
CIE-LCHlch(51.41, 62.63, 136.90°)
OKLaboklab(56.6% -0.1247 0.0981)
OKLCHoklch(56.6% 0.159 141.8)
XYZxyz(11.1607, 19.6261, 5.3901)
Luminance0.1963 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#338C2A #832A8C
analogous
#648C2A #338C2A #2A8C52
triadic
#338C2A #2A338C #8C2A33
tetradic
#338C2A #2A648C #832A8C #8C522A
square
#338C2A #2A648C #832A8C #8C522A
split-complementary
#338C2A #522A8C #8C2A64
monochromatic
#112E0E #225D1C #338C2A #44BB38 #6BD061

Accessibility & contrast

On white

4.26
#338C2A on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.93
#338C2A on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #338C2A
4.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##338C2A#FFFFFF#000000##000000
##338C2A1.004.264.934.93
#FFFFFF4.261.0021.0021.00
#0000004.9321.001.001.00
##0000004.9321.001.001.00

Color blindness preview

Protanopia (red-blind)
#8F7F1C
Deuteranopia (green-blind)
#847833
Tritanopia (blue-blind)
#248878
Achromatopsia (no color)
#7A7A7A

Design tokens & code

CSS
--color: #338c2a;
/* rgb */ color: rgb(51, 140, 42);
/* oklch */ color: oklch(56.6% 0.159 141.8);
Tailwind
colors: {
  custom: {
    50: '#76ae69',
    500: '#338c2a',
    950: '#000000',
  },
}
SCSS
$custom: #338c2a;
$custom-light: #76ae69;
$custom-dark: #000000;
JSON
{
  "hex": "#338c2a",
  "rgb": {
    "r": 51,
    "g": 140,
    "b": 42
  },
  "hsl": {
    "h": 114.49,
    "s": 53.846,
    "l": 35.686
  },
  "oklch": {
    "l": 0.56598,
    "c": 0.15866,
    "h": 141.8
  },
  "luminance": 0.19627
}

Semantic roles & 50–950 ramp

primary
#338C2A
secondary
#AD5CB5
accent
#4BDDD0
background
#F7FAF6
surface
#EEF4EB
border
#C9CEC6
text
#091007
muted
#7B7F7A

Preview Lab

Preview with #338C2A

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

Preview Lab → · Contrast checker → · Palette generator →

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