#338728#338728

#338728 is a mid, vivid green. Relative luminance 0.182; OKLCH L 55.2% C 0.154 H 141.4°. Best body text is #000000 at 4.64:1 contrast (WCAG AA passes).

Color values

HEX#338728
RGBrgb(51, 135, 40)
HSLhsl(113, 54%, 34%)
HSVhsv(113, 70%, 53%)
CMYKcmyk(62.2%, 0%, 70.4%, 47.1%)
CIE-LABlab(49.72, -44.03, 41.84)
CIE-LCHlch(49.72, 60.74, 136.46°)
OKLaboklab(55.19% -0.1202 0.0959)
OKLCHoklch(55.19% 0.154 141.4)
XYZxyz(10.4117, 18.1840, 4.9683)
Luminance0.1819 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#338728 #7C2887
analogous
#638728 #338728 #28874D
triadic
#338728 #283387 #872833
tetradic
#338728 #286387 #7C2887 #874D28
square
#338728 #286387 #7C2887 #874D28
split-complementary
#338728 #4D2887 #872863
monochromatic
#0F290C #21581A #338728 #45B636 #68CE5B

Accessibility & contrast

On white

4.53
#338728 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.64
#338728 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #338728
4.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##338728#FFFFFF#000000##000000
##3387281.004.534.644.64
#FFFFFF4.531.0021.0021.00
#0000004.6421.001.001.00
##0000004.6421.001.001.00

Color blindness preview

Protanopia (red-blind)
#8A7B1A
Deuteranopia (green-blind)
#807431
Tritanopia (blue-blind)
#268374
Achromatopsia (no color)
#767676

Design tokens & code

CSS
--color: #338728;
/* rgb */ color: rgb(51, 135, 40);
/* oklch */ color: oklch(55.2% 0.154 141.4);
Tailwind
colors: {
  custom: {
    50: '#75ab67',
    500: '#338728',
    950: '#000000',
  },
}
SCSS
$custom: #338728;
$custom-light: #75ab67;
$custom-dark: #000000;
JSON
{
  "hex": "#338728",
  "rgb": {
    "r": 51,
    "g": 135,
    "b": 40
  },
  "hsl": {
    "h": 113.053,
    "s": 54.286,
    "l": 34.314
  },
  "oklch": {
    "l": 0.55194,
    "c": 0.15376,
    "h": 141.4
  },
  "luminance": 0.18185
}

Semantic roles & 50–950 ramp

primary
#338728
secondary
#A957B4
accent
#4ADECD
background
#F7FAF6
surface
#EEF4EB
border
#C9CEC6
text
#091006
muted
#7B7F7A

Preview Lab

Preview with #338728

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

Preview Lab → · Contrast checker → · Palette generator →

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