#338F36#338F36

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

Color values

HEX#338F36
RGBrgb(51, 143, 54)
HSLhsl(122, 47%, 38%)
HSVhsv(122, 64%, 56%)
CMYKcmyk(64.3%, 0%, 62.2%, 43.9%)
CIE-LABlab(52.52, -45.56, 38.63)
CIE-LCHlch(52.52, 59.73, 139.71°)
OKLaboklab(57.55% -0.1236 0.0906)
OKLCHoklch(57.55% 0.153 143.8)
XYZxyz(11.8529, 20.6139, 6.8436)
Luminance0.2061 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#338F36 #8F338C
analogous
#5E8F33 #338F36 #338F64
triadic
#338F36 #36338F #8F3633
tetradic
#338F36 #335E8F #8F338C #8F6433
square
#338F36 #335E8F #8F338C #8F6433
split-complementary
#338F36 #64338F #8F335E
monochromatic
#133514 #236225 #338F36 #43BC47 #70CC73

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##338F36#FFFFFF#000000##000000
##338F361.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)
#92822C
Deuteranopia (green-blind)
#867A3D
Tritanopia (blue-blind)
#1F8B7C
Achromatopsia (no color)
#7D7D7D

Design tokens & code

CSS
--color: #338f36;
/* rgb */ color: rgb(51, 143, 54);
/* oklch */ color: oklch(57.6% 0.153 143.8);
Tailwind
colors: {
  custom: {
    50: '#76b170',
    500: '#338f36',
    950: '#000000',
  },
}
SCSS
$custom: #338f36;
$custom-light: #76b170;
$custom-dark: #000000;
JSON
{
  "hex": "#338f36",
  "rgb": {
    "r": 51,
    "g": 143,
    "b": 54
  },
  "hsl": {
    "h": 121.957,
    "s": 47.423,
    "l": 38.039
  },
  "oklch": {
    "l": 0.57554,
    "c": 0.15326,
    "h": 143.8
  },
  "luminance": 0.20615
}

Semantic roles & 50–950 ramp

primary
#338F36
secondary
#B46AB2
accent
#51D3D7
background
#F7FBF6
surface
#EEF6EC
border
#C9D0C7
text
#091108
muted
#7B807B

Preview Lab

Preview with #338F36

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

Preview Lab → · Contrast checker → · Palette generator →

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