#338A2C#338A2C

#338A2C is a mid, vivid green. Relative luminance 0.191; OKLCH L 56.1% C 0.155 H 142.1°. Best body text is #000000 at 4.81:1 contrast (WCAG AA passes).

Color values

HEX#338A2C
RGBrgb(51, 138, 44)
HSLhsl(116, 52%, 36%)
HSVhsv(116, 68%, 54%)
CMYKcmyk(63%, 0%, 68.1%, 45.9%)
CIE-LABlab(50.76, -44.78, 41.23)
CIE-LCHlch(50.76, 60.87, 137.36°)
OKLaboklab(56.06% -0.122 0.0951)
OKLCHoklch(56.06% 0.155 142.1)
XYZxyz(10.9078, 19.0616, 5.4868)
Luminance0.1906 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#338A2C #832C8A
analogous
#628A2C #338A2C #2C8A54
triadic
#338A2C #2C338A #8A2C33
tetradic
#338A2C #2C628A #832C8A #8A542C
square
#338A2C #2C628A #832C8A #8A542C
split-complementary
#338A2C #542C8A #8A2C62
monochromatic
#112D0E #225C1D #338A2C #44B83B #6BCD63

Accessibility & contrast

On white

4.36
#338A2C on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.81
#338A2C on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #338A2C
4.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##338A2C#FFFFFF#000000##000000
##338A2C1.004.364.814.81
#FFFFFF4.361.0021.0021.00
#0000004.8121.001.001.00
##0000004.8121.001.001.00

Color blindness preview

Protanopia (red-blind)
#8D7D20
Deuteranopia (green-blind)
#837634
Tritanopia (blue-blind)
#248677
Achromatopsia (no color)
#797979

Design tokens & code

CSS
--color: #338a2c;
/* rgb */ color: rgb(51, 138, 44);
/* oklch */ color: oklch(56.1% 0.155 142.1);
Tailwind
colors: {
  custom: {
    50: '#76ad6a',
    500: '#338a2c',
    950: '#000000',
  },
}
SCSS
$custom: #338a2c;
$custom-light: #76ad6a;
$custom-dark: #000000;
JSON
{
  "hex": "#338a2c",
  "rgb": {
    "r": 51,
    "g": 138,
    "b": 44
  },
  "hsl": {
    "h": 115.532,
    "s": 51.648,
    "l": 35.686
  },
  "oklch": {
    "l": 0.56064,
    "c": 0.15467,
    "h": 142.1
  },
  "luminance": 0.19063
}

Semantic roles & 50–950 ramp

primary
#338A2C
secondary
#AD5EB4
accent
#4DDBD0
background
#F7FAF6
surface
#EEF4EB
border
#C9CEC6
text
#091007
muted
#7B7F7A

Preview Lab

Preview with #338A2C

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

Preview Lab → · Contrast checker → · Palette generator →

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