#338F2B#338F2B

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

Color values

HEX#338F2B
RGBrgb(51, 143, 43)
HSLhsl(115, 54%, 36%)
HSVhsv(115, 70%, 56%)
CMYKcmyk(64.3%, 0%, 69.9%, 43.9%)
CIE-LABlab(52.42, -46.75, 43.44)
CIE-LCHlch(52.42, 63.82, 137.10°)
OKLaboklab(57.44% -0.1274 0.0996)
OKLCHoklch(57.44% 0.162 142)
XYZxyz(11.6231, 20.5220, 5.6336)
Luminance0.2052 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#338F2B #872B8F
analogous
#658F2B #338F2B #2B8F55
triadic
#338F2B #2B338F #8F2B33
tetradic
#338F2B #2B658F #872B8F #8F552B
square
#338F2B #2B658F #872B8F #8F552B
split-complementary
#338F2B #552B8F #8F2B65
monochromatic
#11310F #22601D #338F2B #44BE39 #6DD064

Accessibility & contrast

On white

4.11
#338F2B on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

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

Best text color

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

Contrast matrix

fg \ bg##338F2B#FFFFFF#000000##000000
##338F2B1.004.115.105.10
#FFFFFF4.111.0021.0021.00
#0000005.1021.001.001.00
##0000005.1021.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #338f2b;
/* rgb */ color: rgb(51, 143, 43);
/* oklch */ color: oklch(57.4% 0.162 142.0);
Tailwind
colors: {
  custom: {
    50: '#77b16a',
    500: '#338f2b',
    950: '#000000',
  },
}
SCSS
$custom: #338f2b;
$custom-light: #77b16a;
$custom-dark: #000000;
JSON
{
  "hex": "#338f2b",
  "rgb": {
    "r": 51,
    "g": 143,
    "b": 43
  },
  "hsl": {
    "h": 115.2,
    "s": 53.763,
    "l": 36.471
  },
  "oklch": {
    "l": 0.57437,
    "c": 0.1617,
    "h": 142
  },
  "luminance": 0.20523
}

Semantic roles & 50–950 ramp

primary
#338F2B
secondary
#B05FB7
accent
#4BDDD1
background
#F7FBF6
surface
#EEF6EB
border
#C9D0C6
text
#0A1107
muted
#7C807A

Preview Lab

Preview with #338F2B

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

Preview Lab → · Contrast checker → · Palette generator →

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