#338F1C#338F1C

#338F1C is a mid, vivid green. Relative luminance 0.204; OKLCH L 57.3% C 0.171 H 140.3°. Best body text is #000000 at 5.09:1 contrast (WCAG AA passes).

Color values

HEX#338F1C
RGBrgb(51, 143, 28)
HSLhsl(108, 67%, 34%)
HSVhsv(108, 80%, 56%)
CMYKcmyk(64.3%, 0%, 80.4%, 43.9%)
CIE-LABlab(52.32, -47.93, 48.95)
CIE-LCHlch(52.32, 68.51, 134.40°)
OKLaboklab(57.32% -0.1314 0.109)
OKLCHoklch(57.32% 0.171 140.3)
XYZxyz(11.3968, 20.4315, 4.4415)
Luminance0.2043 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#338F1C #781C8F
analogous
#6C8F1C #338F1C #1C8F3E
triadic
#338F1C #1C338F #8F1C33
tetradic
#338F1C #1C6C8F #781C8F #8F3E1C
square
#338F1C #1C6C8F #781C8F #8F3E1C
split-complementary
#338F1C #3E1C8F #8F1C6C
monochromatic
#0E2908 #215C12 #338F1C #45C226 #67DC4A

Accessibility & contrast

On white

4.13
#338F1C on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.09
#338F1C on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #338F1C
5.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##338F1C#FFFFFF#000000##000000
##338F1C1.004.135.095.09
#FFFFFF4.131.0021.0021.00
#0000005.0921.001.001.00
##0000005.0921.001.001.00

Color blindness preview

Protanopia (red-blind)
#938100
Deuteranopia (green-blind)
#887A29
Tritanopia (blue-blind)
#258A7A
Achromatopsia (no color)
#7D7D7D

Design tokens & code

CSS
--color: #338f1c;
/* rgb */ color: rgb(51, 143, 28);
/* oklch */ color: oklch(57.3% 0.171 140.3);
Tailwind
colors: {
  custom: {
    50: '#77b162',
    500: '#338f1c',
    950: '#000000',
  },
}
SCSS
$custom: #338f1c;
$custom-light: #77b162;
$custom-dark: #000000;
JSON
{
  "hex": "#338f1c",
  "rgb": {
    "r": 51,
    "g": 143,
    "b": 28
  },
  "hsl": {
    "h": 108,
    "s": 67.251,
    "l": 33.529
  },
  "oklch": {
    "l": 0.57321,
    "c": 0.17077,
    "h": 140.3
  },
  "luminance": 0.20433
}

Semantic roles & 50–950 ramp

primary
#338F1C
secondary
#A649BE
accent
#3EEAC8
background
#F7FBF6
surface
#EEF6EB
border
#C9D0C6
text
#0A1106
muted
#7C807A

Preview Lab

Preview with #338F1C

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

Preview Lab → · Contrast checker → · Palette generator →

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