#338C2C#338C2C

#338C2C is a mid, vivid green. Relative luminance 0.196; OKLCH L 56.6% C 0.157 H 142.1°. Best body text is #000000 at 4.93:1 contrast (WCAG AA passes).

Color values

HEX#338C2C
RGBrgb(51, 140, 44)
HSLhsl(116, 52%, 36%)
HSVhsv(116, 69%, 55%)
CMYKcmyk(63.6%, 0%, 68.6%, 45.1%)
CIE-LABlab(51.43, -45.53, 41.95)
CIE-LCHlch(51.43, 61.91, 137.34°)
OKLaboklab(56.62% -0.124 0.0966)
OKLCHoklch(56.62% 0.157 142.1)
XYZxyz(11.1973, 19.6407, 5.5833)
Luminance0.1964 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#338C2C #852C8C
analogous
#638C2C #338C2C #2C8C55
triadic
#338C2C #2C338C #8C2C33
tetradic
#338C2C #2C638C #852C8C #8C552C
square
#338C2C #2C638C #852C8C #8C552C
split-complementary
#338C2C #552C8C #8C2C63
monochromatic
#112F0F #225D1D #338C2C #44BB3B #6CCE64

Accessibility & contrast

On white

4.26
#338C2C on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.93
#338C2C on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #338C2C
4.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##338C2C#FFFFFF#000000##000000
##338C2C1.004.264.934.93
#FFFFFF4.261.0021.0021.00
#0000004.9321.001.001.00
##0000004.9321.001.001.00

Color blindness preview

Protanopia (red-blind)
#8F7F1F
Deuteranopia (green-blind)
#847835
Tritanopia (blue-blind)
#238878
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #338c2c;
/* rgb */ color: rgb(51, 140, 44);
/* oklch */ color: oklch(56.6% 0.157 142.1);
Tailwind
colors: {
  custom: {
    50: '#76ae6a',
    500: '#338c2c',
    950: '#000000',
  },
}
SCSS
$custom: #338c2c;
$custom-light: #76ae6a;
$custom-dark: #000000;
JSON
{
  "hex": "#338c2c",
  "rgb": {
    "r": 51,
    "g": 140,
    "b": 44
  },
  "hsl": {
    "h": 115.625,
    "s": 52.174,
    "l": 36.078
  },
  "oklch": {
    "l": 0.56618,
    "c": 0.15722,
    "h": 142.1
  },
  "luminance": 0.19642
}

Semantic roles & 50–950 ramp

primary
#338C2C
secondary
#AE5FB5
accent
#4CDCD1
background
#F7FAF6
surface
#EEF4EB
border
#C9CEC6
text
#091007
muted
#7B7F7A

Preview Lab

Preview with #338C2C

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

Preview Lab → · Contrast checker → · Palette generator →

#338C2C Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva