#338152#338152

#338152 is a mid, moderate green. Relative luminance 0.170; OKLCH L 54.2% C 0.107 H 154.1°. Best body text is #FFFFFF at 4.77:1 contrast (WCAG AA passes).

Color values

HEX#338152
RGBrgb(51, 129, 82)
HSLhsl(144, 43%, 35%)
HSVhsv(144, 60%, 51%)
CMYKcmyk(60.5%, 0%, 36.4%, 49.4%)
CIE-LABlab(48.28, -35.34, 18.53)
CIE-LCHlch(48.28, 39.90, 152.33°)
OKLaboklab(54.19% -0.0959 0.0465)
OKLCHoklch(54.19% 0.107 154.1)
XYZxyz(10.7376, 17.0125, 10.6989)
Luminance0.1701 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#338152 #813362
analogous
#3B8133 #338152 #338179
triadic
#338152 #523381 #815233
tetradic
#338152 #333B81 #813362 #817933
square
#338152 #333B81 #813362 #817933
split-complementary
#338152 #793381 #81333B
monochromatic
#10291A #225536 #338152 #44AD6E #6AC48E

Accessibility & contrast

On white

4.77
#338152 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.40
#338152 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #338152
4.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##338152#FFFFFF#000000##FFFFFF
##3381521.004.774.404.77
#FFFFFF4.771.0021.001.00
#0000004.4021.001.0021.00
##FFFFFF4.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#81774F
Deuteranopia (green-blind)
#767055
Tritanopia (blue-blind)
#198075
Achromatopsia (no color)
#737373

Design tokens & code

CSS
--color: #338152;
/* rgb */ color: rgb(51, 129, 82);
/* oklch */ color: oklch(54.2% 0.107 154.1);
Tailwind
colors: {
  custom: {
    50: '#72a683',
    500: '#338152',
    950: '#000000',
  },
}
SCSS
$custom: #338152;
$custom-light: #72a683;
$custom-dark: #000000;
JSON
{
  "hex": "#338152",
  "rgb": {
    "r": 51,
    "g": 129,
    "b": 82
  },
  "hsl": {
    "h": 143.846,
    "s": 43.333,
    "l": 35.294
  },
  "oklch": {
    "l": 0.54189,
    "c": 0.10661,
    "h": 154.1
  },
  "luminance": 0.17014
}

Semantic roles & 50–950 ramp

primary
#338152
secondary
#AC648F
accent
#55A1D3
background
#F7FAF8
surface
#EDF4EF
border
#C8CECA
text
#080F0A
muted
#7B7F7C

Preview Lab

Preview with #338152

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

Preview Lab → · Contrast checker → · Palette generator →

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