#338B36#338B36

#338B36 is a mid, vivid green. Relative luminance 0.194; OKLCH L 56.5% C 0.148 H 143.8°. Best body text is #000000 at 4.89:1 contrast (WCAG AA passes).

Color values

HEX#338B36
RGBrgb(51, 139, 54)
HSLhsl(122, 46%, 37%)
HSVhsv(122, 63%, 55%)
CMYKcmyk(63.3%, 0%, 61.2%, 45.5%)
CIE-LABlab(51.19, -44.03, 37.10)
CIE-LCHlch(51.19, 57.57, 139.88°)
OKLaboklab(56.45% -0.1194 0.0873)
OKLCHoklch(56.45% 0.148 143.8)
XYZxyz(11.2631, 19.4343, 6.6470)
Luminance0.1943 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#338B36 #8B3388
analogous
#5C8B33 #338B36 #338B62
triadic
#338B36 #36338B #8B3633
tetradic
#338B36 #335C8B #8B3388 #8B6233
square
#338B36 #335C8B #8B3388 #8B6233
split-complementary
#338B36 #62338B #8B335C
monochromatic
#123113 #235E25 #338B36 #43B847 #6ECA72

Accessibility & contrast

On white

4.30
#338B36 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.89
#338B36 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #338B36
4.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##338B36#FFFFFF#000000##000000
##338B361.004.304.894.89
#FFFFFF4.301.0021.0021.00
#0000004.8921.001.001.00
##0000004.8921.001.001.00

Color blindness preview

Protanopia (red-blind)
#8E7F2D
Deuteranopia (green-blind)
#83773D
Tritanopia (blue-blind)
#218779
Achromatopsia (no color)
#7A7A7A

Design tokens & code

CSS
--color: #338b36;
/* rgb */ color: rgb(51, 139, 54);
/* oklch */ color: oklch(56.5% 0.148 143.8);
Tailwind
colors: {
  custom: {
    50: '#75ae70',
    500: '#338b36',
    950: '#000000',
  },
}
SCSS
$custom: #338b36;
$custom-light: #75ae70;
$custom-dark: #000000;
JSON
{
  "hex": "#338b36",
  "rgb": {
    "r": 51,
    "g": 139,
    "b": 54
  },
  "hsl": {
    "h": 122.045,
    "s": 46.316,
    "l": 37.255
  },
  "oklch": {
    "l": 0.56453,
    "c": 0.14796,
    "h": 143.8
  },
  "luminance": 0.19435
}

Semantic roles & 50–950 ramp

primary
#338B36
secondary
#B268AF
accent
#52D1D6
background
#F7FAF6
surface
#EDF4EC
border
#C8CEC7
text
#091008
muted
#7B7F7B

Preview Lab

Preview with #338B36

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

Preview Lab → · Contrast checker → · Palette generator →

#338B36 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva