#338B2A#338B2A

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

Color values

HEX#338B2A
RGBrgb(51, 139, 42)
HSLhsl(114, 54%, 35%)
HSVhsv(114, 70%, 55%)
CMYKcmyk(63.3%, 0%, 69.8%, 45.5%)
CIE-LABlab(51.08, -45.35, 42.44)
CIE-LCHlch(51.08, 62.11, 136.90°)
OKLaboklab(56.32% -0.1237 0.0974)
OKLCHoklch(56.32% 0.157 141.8)
XYZxyz(11.0152, 19.3352, 5.3416)
Luminance0.1934 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#338B2A #822A8B
analogous
#638B2A #338B2A #2A8B51
triadic
#338B2A #2A338B #8B2A33
tetradic
#338B2A #2A638B #822A8B #8B512A
square
#338B2A #2A638B #822A8B #8B512A
split-complementary
#338B2A #512A8B #8B2A63
monochromatic
#112D0E #225C1C #338B2A #44BA38 #6BCF60

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##338B2A#FFFFFF#000000##000000
##338B2A1.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)
#8E7E1C
Deuteranopia (green-blind)
#847733
Tritanopia (blue-blind)
#248777
Achromatopsia (no color)
#7A7A7A

Design tokens & code

CSS
--color: #338b2a;
/* rgb */ color: rgb(51, 139, 42);
/* oklch */ color: oklch(56.3% 0.157 141.8);
Tailwind
colors: {
  custom: {
    50: '#76ae69',
    500: '#338b2a',
    950: '#000000',
  },
}
SCSS
$custom: #338b2a;
$custom-light: #76ae69;
$custom-dark: #000000;
JSON
{
  "hex": "#338b2a",
  "rgb": {
    "r": 51,
    "g": 139,
    "b": 42
  },
  "hsl": {
    "h": 114.433,
    "s": 53.591,
    "l": 35.49
  },
  "oklch": {
    "l": 0.56322,
    "c": 0.1574,
    "h": 141.8
  },
  "luminance": 0.19336
}

Semantic roles & 50–950 ramp

primary
#338B2A
secondary
#AD5CB5
accent
#4BDDCF
background
#F7FAF6
surface
#EEF4EB
border
#C9CEC6
text
#091006
muted
#7B7F7A

Preview Lab

Preview with #338B2A

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

Preview Lab → · Contrast checker → · Palette generator →

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