#338628#338628

#338628 is a mid, vivid green. Relative luminance 0.179; OKLCH L 54.9% C 0.152 H 141.4°. Best body text is #000000 at 4.58:1 contrast (WCAG AA passes).

Color values

HEX#338628
RGBrgb(51, 134, 40)
HSLhsl(113, 54%, 34%)
HSVhsv(113, 70%, 53%)
CMYKcmyk(61.9%, 0%, 70.1%, 47.5%)
CIE-LABlab(49.38, -43.65, 41.48)
CIE-LCHlch(49.38, 60.22, 136.46°)
OKLaboklab(54.92% -0.1192 0.0951)
OKLCHoklch(54.92% 0.152 141.4)
XYZxyz(10.2728, 17.9063, 4.9220)
Luminance0.1791 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#338628 #7B2886
analogous
#628628 #338628 #28864C
triadic
#338628 #283386 #862833
tetradic
#338628 #286286 #7B2886 #864C28
square
#338628 #286286 #7B2886 #864C28
split-complementary
#338628 #4C2886 #862862
monochromatic
#0F280C #21571A #338628 #45B536 #68CE5B

Accessibility & contrast

On white

4.58
#338628 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.58
#338628 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #338628
4.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##338628#FFFFFF#000000##000000
##3386281.004.584.584.58
#FFFFFF4.581.0021.0021.00
#0000004.5821.001.001.00
##0000004.5821.001.001.00

Color blindness preview

Protanopia (red-blind)
#897A1B
Deuteranopia (green-blind)
#7F7331
Tritanopia (blue-blind)
#268273
Achromatopsia (no color)
#757575

Design tokens & code

CSS
--color: #338628;
/* rgb */ color: rgb(51, 134, 40);
/* oklch */ color: oklch(54.9% 0.152 141.4);
Tailwind
colors: {
  custom: {
    50: '#75aa67',
    500: '#338628',
    950: '#000000',
  },
}
SCSS
$custom: #338628;
$custom-light: #75aa67;
$custom-dark: #000000;
JSON
{
  "hex": "#338628",
  "rgb": {
    "r": 51,
    "g": 134,
    "b": 40
  },
  "hsl": {
    "h": 112.979,
    "s": 54.023,
    "l": 34.118
  },
  "oklch": {
    "l": 0.54916,
    "c": 0.15248,
    "h": 141.4
  },
  "luminance": 0.17907
}

Semantic roles & 50–950 ramp

primary
#338628
secondary
#A857B3
accent
#4ADDCC
background
#F7FAF6
surface
#EDF4EB
border
#C8CEC6
text
#091006
muted
#7B7F7A

Preview Lab

Preview with #338628

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

Preview Lab → · Contrast checker → · Palette generator →

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