#338F38#338F38

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

Color values

HEX#338F38
RGBrgb(51, 143, 56)
HSLhsl(123, 47%, 38%)
HSVhsv(123, 64%, 56%)
CMYKcmyk(64.3%, 0%, 60.8%, 43.9%)
CIE-LABlab(52.55, -45.32, 37.70)
CIE-LCHlch(52.55, 58.95, 140.24°)
OKLaboklab(57.58% -0.1228 0.0888)
OKLCHoklch(57.58% 0.152 144.1)
XYZxyz(11.9008, 20.6331, 7.0960)
Luminance0.2063 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#338F38 #8F338A
analogous
#5C8F33 #338F38 #338F66
triadic
#338F38 #38338F #8F3833
tetradic
#338F38 #335C8F #8F338A #8F6633
square
#338F38 #335C8F #8F338A #8F6633
split-complementary
#338F38 #66338F #8F335C
monochromatic
#133515 #236226 #338F38 #43BC4A #70CC75

Accessibility & contrast

On white

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

On black

5.13
#338F38 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #338F38
5.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##338F38#FFFFFF#000000##000000
##338F381.004.105.135.13
#FFFFFF4.101.0021.0021.00
#0000005.1321.001.001.00
##0000005.1321.001.001.00

Color blindness preview

Protanopia (red-blind)
#92822F
Deuteranopia (green-blind)
#867A3F
Tritanopia (blue-blind)
#1F8B7C
Achromatopsia (no color)
#7D7D7D

Design tokens & code

CSS
--color: #338f38;
/* rgb */ color: rgb(51, 143, 56);
/* oklch */ color: oklch(57.6% 0.152 144.1);
Tailwind
colors: {
  custom: {
    50: '#76b172',
    500: '#338f38',
    950: '#000000',
  },
}
SCSS
$custom: #338f38;
$custom-light: #76b172;
$custom-dark: #000000;
JSON
{
  "hex": "#338f38",
  "rgb": {
    "r": 51,
    "g": 143,
    "b": 56
  },
  "hsl": {
    "h": 123.261,
    "s": 47.423,
    "l": 38.039
  },
  "oklch": {
    "l": 0.57578,
    "c": 0.15157,
    "h": 144.1
  },
  "luminance": 0.20634
}

Semantic roles & 50–950 ramp

primary
#338F38
secondary
#B46AB0
accent
#51D0D7
background
#F7FBF7
surface
#EEF6ED
border
#C9D0C8
text
#091108
muted
#7B807B

Preview Lab

Preview with #338F38

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

Preview Lab → · Contrast checker → · Palette generator →

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