#338522#338522

#338522 is a mid, vivid green. Relative luminance 0.176; OKLCH L 54.6% C 0.155 H 140.6°. Best body text is #FFFFFF at 4.65:1 contrast (WCAG AA passes).

Color values

HEX#338522
RGBrgb(51, 133, 34)
HSLhsl(110, 59%, 33%)
HSVhsv(110, 74%, 52%)
CMYKcmyk(61.7%, 0%, 74.4%, 47.8%)
CIE-LABlab(49.00, -43.80, 43.54)
CIE-LCHlch(49.00, 61.76, 135.17°)
OKLaboklab(54.58% -0.12 0.0986)
OKLCHoklch(54.58% 0.155 140.6)
XYZxyz(10.0410, 17.5934, 4.3798)
Luminance0.1759 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#338522 #742285
analogous
#648522 #338522 #228542
triadic
#338522 #223385 #852233
tetradic
#338522 #226485 #742285 #854222
square
#338522 #226485 #742285 #854222
split-complementary
#338522 #422285 #852264
monochromatic
#0E2409 #205416 #338522 #46B62E #66D24F

Accessibility & contrast

On white

4.65
#338522 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.52
#338522 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #338522
4.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##338522#FFFFFF#000000##FFFFFF
##3385221.004.654.524.65
#FFFFFF4.651.0021.001.00
#0000004.5221.001.0021.00
##FFFFFF4.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#897911
Deuteranopia (green-blind)
#7E722C
Tritanopia (blue-blind)
#278172
Achromatopsia (no color)
#747474

Design tokens & code

CSS
--color: #338522;
/* rgb */ color: rgb(51, 133, 34);
/* oklch */ color: oklch(54.6% 0.155 140.6);
Tailwind
colors: {
  custom: {
    50: '#75a964',
    500: '#338522',
    950: '#000000',
  },
}
SCSS
$custom: #338522;
$custom-light: #75a964;
$custom-dark: #000000;
JSON
{
  "hex": "#338522",
  "rgb": {
    "r": 51,
    "g": 133,
    "b": 34
  },
  "hsl": {
    "h": 109.697,
    "s": 59.281,
    "l": 32.745
  },
  "oklch": {
    "l": 0.54585,
    "c": 0.1553,
    "h": 140.6
  },
  "luminance": 0.17594
}

Semantic roles & 50–950 ramp

primary
#338522
secondary
#A44DB6
accent
#45E2C7
background
#F7FAF6
surface
#EDF4EB
border
#C8CEC6
text
#091006
muted
#7B7F7A

Preview Lab

Preview with #338522

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

Preview Lab → · Contrast checker → · Palette generator →

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