#338151#338151

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

Color values

HEX#338151
RGBrgb(51, 129, 81)
HSLhsl(143, 43%, 35%)
HSVhsv(143, 60%, 51%)
CMYKcmyk(60.5%, 0%, 37.2%, 49.4%)
CIE-LABlab(48.26, -35.54, 19.07)
CIE-LCHlch(48.26, 40.34, 151.78°)
OKLaboklab(54.17% -0.0964 0.0478)
OKLCHoklch(54.17% 0.108 153.6)
XYZxyz(10.6998, 16.9974, 10.4999)
Luminance0.1700 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#338151 #813363
analogous
#3C8133 #338151 #338178
triadic
#338151 #513381 #815133
tetradic
#338151 #333C81 #813363 #817833
square
#338151 #333C81 #813363 #817833
split-complementary
#338151 #783381 #81333C
monochromatic
#10291A #225535 #338151 #44AD6D #6AC48D

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##338151#FFFFFF#000000##FFFFFF
##3381511.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)
#81774E
Deuteranopia (green-blind)
#767054
Tritanopia (blue-blind)
#197F75
Achromatopsia (no color)
#737373

Design tokens & code

CSS
--color: #338151;
/* rgb */ color: rgb(51, 129, 81);
/* oklch */ color: oklch(54.2% 0.108 153.6);
Tailwind
colors: {
  custom: {
    50: '#72a682',
    500: '#338151',
    950: '#000000',
  },
}
SCSS
$custom: #338151;
$custom-light: #72a682;
$custom-dark: #000000;
JSON
{
  "hex": "#338151",
  "rgb": {
    "r": 51,
    "g": 129,
    "b": 81
  },
  "hsl": {
    "h": 143.077,
    "s": 43.333,
    "l": 35.294
  },
  "oklch": {
    "l": 0.54167,
    "c": 0.10762,
    "h": 153.6
  },
  "luminance": 0.16998
}

Semantic roles & 50–950 ramp

primary
#338151
secondary
#AC6490
accent
#55A2D3
background
#F7FAF7
surface
#EDF4EE
border
#C8CEC9
text
#080F0A
muted
#7B7F7C

Preview Lab

Preview with #338151

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

Preview Lab → · Contrast checker → · Palette generator →

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