#338231#338231

#338231 is a mid, vivid green. Relative luminance 0.169; OKLCH L 53.9% C 0.140 H 142.9°. Best body text is #FFFFFF at 4.80:1 contrast (WCAG AA passes).

Color values

HEX#338231
RGBrgb(51, 130, 49)
HSLhsl(119, 45%, 35%)
HSVhsv(119, 62%, 51%)
CMYKcmyk(60.8%, 0%, 62.3%, 49%)
CIE-LABlab(48.12, -41.12, 35.98)
CIE-LCHlch(48.12, 54.64, 138.81°)
OKLaboklab(53.9% -0.1118 0.0845)
OKLCHoklch(53.9% 0.14 142.9)
XYZxyz(9.9017, 16.8899, 5.6434)
Luminance0.1689 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#338231 #803182
analogous
#5B8231 #338231 #318258
triadic
#338231 #313382 #823133
tetradic
#338231 #315B82 #803182 #825831
square
#338231 #315B82 #803182 #825831
split-complementary
#338231 #583182 #82315B
monochromatic
#10290F #225620 #338231 #44AE42 #6AC668

Accessibility & contrast

On white

4.80
#338231 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.38
#338231 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #338231
4.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##338231#FFFFFF#000000##FFFFFF
##3382311.004.804.384.80
#FFFFFF4.801.0021.001.00
#0000004.3821.001.0021.00
##FFFFFF4.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#857628
Deuteranopia (green-blind)
#7B7038
Tritanopia (blue-blind)
#267E71
Achromatopsia (no color)
#727272

Design tokens & code

CSS
--color: #338231;
/* rgb */ color: rgb(51, 130, 49);
/* oklch */ color: oklch(53.9% 0.140 142.9);
Tailwind
colors: {
  custom: {
    50: '#74a76c',
    500: '#338231',
    950: '#000000',
  },
}
SCSS
$custom: #338231;
$custom-light: #74a76c;
$custom-dark: #000000;
JSON
{
  "hex": "#338231",
  "rgb": {
    "r": 51,
    "g": 130,
    "b": 49
  },
  "hsl": {
    "h": 118.519,
    "s": 45.251,
    "l": 35.098
  },
  "oklch": {
    "l": 0.53902,
    "c": 0.14013,
    "h": 142.9
  },
  "luminance": 0.16891
}

Semantic roles & 50–950 ramp

primary
#338231
secondary
#AB62AD
accent
#53D5D2
background
#F7FAF6
surface
#EDF4EB
border
#C8CEC6
text
#090F07
muted
#7B7F7A

Preview Lab

Preview with #338231

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

Preview Lab → · Contrast checker → · Palette generator →

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