#338420#338420

#338420 is a mid, vivid green. Relative luminance 0.173; OKLCH L 54.3% C 0.155 H 140.3°. Best body text is #FFFFFF at 4.71:1 contrast (WCAG AA passes).

Color values

HEX#338420
RGBrgb(51, 132, 32)
HSLhsl(109, 61%, 32%)
HSVhsv(109, 76%, 52%)
CMYKcmyk(61.4%, 0%, 75.8%, 48.2%)
CIE-LABlab(48.65, -43.59, 43.96)
CIE-LCHlch(48.65, 61.90, 134.76°)
OKLaboklab(54.29% -0.1195 0.0992)
OKLCHoklch(54.29% 0.155 140.3)
XYZxyz(9.8768, 17.3097, 4.1868)
Luminance0.1731 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#338420 #712084
analogous
#658420 #338420 #20843F
triadic
#338420 #203384 #842033
tetradic
#338420 #206584 #712084 #843F20
square
#338420 #206584 #712084 #843F20
split-complementary
#338420 #3F2084 #842065
monochromatic
#0D2108 #205314 #338420 #46B52C #65D34B

Accessibility & contrast

On white

4.71
#338420 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.46
#338420 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #338420
4.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##338420#FFFFFF#000000##FFFFFF
##3384201.004.714.464.71
#FFFFFF4.711.0021.001.00
#0000004.4621.001.0021.00
##FFFFFF4.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#88780D
Deuteranopia (green-blind)
#7E712A
Tritanopia (blue-blind)
#288071
Achromatopsia (no color)
#747474

Design tokens & code

CSS
--color: #338420;
/* rgb */ color: rgb(51, 132, 32);
/* oklch */ color: oklch(54.3% 0.155 140.3);
Tailwind
colors: {
  custom: {
    50: '#75a963',
    500: '#338420',
    950: '#000000',
  },
}
SCSS
$custom: #338420;
$custom-light: #75a963;
$custom-dark: #000000;
JSON
{
  "hex": "#338420",
  "rgb": {
    "r": 51,
    "g": 132,
    "b": 32
  },
  "hsl": {
    "h": 108.6,
    "s": 60.976,
    "l": 32.157
  },
  "oklch": {
    "l": 0.5429,
    "c": 0.15531,
    "h": 140.3
  },
  "luminance": 0.17311
}

Semantic roles & 50–950 ramp

primary
#338420
secondary
#A24AB6
accent
#44E4C6
background
#F7FAF6
surface
#EDF4EB
border
#C8CEC6
text
#091005
muted
#7B7F7A

Preview Lab

Preview with #338420

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

Preview Lab → · Contrast checker → · Palette generator →

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