#338E1C#338E1C

#338E1C is a mid, vivid green. Relative luminance 0.201; OKLCH L 57.0% C 0.170 H 140.3°. Best body text is #000000 at 5.03:1 contrast (WCAG AA passes).

Color values

HEX#338E1C
RGBrgb(51, 142, 28)
HSLhsl(108, 67%, 33%)
HSVhsv(108, 80%, 56%)
CMYKcmyk(64.1%, 0%, 80.3%, 44.3%)
CIE-LABlab(51.99, -47.57, 48.63)
CIE-LCHlch(51.99, 68.03, 134.37°)
OKLaboklab(57.04% -0.1305 0.1084)
OKLCHoklch(57.04% 0.17 140.3)
XYZxyz(11.2473, 20.1326, 4.3916)
Luminance0.2013 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#338E1C #771C8E
analogous
#6C8E1C #338E1C #1C8E3E
triadic
#338E1C #1C338E #8E1C33
tetradic
#338E1C #1C6C8E #771C8E #8E3E1C
square
#338E1C #1C6C8E #771C8E #8E3E1C
split-complementary
#338E1C #3E1C8E #8E1C6C
monochromatic
#0E2808 #215B12 #338E1C #45C126 #67DB49

Accessibility & contrast

On white

4.18
#338E1C on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.03
#338E1C on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #338E1C
5.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##338E1C#FFFFFF#000000##000000
##338E1C1.004.185.035.03
#FFFFFF4.181.0021.0021.00
#0000005.0321.001.001.00
##0000005.0321.001.001.00

Color blindness preview

Protanopia (red-blind)
#928000
Deuteranopia (green-blind)
#877929
Tritanopia (blue-blind)
#258979
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #338e1c;
/* rgb */ color: rgb(51, 142, 28);
/* oklch */ color: oklch(57.0% 0.170 140.3);
Tailwind
colors: {
  custom: {
    50: '#77b062',
    500: '#338e1c',
    950: '#000000',
  },
}
SCSS
$custom: #338e1c;
$custom-light: #77b062;
$custom-dark: #000000;
JSON
{
  "hex": "#338e1c",
  "rgb": {
    "r": 51,
    "g": 142,
    "b": 28
  },
  "hsl": {
    "h": 107.895,
    "s": 67.059,
    "l": 33.333
  },
  "oklch": {
    "l": 0.57044,
    "c": 0.16961,
    "h": 140.3
  },
  "luminance": 0.20134
}

Semantic roles & 50–950 ramp

primary
#338E1C
secondary
#A649BD
accent
#3EEAC7
background
#F7FAF6
surface
#EEF5EB
border
#C9CFC6
text
#0A1106
muted
#7C807A

Preview Lab

Preview with #338E1C

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

Preview Lab → · Contrast checker → · Palette generator →

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