#338F34#338F34

#338F34 is a mid, vivid green. Relative luminance 0.206; OKLCH L 57.5% C 0.155 H 143.4°. Best body text is #000000 at 5.12:1 contrast (WCAG AA passes).

Color values

HEX#338F34
RGBrgb(51, 143, 52)
HSLhsl(121, 47%, 38%)
HSVhsv(121, 64%, 56%)
CMYKcmyk(64.3%, 0%, 63.6%, 43.9%)
CIE-LABlab(52.50, -45.80, 39.54)
CIE-LCHlch(52.50, 60.50, 139.19°)
OKLaboklab(57.53% -0.1243 0.0924)
OKLCHoklch(57.53% 0.155 143.4)
XYZxyz(11.8069, 20.5955, 6.6013)
Luminance0.2060 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#338F34 #8F338E
analogous
#608F33 #338F34 #338F62
triadic
#338F34 #34338F #8F3433
tetradic
#338F34 #33608F #8F338E #8F6233
square
#338F34 #33608F #8F338E #8F6233
split-complementary
#338F34 #62338F #8F3360
monochromatic
#133513 #236224 #338F34 #43BC44 #70CC71

Accessibility & contrast

On white

4.10
#338F34 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.12
#338F34 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #338F34
5.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##338F34#FFFFFF#000000##000000
##338F341.004.105.125.12
#FFFFFF4.101.0021.0021.00
#0000005.1221.001.001.00
##0000005.1221.001.001.00

Color blindness preview

Protanopia (red-blind)
#92822A
Deuteranopia (green-blind)
#877A3C
Tritanopia (blue-blind)
#208B7C
Achromatopsia (no color)
#7D7D7D

Design tokens & code

CSS
--color: #338f34;
/* rgb */ color: rgb(51, 143, 52);
/* oklch */ color: oklch(57.5% 0.155 143.4);
Tailwind
colors: {
  custom: {
    50: '#76b16f',
    500: '#338f34',
    950: '#000000',
  },
}
SCSS
$custom: #338f34;
$custom-light: #76b16f;
$custom-dark: #000000;
JSON
{
  "hex": "#338f34",
  "rgb": {
    "r": 51,
    "g": 143,
    "b": 52
  },
  "hsl": {
    "h": 120.652,
    "s": 47.423,
    "l": 38.039
  },
  "oklch": {
    "l": 0.5753,
    "c": 0.1549,
    "h": 143.4
  },
  "luminance": 0.20597
}

Semantic roles & 50–950 ramp

primary
#338F34
secondary
#B46AB3
accent
#51D6D7
background
#F7FBF6
surface
#EEF6EC
border
#C9D0C7
text
#091107
muted
#7B807A

Preview Lab

Preview with #338F34

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

Preview Lab → · Contrast checker → · Palette generator →

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