#338227#338227

#338227 is a mid, vivid green. Relative luminance 0.168; OKLCH L 53.8% C 0.148 H 141.2°. Best body text is #FFFFFF at 4.81:1 contrast (WCAG AA passes).

Color values

HEX#338227
RGBrgb(51, 130, 39)
HSLhsl(112, 54%, 33%)
HSVhsv(112, 70%, 51%)
CMYKcmyk(60.8%, 0%, 70%, 49%)
CIE-LABlab(48.03, -42.21, 40.47)
CIE-LCHlch(48.03, 58.47, 136.20°)
OKLaboklab(53.79% -0.1153 0.0928)
OKLCHoklch(53.79% 0.148 141.2)
XYZxyz(9.7136, 16.8147, 4.6527)
Luminance0.1682 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#338227 #762782
analogous
#608227 #338227 #278248
triadic
#338227 #273382 #822733
tetradic
#338227 #276082 #762782 #824827
square
#338227 #276082 #762782 #824827
split-complementary
#338227 #482782 #822760
monochromatic
#0E240B #215319 #338227 #45B135 #66CD57

Accessibility & contrast

On white

4.81
#338227 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.36
#338227 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #338227
4.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##338227#FFFFFF#000000##FFFFFF
##3382271.004.814.364.81
#FFFFFF4.811.0021.001.00
#0000004.3621.001.0021.00
##FFFFFF4.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#85761A
Deuteranopia (green-blind)
#7B6F2F
Tritanopia (blue-blind)
#287E70
Achromatopsia (no color)
#727272

Design tokens & code

CSS
--color: #338227;
/* rgb */ color: rgb(51, 130, 39);
/* oklch */ color: oklch(53.8% 0.148 141.2);
Tailwind
colors: {
  custom: {
    50: '#74a766',
    500: '#338227',
    950: '#000000',
  },
}
SCSS
$custom: #338227;
$custom-light: #74a766;
$custom-dark: #000000;
JSON
{
  "hex": "#338227",
  "rgb": {
    "r": 51,
    "g": 130,
    "b": 39
  },
  "hsl": {
    "h": 112.088,
    "s": 53.846,
    "l": 33.137
  },
  "oklch": {
    "l": 0.53793,
    "c": 0.14806,
    "h": 141.2
  },
  "luminance": 0.16816
}

Semantic roles & 50–950 ramp

primary
#338227
secondary
#A553B1
accent
#4BDDCA
background
#F7FAF6
surface
#EDF4EB
border
#C8CEC6
text
#090F06
muted
#7B7F7A

Preview Lab

Preview with #338227

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

Preview Lab → · Contrast checker → · Palette generator →

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