#338331#338331

#338331 is a mid, vivid green. Relative luminance 0.172; OKLCH L 54.2% C 0.141 H 142.9°. Best body text is #FFFFFF at 4.74:1 contrast (WCAG AA passes).

Color values

HEX#338331
RGBrgb(51, 131, 49)
HSLhsl(119, 46%, 35%)
HSVhsv(119, 63%, 51%)
CMYKcmyk(61.1%, 0%, 62.6%, 48.6%)
CIE-LABlab(48.46, -41.51, 36.37)
CIE-LCHlch(48.46, 55.19, 138.78°)
OKLaboklab(54.18% -0.1129 0.0853)
OKLCHoklch(54.18% 0.141 142.9)
XYZxyz(10.0354, 17.1572, 5.6880)
Luminance0.1716 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#338331 #813183
analogous
#5C8331 #338331 #318358
triadic
#338331 #313383 #833133
tetradic
#338331 #315C83 #813183 #835831
square
#338331 #315C83 #813183 #835831
split-complementary
#338331 #583183 #83315C
monochromatic
#102A10 #225620 #338331 #44B042 #6AC668

Accessibility & contrast

On white

4.74
#338331 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.43
#338331 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #338331
4.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##338331#FFFFFF#000000##FFFFFF
##3383311.004.744.434.74
#FFFFFF4.741.0021.001.00
#0000004.4321.001.0021.00
##FFFFFF4.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#867728
Deuteranopia (green-blind)
#7C7038
Tritanopia (blue-blind)
#257F71
Achromatopsia (no color)
#737373

Design tokens & code

CSS
--color: #338331;
/* rgb */ color: rgb(51, 131, 49);
/* oklch */ color: oklch(54.2% 0.141 142.9);
Tailwind
colors: {
  custom: {
    50: '#74a86c',
    500: '#338331',
    950: '#000000',
  },
}
SCSS
$custom: #338331;
$custom-light: #74a86c;
$custom-dark: #000000;
JSON
{
  "hex": "#338331",
  "rgb": {
    "r": 51,
    "g": 131,
    "b": 49
  },
  "hsl": {
    "h": 118.537,
    "s": 45.556,
    "l": 35.294
  },
  "oklch": {
    "l": 0.5418,
    "c": 0.14148,
    "h": 142.9
  },
  "luminance": 0.17158
}

Semantic roles & 50–950 ramp

primary
#338331
secondary
#AC62AE
accent
#53D5D2
background
#F7FAF6
surface
#EDF4EB
border
#C8CEC6
text
#091007
muted
#7B7F7A

Preview Lab

Preview with #338331

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

Preview Lab → · Contrast checker → · Palette generator →

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