#338158#338158

#338158 is a mid, moderate green. Relative luminance 0.171; OKLCH L 54.3% C 0.101 H 157.4°. Best body text is #FFFFFF at 4.75:1 contrast (WCAG AA passes).

Color values

HEX#338158
RGBrgb(51, 129, 88)
HSLhsl(148, 43%, 35%)
HSVhsv(148, 60%, 51%)
CMYKcmyk(60.5%, 0%, 31.8%, 49.4%)
CIE-LABlab(48.40, -34.08, 15.26)
CIE-LCHlch(48.40, 37.34, 155.88°)
OKLaboklab(54.33% -0.0929 0.0387)
OKLCHoklch(54.33% 0.101 157.4)
XYZxyz(10.9760, 17.1078, 11.9543)
Luminance0.1711 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#338158 #81335C
analogous
#358133 #338158 #33817F
triadic
#338158 #583381 #815833
tetradic
#338158 #333581 #81335C #817F33
square
#338158 #333581 #81335C #817F33
split-complementary
#338158 #7F3381 #813335
monochromatic
#10291C #22553A #338158 #44AD76 #6AC495

Accessibility & contrast

On white

4.75
#338158 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.42
#338158 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #338158
4.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##338158#FFFFFF#000000##FFFFFF
##3381581.004.754.424.75
#FFFFFF4.751.0021.001.00
#0000004.4221.001.0021.00
##FFFFFF4.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#807756
Deuteranopia (green-blind)
#75705B
Tritanopia (blue-blind)
#158076
Achromatopsia (no color)
#737373

Design tokens & code

CSS
--color: #338158;
/* rgb */ color: rgb(51, 129, 88);
/* oklch */ color: oklch(54.3% 0.101 157.4);
Tailwind
colors: {
  custom: {
    50: '#72a687',
    500: '#338158',
    950: '#000000',
  },
}
SCSS
$custom: #338158;
$custom-light: #72a687;
$custom-dark: #000000;
JSON
{
  "hex": "#338158",
  "rgb": {
    "r": 51,
    "g": 129,
    "b": 88
  },
  "hsl": {
    "h": 148.462,
    "s": 43.333,
    "l": 35.294
  },
  "oklch": {
    "l": 0.54326,
    "c": 0.10067,
    "h": 157.4
  },
  "luminance": 0.17109
}

Semantic roles & 50–950 ramp

primary
#338158
secondary
#AC648A
accent
#5597D3
background
#F7FAF8
surface
#EDF4EF
border
#C8CECA
text
#080F0B
muted
#7B7F7C

Preview Lab

Preview with #338158

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

Preview Lab → · Contrast checker → · Palette generator →

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