#338E2F#338E2F

#338E2F is a mid, vivid green. Relative luminance 0.203; OKLCH L 57.2% C 0.158 H 142.6°. Best body text is #000000 at 5.05:1 contrast (WCAG AA passes).

Color values

HEX#338E2F
RGBrgb(51, 142, 47)
HSLhsl(117, 50%, 37%)
HSVhsv(117, 67%, 56%)
CMYKcmyk(64.1%, 0%, 66.9%, 44.3%)
CIE-LABlab(52.12, -45.97, 41.39)
CIE-LCHlch(52.12, 61.86, 138.00°)
OKLaboklab(57.2% -0.1251 0.0958)
OKLCHoklch(57.2% 0.158 142.6)
XYZxyz(11.5507, 20.2539, 5.9895)
Luminance0.2026 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#338E2F #8A2F8E
analogous
#638E2F #338E2F #2F8E5B
triadic
#338E2F #2F338E #8E2F33
tetradic
#338E2F #2F638E #8A2F8E #8E5B2F
square
#338E2F #2F638E #8A2F8E #8E5B2F
split-complementary
#338E2F #5B2F8E #8E2F63
monochromatic
#123211 #226020 #338E2F #44BC3E #6ECE6A

Accessibility & contrast

On white

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

On black

5.05
#338E2F on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #338E2F
5.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##338E2F#FFFFFF#000000##000000
##338E2F1.004.165.055.05
#FFFFFF4.161.0021.0021.00
#0000005.0521.001.001.00
##0000005.0521.001.001.00

Color blindness preview

Protanopia (red-blind)
#918123
Deuteranopia (green-blind)
#867937
Tritanopia (blue-blind)
#228A7A
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #338e2f;
/* rgb */ color: rgb(51, 142, 47);
/* oklch */ color: oklch(57.2% 0.158 142.6);
Tailwind
colors: {
  custom: {
    50: '#76b06c',
    500: '#338e2f',
    950: '#000000',
  },
}
SCSS
$custom: #338e2f;
$custom-light: #76b06c;
$custom-dark: #000000;
JSON
{
  "hex": "#338e2f",
  "rgb": {
    "r": 51,
    "g": 142,
    "b": 47
  },
  "hsl": {
    "h": 117.474,
    "s": 50.265,
    "l": 37.059
  },
  "oklch": {
    "l": 0.572,
    "c": 0.15753,
    "h": 142.6
  },
  "luminance": 0.20255
}

Semantic roles & 50–950 ramp

primary
#338E2F
secondary
#B164B5
accent
#4EDAD4
background
#F7FAF6
surface
#EEF5EC
border
#C9CFC7
text
#091007
muted
#7B7F7A

Preview Lab

Preview with #338E2F

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

Preview Lab → · Contrast checker → · Palette generator →

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