#338740#338740

#338740 is a mid, vivid green. Relative luminance 0.184; OKLCH L 55.5% C 0.133 H 146.4°. Best body text is #000000 at 4.68:1 contrast (WCAG AA passes).

Color values

HEX#338740
RGBrgb(51, 135, 64)
HSLhsl(129, 45%, 36%)
HSVhsv(129, 62%, 53%)
CMYKcmyk(62.2%, 0%, 52.6%, 47.1%)
CIE-LABlab(49.98, -41.07, 30.61)
CIE-LCHlch(49.98, 51.22, 143.30°)
OKLaboklab(55.49% -0.1111 0.0739)
OKLCHoklch(55.49% 0.133 146.4)
XYZxyz(10.9539, 18.4009, 7.8240)
Luminance0.1840 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#338740 #87337A
analogous
#508733 #338740 #33876A
triadic
#338740 #403387 #874033
tetradic
#338740 #335087 #87337A #876A33
square
#338740 #335087 #87337A #876A33
split-complementary
#338740 #6A3387 #873350
monochromatic
#112E16 #225B2B #338740 #44B355 #6DC87B

Accessibility & contrast

On white

4.49
#338740 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.68
#338740 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #338740
4.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##338740#FFFFFF#000000##000000
##3387401.004.494.684.68
#FFFFFF4.491.0021.0021.00
#0000004.6821.001.001.00
##0000004.6821.001.001.00

Color blindness preview

Protanopia (red-blind)
#897B3A
Deuteranopia (green-blind)
#7E7445
Tritanopia (blue-blind)
#1F8477
Achromatopsia (no color)
#777777

Design tokens & code

CSS
--color: #338740;
/* rgb */ color: rgb(51, 135, 64);
/* oklch */ color: oklch(55.5% 0.133 146.4);
Tailwind
colors: {
  custom: {
    50: '#74ab76',
    500: '#338740',
    950: '#000000',
  },
}
SCSS
$custom: #338740;
$custom-light: #74ab76;
$custom-dark: #000000;
JSON
{
  "hex": "#338740",
  "rgb": {
    "r": 51,
    "g": 135,
    "b": 64
  },
  "hsl": {
    "h": 129.286,
    "s": 45.161,
    "l": 36.471
  },
  "oklch": {
    "l": 0.55492,
    "c": 0.13339,
    "h": 146.4
  },
  "luminance": 0.18402
}

Semantic roles & 50–950 ramp

primary
#338740
secondary
#B066A4
accent
#53C1D5
background
#F7FAF7
surface
#EDF4ED
border
#C8CEC8
text
#091008
muted
#7B7F7B

Preview Lab

Preview with #338740

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

Preview Lab → · Contrast checker → · Palette generator →

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