#338A2E#338A2E

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

Color values

HEX#338A2E
RGBrgb(51, 138, 46)
HSLhsl(117, 50%, 36%)
HSVhsv(117, 67%, 54%)
CMYKcmyk(63%, 0%, 66.7%, 45.9%)
CIE-LABlab(50.78, -44.57, 40.36)
CIE-LCHlch(50.78, 60.13, 137.84°)
OKLaboklab(56.08% -0.1213 0.0935)
OKLCHoklch(56.08% 0.153 142.4)
XYZxyz(10.9463, 19.0770, 5.6896)
Luminance0.1908 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#338A2E #852E8A
analogous
#618A2E #338A2E #2E8A57
triadic
#338A2E #2E338A #8A2E33
tetradic
#338A2E #2E618A #852E8A #8A572E
square
#338A2E #2E618A #852E8A #8A572E
split-complementary
#338A2E #572E8A #8A2E61
monochromatic
#112E0F #225C1F #338A2E #44B83D #6CCC66

Accessibility & contrast

On white

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

On black

4.82
#338A2E on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #338A2E
4.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##338A2E#FFFFFF#000000##000000
##338A2E1.004.364.824.82
#FFFFFF4.361.0021.0021.00
#0000004.8221.001.001.00
##0000004.8221.001.001.00

Color blindness preview

Protanopia (red-blind)
#8D7D22
Deuteranopia (green-blind)
#827636
Tritanopia (blue-blind)
#238677
Achromatopsia (no color)
#797979

Design tokens & code

CSS
--color: #338a2e;
/* rgb */ color: rgb(51, 138, 46);
/* oklch */ color: oklch(56.1% 0.153 142.4);
Tailwind
colors: {
  custom: {
    50: '#75ad6b',
    500: '#338a2e',
    950: '#000000',
  },
}
SCSS
$custom: #338a2e;
$custom-light: #75ad6b;
$custom-dark: #000000;
JSON
{
  "hex": "#338a2e",
  "rgb": {
    "r": 51,
    "g": 138,
    "b": 46
  },
  "hsl": {
    "h": 116.739,
    "s": 50,
    "l": 36.078
  },
  "oklch": {
    "l": 0.56085,
    "c": 0.15315,
    "h": 142.4
  },
  "luminance": 0.19078
}

Semantic roles & 50–950 ramp

primary
#338A2E
secondary
#AE61B3
accent
#4EDAD2
background
#F7FAF6
surface
#EEF4EB
border
#C9CEC6
text
#091007
muted
#7B7F7A

Preview Lab

Preview with #338A2E

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

Preview Lab → · Contrast checker → · Palette generator →

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