#338228#338228

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

Color values

HEX#338228
RGBrgb(51, 130, 40)
HSLhsl(113, 53%, 33%)
HSVhsv(113, 69%, 51%)
CMYKcmyk(60.8%, 0%, 69.2%, 49%)
CIE-LABlab(48.03, -42.11, 40.04)
CIE-LCHlch(48.03, 58.11, 136.44°)
OKLaboklab(53.8% -0.115 0.0921)
OKLCHoklch(53.8% 0.147 141.3)
XYZxyz(9.7304, 16.8214, 4.7412)
Luminance0.1682 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#338228 #772882
analogous
#608228 #338228 #28824A
triadic
#338228 #283382 #822833
tetradic
#338228 #286082 #772882 #824A28
square
#338228 #286082 #772882 #824A28
split-complementary
#338228 #4A2882 #822860
monochromatic
#0E240B #21531A #338228 #45B136 #67CC59

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##338228#FFFFFF#000000##FFFFFF
##3382281.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)
#85761C
Deuteranopia (green-blind)
#7B6F30
Tritanopia (blue-blind)
#277E70
Achromatopsia (no color)
#727272

Design tokens & code

CSS
--color: #338228;
/* rgb */ color: rgb(51, 130, 40);
/* oklch */ color: oklch(53.8% 0.147 141.3);
Tailwind
colors: {
  custom: {
    50: '#74a767',
    500: '#338228',
    950: '#000000',
  },
}
SCSS
$custom: #338228;
$custom-light: #74a767;
$custom-dark: #000000;
JSON
{
  "hex": "#338228",
  "rgb": {
    "r": 51,
    "g": 130,
    "b": 40
  },
  "hsl": {
    "h": 112.667,
    "s": 52.941,
    "l": 33.333
  },
  "oklch": {
    "l": 0.53803,
    "c": 0.14733,
    "h": 141.3
  },
  "luminance": 0.16822
}

Semantic roles & 50–950 ramp

primary
#338228
secondary
#A655B1
accent
#4BDCCB
background
#F7FAF6
surface
#EDF4EB
border
#C8CEC6
text
#090F06
muted
#7B7F7A

Preview Lab

Preview with #338228

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

Preview Lab → · Contrast checker → · Palette generator →

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