#337228#337228

#337228 is a mid, vivid green. Relative luminance 0.129; OKLCH L 49.3% C 0.126 H 140.8°. Best body text is #FFFFFF at 5.87:1 contrast (WCAG AA passes).

Color values

HEX#337228
RGBrgb(51, 114, 40)
HSLhsl(111, 48%, 30%)
HSVhsv(111, 65%, 45%)
CMYKcmyk(55.3%, 0%, 64.9%, 55.3%)
CIE-LABlab(42.60, -35.62, 34.07)
CIE-LCHlch(42.60, 49.29, 136.27°)
OKLaboklab(49.32% -0.0974 0.0794)
OKLCHoklch(49.32% 0.126 140.8)
XYZxyz(7.7652, 12.8910, 4.0861)
Luminance0.1289 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#337228 #672872
analogous
#587228 #337228 #287242
triadic
#337228 #283372 #722833
tetradic
#337228 #285872 #672872 #724228
square
#337228 #285872 #672872 #724228
split-complementary
#337228 #422872 #722858
monochromatic
#0A1708 #1F4518 #337228 #479F38 #63C252

Accessibility & contrast

On white

5.87
#337228 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.58
#337228 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #337228
5.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##337228#FFFFFF#000000##FFFFFF
##3372281.005.873.585.87
#FFFFFF5.871.0021.001.00
#0000003.5821.001.0021.00
##FFFFFF5.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#756820
Deuteranopia (green-blind)
#6D622E
Tritanopia (blue-blind)
#2C6E62
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #337228;
/* rgb */ color: rgb(51, 114, 40);
/* oklch */ color: oklch(49.3% 0.126 140.8);
Tailwind
colors: {
  custom: {
    50: '#719b65',
    500: '#337228',
    950: '#000000',
  },
}
SCSS
$custom: #337228;
$custom-light: #719b65;
$custom-dark: #000000;
JSON
{
  "hex": "#337228",
  "rgb": {
    "r": 51,
    "g": 114,
    "b": 40
  },
  "hsl": {
    "h": 111.081,
    "s": 48.052,
    "l": 30.196
  },
  "oklch": {
    "l": 0.49323,
    "c": 0.12571,
    "h": 140.8
  },
  "luminance": 0.12892
}

Semantic roles & 50–950 ramp

primary
#337228
secondary
#9852A4
accent
#50D8C3
background
#F7F9F6
surface
#EDF2EB
border
#C8CCC6
text
#080E06
muted
#7B7E7A

Preview Lab

Preview with #337228

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

Preview Lab → · Contrast checker → · Palette generator →

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