#338531#338531

#338531 is a mid, vivid green. Relative luminance 0.177; OKLCH L 54.7% C 0.144 H 142.9°. Best body text is #FFFFFF at 4.63:1 contrast (WCAG AA passes).

Color values

HEX#338531
RGBrgb(51, 133, 49)
HSLhsl(119, 46%, 36%)
HSVhsv(119, 63%, 52%)
CMYKcmyk(61.7%, 0%, 63.2%, 47.8%)
CIE-LABlab(49.13, -42.30, 37.13)
CIE-LCHlch(49.13, 56.29, 138.72°)
OKLaboklab(54.73% -0.115 0.0869)
OKLCHoklch(54.73% 0.144 142.9)
XYZxyz(10.3066, 17.6997, 5.7784)
Luminance0.1770 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#338531 #833185
analogous
#5D8531 #338531 #318559
triadic
#338531 #313385 #853133
tetradic
#338531 #315D85 #833185 #855931
square
#338531 #315D85 #833185 #855931
split-complementary
#338531 #593185 #85315D
monochromatic
#112C10 #225821 #338531 #44B241 #6BC869

Accessibility & contrast

On white

4.63
#338531 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.54
#338531 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #338531
4.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##338531#FFFFFF#000000##FFFFFF
##3385311.004.634.544.63
#FFFFFF4.631.0021.001.00
#0000004.5421.001.0021.00
##FFFFFF4.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#887928
Deuteranopia (green-blind)
#7E7238
Tritanopia (blue-blind)
#258173
Achromatopsia (no color)
#757575

Design tokens & code

CSS
--color: #338531;
/* rgb */ color: rgb(51, 133, 49);
/* oklch */ color: oklch(54.7% 0.144 142.9);
Tailwind
colors: {
  custom: {
    50: '#74a96c',
    500: '#338531',
    950: '#000000',
  },
}
SCSS
$custom: #338531;
$custom-light: #74a96c;
$custom-dark: #000000;
JSON
{
  "hex": "#338531",
  "rgb": {
    "r": 51,
    "g": 133,
    "b": 49
  },
  "hsl": {
    "h": 118.571,
    "s": 46.154,
    "l": 35.686
  },
  "oklch": {
    "l": 0.54734,
    "c": 0.14417,
    "h": 142.9
  },
  "luminance": 0.17701
}

Semantic roles & 50–950 ramp

primary
#338531
secondary
#AD63AF
accent
#52D6D3
background
#F7FAF6
surface
#EDF4EC
border
#C8CEC7
text
#091007
muted
#7B7F7A

Preview Lab

Preview with #338531

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

Preview Lab → · Contrast checker → · Palette generator →

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