#338138#338138

#338138 is a mid, vivid green. Relative luminance 0.167; OKLCH L 53.7% C 0.132 H 144.6°. Best body text is #FFFFFF at 4.84:1 contrast (WCAG AA passes).

Color values

HEX#338138
RGBrgb(51, 129, 56)
HSLhsl(124, 43%, 35%)
HSVhsv(124, 60%, 51%)
CMYKcmyk(60.5%, 0%, 56.6%, 49.4%)
CIE-LABlab(47.87, -39.80, 32.19)
CIE-LCHlch(47.87, 51.19, 141.03°)
OKLaboklab(53.72% -0.1079 0.0768)
OKLCHoklch(53.72% 0.132 144.6)
XYZxyz(9.9287, 16.6889, 6.4387)
Luminance0.1669 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#338138 #81337C
analogous
#558133 #338138 #33815F
triadic
#338138 #383381 #813833
tetradic
#338138 #335581 #81337C #815F33
square
#338138 #335581 #81337C #815F33
split-complementary
#338138 #5F3381 #813355
monochromatic
#102912 #225525 #338138 #44AD4B #6AC470

Accessibility & contrast

On white

4.84
#338138 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.34
#338138 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #338138
4.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##338138#FFFFFF#000000##FFFFFF
##3381381.004.844.344.84
#FFFFFF4.841.0021.001.00
#0000004.3421.001.0021.00
##FFFFFF4.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#837631
Deuteranopia (green-blind)
#796F3D
Tritanopia (blue-blind)
#247E71
Achromatopsia (no color)
#727272

Design tokens & code

CSS
--color: #338138;
/* rgb */ color: rgb(51, 129, 56);
/* oklch */ color: oklch(53.7% 0.132 144.6);
Tailwind
colors: {
  custom: {
    50: '#73a671',
    500: '#338138',
    950: '#000000',
  },
}
SCSS
$custom: #338138;
$custom-light: #73a671;
$custom-dark: #000000;
JSON
{
  "hex": "#338138",
  "rgb": {
    "r": 51,
    "g": 129,
    "b": 56
  },
  "hsl": {
    "h": 123.846,
    "s": 43.333,
    "l": 35.294
  },
  "oklch": {
    "l": 0.53718,
    "c": 0.13248,
    "h": 144.6
  },
  "luminance": 0.1669
}

Semantic roles & 50–950 ramp

primary
#338138
secondary
#AC64A7
accent
#55CBD3
background
#F7FAF6
surface
#EDF4EC
border
#C8CEC7
text
#090F08
muted
#7B7F7B

Preview Lab

Preview with #338138

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

Preview Lab → · Contrast checker → · Palette generator →

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