#338342#338342

#338342 is a mid, vivid green. Relative luminance 0.173; OKLCH L 54.4% C 0.126 H 147.3°. Best body text is #FFFFFF at 4.70:1 contrast (WCAG AA passes).

Color values

HEX#338342
RGBrgb(51, 131, 66)
HSLhsl(131, 44%, 36%)
HSVhsv(131, 61%, 51%)
CMYKcmyk(61.1%, 0%, 49.6%, 48.6%)
CIE-LABlab(48.67, -39.12, 27.92)
CIE-LCHlch(48.67, 48.06, 144.48°)
OKLaboklab(54.43% -0.1058 0.0679)
OKLCHoklch(54.43% 0.126 147.3)
XYZxyz(10.4642, 17.3288, 7.9465)
Luminance0.1733 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#338342 #833374
analogous
#4C8333 #338342 #33836A
triadic
#338342 #423383 #834233
tetradic
#338342 #334C83 #833374 #836A33
square
#338342 #334C83 #833374 #836A33
split-complementary
#338342 #6A3383 #83334C
monochromatic
#112B16 #22572C #338342 #44AF58 #6BC57C

Accessibility & contrast

On white

4.70
#338342 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.47
#338342 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #338342
4.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##338342#FFFFFF#000000##FFFFFF
##3383421.004.704.474.70
#FFFFFF4.701.0021.001.00
#0000004.4721.001.0021.00
##FFFFFF4.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#85783D
Deuteranopia (green-blind)
#7A7147
Tritanopia (blue-blind)
#208074
Achromatopsia (no color)
#747474

Design tokens & code

CSS
--color: #338342;
/* rgb */ color: rgb(51, 131, 66);
/* oklch */ color: oklch(54.4% 0.126 147.3);
Tailwind
colors: {
  custom: {
    50: '#73a877',
    500: '#338342',
    950: '#000000',
  },
}
SCSS
$custom: #338342;
$custom-light: #73a877;
$custom-dark: #000000;
JSON
{
  "hex": "#338342",
  "rgb": {
    "r": 51,
    "g": 131,
    "b": 66
  },
  "hsl": {
    "h": 131.25,
    "s": 43.956,
    "l": 35.686
  },
  "oklch": {
    "l": 0.54426,
    "c": 0.12572,
    "h": 147.3
  },
  "luminance": 0.1733
}

Semantic roles & 50–950 ramp

primary
#338342
secondary
#AD65A0
accent
#54BCD4
background
#F7FAF7
surface
#EDF4ED
border
#C8CEC8
text
#091009
muted
#7B7F7B

Preview Lab

Preview with #338342

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

Preview Lab → · Contrast checker → · Palette generator →

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