#338131#338131

#338131 is a mid, vivid green. Relative luminance 0.166; OKLCH L 53.6% C 0.139 H 142.9°. Best body text is #FFFFFF at 4.86:1 contrast (WCAG AA passes).

Color values

HEX#338131
RGBrgb(51, 129, 49)
HSLhsl(119, 45%, 35%)
HSVhsv(119, 62%, 51%)
CMYKcmyk(60.5%, 0%, 62%, 49.4%)
CIE-LABlab(47.78, -40.72, 35.60)
CIE-LCHlch(47.78, 54.09, 138.84°)
OKLaboklab(53.63% -0.1107 0.0836)
OKLCHoklch(53.63% 0.139 142.9)
XYZxyz(9.7693, 16.6252, 5.5993)
Luminance0.1663 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#338131 #7F3181
analogous
#5B8131 #338131 #318157
triadic
#338131 #313381 #813133
tetradic
#338131 #315B81 #7F3181 #815731
square
#338131 #315B81 #7F3181 #815731
split-complementary
#338131 #573181 #81315B
monochromatic
#10280F #215520 #338131 #45AD42 #69C567

Accessibility & contrast

On white

4.86
#338131 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.33
#338131 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #338131
4.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##338131#FFFFFF#000000##FFFFFF
##3381311.004.864.334.86
#FFFFFF4.861.0021.001.00
#0000004.3321.001.0021.00
##FFFFFF4.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#847528
Deuteranopia (green-blind)
#7A6F37
Tritanopia (blue-blind)
#267D70
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #338131;
/* rgb */ color: rgb(51, 129, 49);
/* oklch */ color: oklch(53.6% 0.139 142.9);
Tailwind
colors: {
  custom: {
    50: '#74a66c',
    500: '#338131',
    950: '#000000',
  },
}
SCSS
$custom: #338131;
$custom-light: #74a66c;
$custom-dark: #000000;
JSON
{
  "hex": "#338131",
  "rgb": {
    "r": 51,
    "g": 129,
    "b": 49
  },
  "hsl": {
    "h": 118.5,
    "s": 44.944,
    "l": 34.902
  },
  "oklch": {
    "l": 0.53625,
    "c": 0.13876,
    "h": 142.9
  },
  "luminance": 0.16626
}

Semantic roles & 50–950 ramp

primary
#338131
secondary
#AB61AD
accent
#53D5D1
background
#F7FAF6
surface
#EDF4EB
border
#C8CEC6
text
#090F07
muted
#7B7F7A

Preview Lab

Preview with #338131

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

Preview Lab → · Contrast checker → · Palette generator →

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