#338328#338328

#338328 is a mid, vivid green. Relative luminance 0.171; OKLCH L 54.1% C 0.149 H 141.3°. Best body text is #FFFFFF at 4.75:1 contrast (WCAG AA passes).

Color values

HEX#338328
RGBrgb(51, 131, 40)
HSLhsl(113, 53%, 34%)
HSVhsv(113, 69%, 51%)
CMYKcmyk(61.1%, 0%, 69.5%, 48.6%)
CIE-LABlab(48.37, -42.50, 40.40)
CIE-LCHlch(48.37, 58.64, 136.45°)
OKLaboklab(54.08% -0.1161 0.0928)
OKLCHoklch(54.08% 0.149 141.3)
XYZxyz(9.8641, 17.0887, 4.7857)
Luminance0.1709 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#338328 #782883
analogous
#608328 #338328 #28834A
triadic
#338328 #283383 #832833
tetradic
#338328 #286083 #782883 #834A28
square
#338328 #286083 #782883 #834A28
split-complementary
#338328 #4A2883 #832860
monochromatic
#0E250B #21541A #338328 #45B236 #67CC59

Accessibility & contrast

On white

4.75
#338328 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.42
#338328 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #338328
4.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##338328#FFFFFF#000000##FFFFFF
##3383281.004.754.424.75
#FFFFFF4.751.0021.001.00
#0000004.4221.001.0021.00
##FFFFFF4.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#86771B
Deuteranopia (green-blind)
#7C7030
Tritanopia (blue-blind)
#277F70
Achromatopsia (no color)
#737373

Design tokens & code

CSS
--color: #338328;
/* rgb */ color: rgb(51, 131, 40);
/* oklch */ color: oklch(54.1% 0.149 141.3);
Tailwind
colors: {
  custom: {
    50: '#74a867',
    500: '#338328',
    950: '#000000',
  },
}
SCSS
$custom: #338328;
$custom-light: #74a867;
$custom-dark: #000000;
JSON
{
  "hex": "#338328",
  "rgb": {
    "r": 51,
    "g": 131,
    "b": 40
  },
  "hsl": {
    "h": 112.747,
    "s": 53.216,
    "l": 33.529
  },
  "oklch": {
    "l": 0.54081,
    "c": 0.14863,
    "h": 141.3
  },
  "luminance": 0.1709
}

Semantic roles & 50–950 ramp

primary
#338328
secondary
#A655B1
accent
#4BDDCB
background
#F7FAF6
surface
#EDF4EB
border
#C8CEC6
text
#091006
muted
#7B7F7A

Preview Lab

Preview with #338328

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

Preview Lab → · Contrast checker → · Palette generator →

#338328 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva