#338C1F#338C1F

#338C1F is a mid, vivid green. Relative luminance 0.196; OKLCH L 56.5% C 0.166 H 140.5°. Best body text is #000000 at 4.91:1 contrast (WCAG AA passes).

Color values

HEX#338C1F
RGBrgb(51, 140, 31)
HSLhsl(109, 64%, 34%)
HSVhsv(109, 78%, 55%)
CMYKcmyk(63.6%, 0%, 77.9%, 45.1%)
CIE-LABlab(51.33, -46.64, 46.99)
CIE-LCHlch(51.33, 66.21, 134.79°)
OKLaboklab(56.51% -0.1278 0.1054)
OKLCHoklch(56.51% 0.166 140.5)
XYZxyz(10.9901, 19.5579, 4.4919)
Luminance0.1956 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#338C1F #781F8C
analogous
#698C1F #338C1F #1F8C41
triadic
#338C1F #1F338C #8C1F33
tetradic
#338C1F #1F698C #781F8C #8C411F
square
#338C1F #1F698C #781F8C #8C411F
split-complementary
#338C1F #411F8C #8C1F69
monochromatic
#0E2809 #215A14 #338C1F #45BE2A #67D84E

Accessibility & contrast

On white

4.28
#338C1F on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.91
#338C1F on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #338C1F
4.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##338C1F#FFFFFF#000000##000000
##338C1F1.004.284.914.91
#FFFFFF4.281.0021.0021.00
#0000004.9121.001.001.00
##0000004.9121.001.001.00

Color blindness preview

Protanopia (red-blind)
#907F05
Deuteranopia (green-blind)
#85782B
Tritanopia (blue-blind)
#268777
Achromatopsia (no color)
#7A7A7A

Design tokens & code

CSS
--color: #338c1f;
/* rgb */ color: rgb(51, 140, 31);
/* oklch */ color: oklch(56.5% 0.166 140.5);
Tailwind
colors: {
  custom: {
    50: '#77ae63',
    500: '#338c1f',
    950: '#000000',
  },
}
SCSS
$custom: #338c1f;
$custom-light: #77ae63;
$custom-dark: #000000;
JSON
{
  "hex": "#338c1f",
  "rgb": {
    "r": 51,
    "g": 140,
    "b": 31
  },
  "hsl": {
    "h": 108.991,
    "s": 63.743,
    "l": 33.529
  },
  "oklch": {
    "l": 0.56509,
    "c": 0.16564,
    "h": 140.5
  },
  "luminance": 0.19559
}

Semantic roles & 50–950 ramp

primary
#338C1F
secondary
#A64CBB
accent
#41E7C8
background
#F7FAF6
surface
#EEF4EB
border
#C9CEC6
text
#0A1006
muted
#7C7F7A

Preview Lab

Preview with #338C1F

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

Preview Lab → · Contrast checker → · Palette generator →

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