#338F2C#338F2C

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

Color values

HEX#338F2C
RGBrgb(51, 143, 44)
HSLhsl(116, 53%, 37%)
HSVhsv(116, 69%, 56%)
CMYKcmyk(64.3%, 0%, 69.2%, 43.9%)
CIE-LABlab(52.43, -46.65, 43.03)
CIE-LCHlch(52.43, 63.46, 137.31°)
OKLaboklab(57.45% -0.1271 0.0989)
OKLCHoklch(57.45% 0.161 142.1)
XYZxyz(11.6417, 20.5294, 5.7315)
Luminance0.2053 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#338F2C #882C8F
analogous
#658F2C #338F2C #2C8F57
triadic
#338F2C #2C338F #8F2C33
tetradic
#338F2C #2C658F #882C8F #8F572C
square
#338F2C #2C658F #882C8F #8F572C
split-complementary
#338F2C #572C8F #8F2C65
monochromatic
#12310F #22601E #338F2C #44BE3A #6DD066

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##338F2C#FFFFFF#000000##000000
##338F2C1.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)
#92821E
Deuteranopia (green-blind)
#877A35
Tritanopia (blue-blind)
#228B7B
Achromatopsia (no color)
#7D7D7D

Design tokens & code

CSS
--color: #338f2c;
/* rgb */ color: rgb(51, 143, 44);
/* oklch */ color: oklch(57.4% 0.161 142.1);
Tailwind
colors: {
  custom: {
    50: '#77b16a',
    500: '#338f2c',
    950: '#000000',
  },
}
SCSS
$custom: #338f2c;
$custom-light: #77b16a;
$custom-dark: #000000;
JSON
{
  "hex": "#338f2c",
  "rgb": {
    "r": 51,
    "g": 143,
    "b": 44
  },
  "hsl": {
    "h": 115.758,
    "s": 52.941,
    "l": 36.667
  },
  "oklch": {
    "l": 0.57446,
    "c": 0.16101,
    "h": 142.1
  },
  "luminance": 0.20531
}

Semantic roles & 50–950 ramp

primary
#338F2C
secondary
#B061B6
accent
#4BDCD2
background
#F7FBF6
surface
#EEF6EB
border
#C9D0C6
text
#0A1107
muted
#7C807A

Preview Lab

Preview with #338F2C

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

Preview Lab → · Contrast checker → · Palette generator →

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