#338327#338327

#338327 is a mid, vivid green. Relative luminance 0.171; OKLCH L 54.1% C 0.149 H 141.2°. Best body text is #FFFFFF at 4.75:1 contrast (WCAG AA passes).

Color values

HEX#338327
RGBrgb(51, 131, 39)
HSLhsl(112, 54%, 33%)
HSVhsv(112, 70%, 51%)
CMYKcmyk(61.1%, 0%, 70.2%, 48.6%)
CIE-LABlab(48.36, -42.59, 40.83)
CIE-LCHlch(48.36, 59.00, 136.21°)
OKLaboklab(54.07% -0.1164 0.0936)
OKLCHoklch(54.07% 0.149 141.2)
XYZxyz(9.8473, 17.0820, 4.6973)
Luminance0.1708 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#338327 #772783
analogous
#618327 #338327 #278349
triadic
#338327 #273383 #832733
tetradic
#338327 #276183 #772783 #834927
square
#338327 #276183 #772783 #834927
split-complementary
#338327 #492783 #832761
monochromatic
#0E250B #215419 #338327 #45B235 #67CD57

Accessibility & contrast

On white

4.75
#338327 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.42
#338327 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #338327
4.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##338327#FFFFFF#000000##FFFFFF
##3383271.004.754.424.75
#FFFFFF4.751.0021.001.00
#0000004.4221.001.0021.00
##FFFFFF4.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#86771A
Deuteranopia (green-blind)
#7C7030
Tritanopia (blue-blind)
#277F70
Achromatopsia (no color)
#737373

Design tokens & code

CSS
--color: #338327;
/* rgb */ color: rgb(51, 131, 39);
/* oklch */ color: oklch(54.1% 0.149 141.2);
Tailwind
colors: {
  custom: {
    50: '#74a866',
    500: '#338327',
    950: '#000000',
  },
}
SCSS
$custom: #338327;
$custom-light: #74a866;
$custom-dark: #000000;
JSON
{
  "hex": "#338327",
  "rgb": {
    "r": 51,
    "g": 131,
    "b": 39
  },
  "hsl": {
    "h": 112.174,
    "s": 54.118,
    "l": 33.333
  },
  "oklch": {
    "l": 0.54072,
    "c": 0.14936,
    "h": 141.2
  },
  "luminance": 0.17083
}

Semantic roles & 50–950 ramp

primary
#338327
secondary
#A654B2
accent
#4ADDCA
background
#F7FAF6
surface
#EDF4EB
border
#C8CEC6
text
#091006
muted
#7B7F7A

Preview Lab

Preview with #338327

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

Preview Lab → · Contrast checker → · Palette generator →

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