#338B2C#338B2C

#338B2C is a mid, vivid green. Relative luminance 0.194; OKLCH L 56.3% C 0.156 H 142.1°. Best body text is #000000 at 4.87:1 contrast (WCAG AA passes).

Color values

HEX#338B2C
RGBrgb(51, 139, 44)
HSLhsl(116, 52%, 36%)
HSVhsv(116, 68%, 55%)
CMYKcmyk(63.3%, 0%, 68.3%, 45.5%)
CIE-LABlab(51.09, -45.15, 41.59)
CIE-LCHlch(51.09, 61.39, 137.35°)
OKLaboklab(56.34% -0.123 0.0958)
OKLCHoklch(56.34% 0.156 142.1)
XYZxyz(11.0519, 19.3498, 5.5349)
Luminance0.1935 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#338B2C #842C8B
analogous
#628B2C #338B2C #2C8B54
triadic
#338B2C #2C338B #8B2C33
tetradic
#338B2C #2C628B #842C8B #8B542C
square
#338B2C #2C628B #842C8B #8B542C
split-complementary
#338B2C #542C8B #8B2C62
monochromatic
#112E0F #225D1D #338B2C #44B93B #6BCE64

Accessibility & contrast

On white

4.31
#338B2C on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.87
#338B2C on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #338B2C
4.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##338B2C#FFFFFF#000000##000000
##338B2C1.004.314.874.87
#FFFFFF4.311.0021.0021.00
#0000004.8721.001.001.00
##0000004.8721.001.001.00

Color blindness preview

Protanopia (red-blind)
#8E7E1F
Deuteranopia (green-blind)
#837735
Tritanopia (blue-blind)
#248778
Achromatopsia (no color)
#7A7A7A

Design tokens & code

CSS
--color: #338b2c;
/* rgb */ color: rgb(51, 139, 44);
/* oklch */ color: oklch(56.3% 0.156 142.1);
Tailwind
colors: {
  custom: {
    50: '#76ae6a',
    500: '#338b2c',
    950: '#000000',
  },
}
SCSS
$custom: #338b2c;
$custom-light: #76ae6a;
$custom-dark: #000000;
JSON
{
  "hex": "#338b2c",
  "rgb": {
    "r": 51,
    "g": 139,
    "b": 44
  },
  "hsl": {
    "h": 115.579,
    "s": 51.913,
    "l": 35.882
  },
  "oklch": {
    "l": 0.56341,
    "c": 0.15595,
    "h": 142.1
  },
  "luminance": 0.19351
}

Semantic roles & 50–950 ramp

primary
#338B2C
secondary
#AE5FB4
accent
#4CDBD1
background
#F7FAF6
surface
#EEF4EB
border
#C9CEC6
text
#091007
muted
#7B7F7A

Preview Lab

Preview with #338B2C

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

Preview Lab → · Contrast checker → · Palette generator →

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