#338A2A#338A2A

#338A2A is a mid, vivid green. Relative luminance 0.190; OKLCH L 56.0% C 0.156 H 141.8°. Best body text is #000000 at 4.81:1 contrast (WCAG AA passes).

Color values

HEX#338A2A
RGBrgb(51, 138, 42)
HSLhsl(114, 53%, 35%)
HSVhsv(114, 70%, 54%)
CMYKcmyk(63%, 0%, 69.6%, 45.9%)
CIE-LABlab(50.74, -44.97, 42.08)
CIE-LCHlch(50.74, 61.59, 136.91°)
OKLaboklab(56.05% -0.1227 0.0966)
OKLCHoklch(56.05% 0.156 141.8)
XYZxyz(10.8711, 19.0469, 5.2936)
Luminance0.1905 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#338A2A #812A8A
analogous
#638A2A #338A2A #2A8A51
triadic
#338A2A #2A338A #8A2A33
tetradic
#338A2A #2A638A #812A8A #8A512A
square
#338A2A #2A638A #812A8A #8A512A
split-complementary
#338A2A #512A8A #8A2A63
monochromatic
#102C0D #225B1C #338A2A #44B938 #6ACF60

Accessibility & contrast

On white

4.37
#338A2A on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

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

Best text color

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

Contrast matrix

fg \ bg##338A2A#FFFFFF#000000##000000
##338A2A1.004.374.814.81
#FFFFFF4.371.0021.0021.00
#0000004.8121.001.001.00
##0000004.8121.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #338a2a;
/* rgb */ color: rgb(51, 138, 42);
/* oklch */ color: oklch(56.0% 0.156 141.8);
Tailwind
colors: {
  custom: {
    50: '#76ad69',
    500: '#338a2a',
    950: '#000000',
  },
}
SCSS
$custom: #338a2a;
$custom-light: #76ad69;
$custom-dark: #000000;
JSON
{
  "hex": "#338a2a",
  "rgb": {
    "r": 51,
    "g": 138,
    "b": 42
  },
  "hsl": {
    "h": 114.375,
    "s": 53.333,
    "l": 35.294
  },
  "oklch": {
    "l": 0.56045,
    "c": 0.15614,
    "h": 141.8
  },
  "luminance": 0.19048
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #338A2A

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

Preview Lab → · Contrast checker → · Palette generator →

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