#338540#338540

#338540 is a mid, vivid green. Relative luminance 0.178; OKLCH L 54.9% C 0.131 H 146.5°. Best body text is #FFFFFF at 4.60:1 contrast (WCAG AA passes).

Color values

HEX#338540
RGBrgb(51, 133, 64)
HSLhsl(130, 45%, 36%)
HSVhsv(130, 62%, 52%)
CMYKcmyk(61.7%, 0%, 51.9%, 47.8%)
CIE-LABlab(49.31, -40.26, 29.79)
CIE-LCHlch(49.31, 50.08, 143.50°)
OKLaboklab(54.94% -0.1089 0.072)
OKLCHoklch(54.94% 0.131 146.5)
XYZxyz(10.6775, 17.8480, 7.7318)
Luminance0.1785 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#338540 #853378
analogous
#4F8533 #338540 #338569
triadic
#338540 #403385 #854033
tetradic
#338540 #334F85 #853378 #856933
square
#338540 #334F85 #853378 #856933
split-complementary
#338540 #693385 #85334F
monochromatic
#112D15 #22592B #338540 #44B155 #6CC77A

Accessibility & contrast

On white

4.60
#338540 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.57
#338540 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #338540
4.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##338540#FFFFFF#000000##FFFFFF
##3385401.004.604.574.60
#FFFFFF4.601.0021.001.00
#0000004.5721.001.0021.00
##FFFFFF4.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#877A3A
Deuteranopia (green-blind)
#7C7245
Tritanopia (blue-blind)
#208275
Achromatopsia (no color)
#757575

Design tokens & code

CSS
--color: #338540;
/* rgb */ color: rgb(51, 133, 64);
/* oklch */ color: oklch(54.9% 0.131 146.5);
Tailwind
colors: {
  custom: {
    50: '#74a976',
    500: '#338540',
    950: '#000000',
  },
}
SCSS
$custom: #338540;
$custom-light: #74a976;
$custom-dark: #000000;
JSON
{
  "hex": "#338540",
  "rgb": {
    "r": 51,
    "g": 133,
    "b": 64
  },
  "hsl": {
    "h": 129.512,
    "s": 44.565,
    "l": 36.078
  },
  "oklch": {
    "l": 0.54943,
    "c": 0.13055,
    "h": 146.5
  },
  "luminance": 0.17849
}

Semantic roles & 50–950 ramp

primary
#338540
secondary
#AE65A3
accent
#54C0D4
background
#F7FAF7
surface
#EDF4ED
border
#C8CEC8
text
#091008
muted
#7B7F7B

Preview Lab

Preview with #338540

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

Preview Lab → · Contrast checker → · Palette generator →

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