#338F2E#338F2E

#338F2E is a mid, vivid green. Relative luminance 0.205; OKLCH L 57.5% C 0.160 H 142.4°. Best body text is #000000 at 5.11:1 contrast (WCAG AA passes).

Color values

HEX#338F2E
RGBrgb(51, 143, 46)
HSLhsl(117, 51%, 37%)
HSVhsv(117, 68%, 56%)
CMYKcmyk(64.3%, 0%, 67.8%, 43.9%)
CIE-LABlab(52.45, -46.45, 42.18)
CIE-LCHlch(52.45, 62.75, 137.75°)
OKLaboklab(57.47% -0.1264 0.0973)
OKLCHoklch(57.47% 0.16 142.4)
XYZxyz(11.6802, 20.5448, 5.9343)
Luminance0.2055 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#338F2E #8A2E8F
analogous
#648F2E #338F2E #2E8F5A
triadic
#338F2E #2E338F #8F2E33
tetradic
#338F2E #2E648F #8A2E8F #8F5A2E
square
#338F2E #2E648F #8A2E8F #8F5A2E
split-complementary
#338F2E #5A2E8F #8F2E64
monochromatic
#123210 #22611F #338F2E #44BD3D #6ECF69

Accessibility & contrast

On white

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

On black

5.11
#338F2E on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #338F2E
5.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##338F2E#FFFFFF#000000##000000
##338F2E1.004.115.115.11
#FFFFFF4.111.0021.0021.00
#0000005.1121.001.001.00
##0000005.1121.001.001.00

Color blindness preview

Protanopia (red-blind)
#928221
Deuteranopia (green-blind)
#877A37
Tritanopia (blue-blind)
#218B7B
Achromatopsia (no color)
#7D7D7D

Design tokens & code

CSS
--color: #338f2e;
/* rgb */ color: rgb(51, 143, 46);
/* oklch */ color: oklch(57.5% 0.160 142.4);
Tailwind
colors: {
  custom: {
    50: '#76b16b',
    500: '#338f2e',
    950: '#000000',
  },
}
SCSS
$custom: #338f2e;
$custom-light: #76b16b;
$custom-dark: #000000;
JSON
{
  "hex": "#338f2e",
  "rgb": {
    "r": 51,
    "g": 143,
    "b": 46
  },
  "hsl": {
    "h": 116.907,
    "s": 51.323,
    "l": 37.059
  },
  "oklch": {
    "l": 0.57466,
    "c": 0.15954,
    "h": 142.4
  },
  "luminance": 0.20546
}

Semantic roles & 50–950 ramp

primary
#338F2E
secondary
#B163B6
accent
#4DDBD3
background
#F7FBF6
surface
#EEF6EB
border
#C9D0C6
text
#091107
muted
#7B807A

Preview Lab

Preview with #338F2E

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

Preview Lab → · Contrast checker → · Palette generator →

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