#338028#338028

#338028 is a mid, vivid green. Relative luminance 0.163; OKLCH L 53.2% C 0.145 H 141.3°. Best body text is #FFFFFF at 4.93:1 contrast (WCAG AA passes).

Color values

HEX#338028
RGBrgb(51, 128, 40)
HSLhsl(113, 52%, 33%)
HSVhsv(113, 69%, 50%)
CMYKcmyk(60.2%, 0%, 68.8%, 49.8%)
CIE-LABlab(47.36, -41.32, 39.31)
CIE-LCHlch(47.36, 57.04, 136.43°)
OKLaboklab(53.25% -0.1129 0.0905)
OKLCHoklch(53.25% 0.145 141.3)
XYZxyz(9.4670, 16.2945, 4.6533)
Luminance0.1630 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#338028 #752880
analogous
#5F8028 #338028 #288049
triadic
#338028 #283380 #802833
tetradic
#338028 #285F80 #752880 #804928
square
#338028 #285F80 #752880 #804928
split-complementary
#338028 #492880 #80285F
monochromatic
#0E230B #205119 #338028 #46AF37 #66CB58

Accessibility & contrast

On white

4.93
#338028 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.26
#338028 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #338028
4.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##338028#FFFFFF#000000##FFFFFF
##3380281.004.934.264.93
#FFFFFF4.931.0021.001.00
#0000004.2621.001.0021.00
##FFFFFF4.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#83741C
Deuteranopia (green-blind)
#7A6E30
Tritanopia (blue-blind)
#287C6E
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #338028;
/* rgb */ color: rgb(51, 128, 40);
/* oklch */ color: oklch(53.2% 0.145 141.3);
Tailwind
colors: {
  custom: {
    50: '#74a666',
    500: '#338028',
    950: '#000000',
  },
}
SCSS
$custom: #338028;
$custom-light: #74a666;
$custom-dark: #000000;
JSON
{
  "hex": "#338028",
  "rgb": {
    "r": 51,
    "g": 128,
    "b": 40
  },
  "hsl": {
    "h": 112.5,
    "s": 52.381,
    "l": 32.941
  },
  "oklch": {
    "l": 0.53245,
    "c": 0.14472,
    "h": 141.3
  },
  "luminance": 0.16295
}

Semantic roles & 50–950 ramp

primary
#338028
secondary
#A454B0
accent
#4CDCCA
background
#F7FAF6
surface
#EDF4EB
border
#C8CEC6
text
#090F06
muted
#7B7F7A

Preview Lab

Preview with #338028

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

Preview Lab → · Contrast checker → · Palette generator →

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