#338928#338928

#338928 is a mid, vivid green. Relative luminance 0.187; OKLCH L 55.7% C 0.156 H 141.5°. Best body text is #000000 at 4.75:1 contrast (WCAG AA passes).

Color values

HEX#338928
RGBrgb(51, 137, 40)
HSLhsl(113, 55%, 35%)
HSVhsv(113, 71%, 54%)
CMYKcmyk(62.8%, 0%, 70.8%, 46.3%)
CIE-LABlab(50.39, -44.79, 42.55)
CIE-LCHlch(50.39, 61.78, 136.47°)
OKLaboklab(55.75% -0.1223 0.0974)
OKLCHoklch(55.75% 0.156 141.5)
XYZxyz(10.6934, 18.7473, 5.0621)
Luminance0.1875 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#338928 #7E2889
analogous
#648928 #338928 #28894E
triadic
#338928 #283389 #892833
tetradic
#338928 #286489 #7E2889 #894E28
square
#338928 #286489 #7E2889 #894E28
split-complementary
#338928 #4E2889 #892864
monochromatic
#102A0C #215A1A #338928 #45B836 #69CF5C

Accessibility & contrast

On white

4.42
#338928 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.75
#338928 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #338928
4.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##338928#FFFFFF#000000##000000
##3389281.004.424.754.75
#FFFFFF4.421.0021.0021.00
#0000004.7521.001.001.00
##0000004.7521.001.001.00

Color blindness preview

Protanopia (red-blind)
#8C7C1A
Deuteranopia (green-blind)
#827531
Tritanopia (blue-blind)
#258576
Achromatopsia (no color)
#787878

Design tokens & code

CSS
--color: #338928;
/* rgb */ color: rgb(51, 137, 40);
/* oklch */ color: oklch(55.7% 0.156 141.5);
Tailwind
colors: {
  custom: {
    50: '#76ac67',
    500: '#338928',
    950: '#000000',
  },
}
SCSS
$custom: #338928;
$custom-light: #76ac67;
$custom-dark: #000000;
JSON
{
  "hex": "#338928",
  "rgb": {
    "r": 51,
    "g": 137,
    "b": 40
  },
  "hsl": {
    "h": 113.196,
    "s": 54.802,
    "l": 34.706
  },
  "oklch": {
    "l": 0.55749,
    "c": 0.15629,
    "h": 141.5
  },
  "luminance": 0.18748
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #338928

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

Preview Lab → · Contrast checker → · Palette generator →

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