#338E2C#338E2C

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

Color values

HEX#338E2C
RGBrgb(51, 142, 44)
HSLhsl(116, 53%, 36%)
HSVhsv(116, 69%, 56%)
CMYKcmyk(64.1%, 0%, 69%, 44.3%)
CIE-LABlab(52.10, -46.28, 42.67)
CIE-LCHlch(52.10, 62.95, 137.32°)
OKLaboklab(57.17% -0.1261 0.0981)
OKLCHoklch(57.17% 0.16 142.1)
XYZxyz(11.4922, 20.2305, 5.6816)
Luminance0.2023 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#338E2C #872C8E
analogous
#648E2C #338E2C #2C8E56
triadic
#338E2C #2C338E #8E2C33
tetradic
#338E2C #2C648E #872C8E #8E562C
square
#338E2C #2C648E #872C8E #8E562C
split-complementary
#338E2C #562C8E #8E2C64
monochromatic
#11310F #225F1E #338E2C #44BD3A #6DCF65

Accessibility & contrast

On white

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

On black

5.05
#338E2C on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #338E2C
5.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##338E2C#FFFFFF#000000##000000
##338E2C1.004.165.055.05
#FFFFFF4.161.0021.0021.00
#0000005.0521.001.001.00
##0000005.0521.001.001.00

Color blindness preview

Protanopia (red-blind)
#91811F
Deuteranopia (green-blind)
#867935
Tritanopia (blue-blind)
#228A7A
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #338e2c;
/* rgb */ color: rgb(51, 142, 44);
/* oklch */ color: oklch(57.2% 0.160 142.1);
Tailwind
colors: {
  custom: {
    50: '#76b06a',
    500: '#338e2c',
    950: '#000000',
  },
}
SCSS
$custom: #338e2c;
$custom-light: #76b06a;
$custom-dark: #000000;
JSON
{
  "hex": "#338e2c",
  "rgb": {
    "r": 51,
    "g": 142,
    "b": 44
  },
  "hsl": {
    "h": 115.714,
    "s": 52.688,
    "l": 36.471
  },
  "oklch": {
    "l": 0.5717,
    "c": 0.15974,
    "h": 142.1
  },
  "luminance": 0.20232
}

Semantic roles & 50–950 ramp

primary
#338E2C
secondary
#B060B6
accent
#4CDCD2
background
#F7FAF6
surface
#EEF5EB
border
#C9CFC6
text
#091007
muted
#7B7F7A

Preview Lab

Preview with #338E2C

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

Preview Lab → · Contrast checker → · Palette generator →

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