#338F2A#338F2A

#338F2A is a mid, vivid green. Relative luminance 0.205; OKLCH L 57.4% C 0.162 H 141.8°. Best body text is #000000 at 5.10:1 contrast (WCAG AA passes).

Color values

HEX#338F2A
RGBrgb(51, 143, 42)
HSLhsl(115, 55%, 36%)
HSVhsv(115, 71%, 56%)
CMYKcmyk(64.3%, 0%, 70.6%, 43.9%)
CIE-LABlab(52.41, -46.84, 43.85)
CIE-LCHlch(52.41, 64.16, 136.89°)
OKLaboklab(57.43% -0.1277 0.1003)
OKLCHoklch(57.43% 0.162 141.8)
XYZxyz(11.6050, 20.5148, 5.5382)
Luminance0.2052 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#338F2A #862A8F
analogous
#668F2A #338F2A #2A8F54
triadic
#338F2A #2A338F #8F2A33
tetradic
#338F2A #2A668F #862A8F #8F542A
square
#338F2A #2A668F #862A8F #8F542A
split-complementary
#338F2A #542A8F #8F2A66
monochromatic
#11300E #22601C #338F2A #44BE38 #6CD162

Accessibility & contrast

On white

4.12
#338F2A on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.10
#338F2A on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #338F2A
5.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##338F2A#FFFFFF#000000##000000
##338F2A1.004.125.105.10
#FFFFFF4.121.0021.0021.00
#0000005.1021.001.001.00
##0000005.1021.001.001.00

Color blindness preview

Protanopia (red-blind)
#92821B
Deuteranopia (green-blind)
#877A34
Tritanopia (blue-blind)
#228B7B
Achromatopsia (no color)
#7D7D7D

Design tokens & code

CSS
--color: #338f2a;
/* rgb */ color: rgb(51, 143, 42);
/* oklch */ color: oklch(57.4% 0.162 141.8);
Tailwind
colors: {
  custom: {
    50: '#77b169',
    500: '#338f2a',
    950: '#000000',
  },
}
SCSS
$custom: #338f2a;
$custom-light: #77b169;
$custom-dark: #000000;
JSON
{
  "hex": "#338f2a",
  "rgb": {
    "r": 51,
    "g": 143,
    "b": 42
  },
  "hsl": {
    "h": 114.653,
    "s": 54.595,
    "l": 36.275
  },
  "oklch": {
    "l": 0.57427,
    "c": 0.16241,
    "h": 141.8
  },
  "luminance": 0.20516
}

Semantic roles & 50–950 ramp

primary
#338F2A
secondary
#AF5EB7
accent
#4ADED1
background
#F7FBF6
surface
#EEF6EB
border
#C9D0C6
text
#0A1107
muted
#7C807A

Preview Lab

Preview with #338F2A

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

Preview Lab → · Contrast checker → · Palette generator →

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