#338626#338626

#338626 is a mid, vivid green. Relative luminance 0.179; OKLCH L 54.9% C 0.154 H 141.1°. Best body text is #FFFFFF at 4.59:1 contrast (WCAG AA passes).

Color values

HEX#338626
RGBrgb(51, 134, 38)
HSLhsl(112, 56%, 34%)
HSVhsv(112, 72%, 53%)
CMYKcmyk(61.9%, 0%, 71.6%, 47.5%)
CIE-LABlab(49.37, -43.84, 42.31)
CIE-LCHlch(49.37, 60.92, 136.02°)
OKLaboklab(54.9% -0.1198 0.0966)
OKLCHoklch(54.9% 0.154 141.1)
XYZxyz(10.2397, 17.8930, 4.7474)
Luminance0.1789 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#338626 #792686
analogous
#638626 #338626 #268649
triadic
#338626 #263386 #862633
tetradic
#338626 #266386 #792686 #864926
square
#338626 #266386 #792686 #864926
split-complementary
#338626 #492686 #862663
monochromatic
#0F270B #215618 #338626 #45B634 #67CF57

Accessibility & contrast

On white

4.59
#338626 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #338626
4.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##338626#FFFFFF#000000##FFFFFF
##3386261.004.594.584.59
#FFFFFF4.591.0021.001.00
#0000004.5821.001.0021.00
##FFFFFF4.591.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #338626;
/* rgb */ color: rgb(51, 134, 38);
/* oklch */ color: oklch(54.9% 0.154 141.1);
Tailwind
colors: {
  custom: {
    50: '#75aa66',
    500: '#338626',
    950: '#000000',
  },
}
SCSS
$custom: #338626;
$custom-light: #75aa66;
$custom-dark: #000000;
JSON
{
  "hex": "#338626",
  "rgb": {
    "r": 51,
    "g": 134,
    "b": 38
  },
  "hsl": {
    "h": 111.875,
    "s": 55.814,
    "l": 33.725
  },
  "oklch": {
    "l": 0.54897,
    "c": 0.1539,
    "h": 141.1
  },
  "luminance": 0.17894
}

Semantic roles & 50–950 ramp

primary
#338626
secondary
#A754B4
accent
#49DFCB
background
#F7FAF6
surface
#EDF4EB
border
#C8CEC6
text
#091006
muted
#7B7F7A

Preview Lab

Preview with #338626

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

Preview Lab → · Contrast checker → · Palette generator →

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