#338E2B#338E2B

#338E2B is a mid, vivid green. Relative luminance 0.202; OKLCH L 57.2% C 0.160 H 142.0°. Best body text is #000000 at 5.04:1 contrast (WCAG AA passes).

Color values

HEX#338E2B
RGBrgb(51, 142, 43)
HSLhsl(115, 54%, 36%)
HSVhsv(115, 70%, 56%)
CMYKcmyk(64.1%, 0%, 69.7%, 44.3%)
CIE-LABlab(52.09, -46.37, 43.09)
CIE-LCHlch(52.09, 63.30, 137.10°)
OKLaboklab(57.16% -0.1264 0.0989)
OKLCHoklch(57.16% 0.16 142)
XYZxyz(11.4737, 20.2231, 5.5838)
Luminance0.2022 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#338E2B #862B8E
analogous
#658E2B #338E2B #2B8E55
triadic
#338E2B #2B338E #8E2B33
tetradic
#338E2B #2B658E #862B8E #8E552B
square
#338E2B #2B658E #862B8E #8E552B
split-complementary
#338E2B #552B8E #8E2B65
monochromatic
#11300F #225F1D #338E2B #44BD39 #6CD063

Accessibility & contrast

On white

4.16
#338E2B on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.04
#338E2B on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #338E2B
5.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##338E2B#FFFFFF#000000##000000
##338E2B1.004.165.045.04
#FFFFFF4.161.0021.0021.00
#0000005.0421.001.001.00
##0000005.0421.001.001.00

Color blindness preview

Protanopia (red-blind)
#91811D
Deuteranopia (green-blind)
#867934
Tritanopia (blue-blind)
#238A7A
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #338e2b;
/* rgb */ color: rgb(51, 142, 43);
/* oklch */ color: oklch(57.2% 0.160 142.0);
Tailwind
colors: {
  custom: {
    50: '#76b06a',
    500: '#338e2b',
    950: '#000000',
  },
}
SCSS
$custom: #338e2b;
$custom-light: #76b06a;
$custom-dark: #000000;
JSON
{
  "hex": "#338e2b",
  "rgb": {
    "r": 51,
    "g": 142,
    "b": 43
  },
  "hsl": {
    "h": 115.152,
    "s": 53.514,
    "l": 36.275
  },
  "oklch": {
    "l": 0.5716,
    "c": 0.16046,
    "h": 142
  },
  "luminance": 0.20224
}

Semantic roles & 50–950 ramp

primary
#338E2B
secondary
#AF5FB6
accent
#4BDDD1
background
#F7FAF6
surface
#EEF5EB
border
#C9CFC6
text
#091007
muted
#7B7F7A

Preview Lab

Preview with #338E2B

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

Preview Lab → · Contrast checker → · Palette generator →

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