#338B1F#338B1F

#338B1F is a mid, vivid green. Relative luminance 0.193; OKLCH L 56.2% C 0.164 H 140.5°. Best body text is #000000 at 4.85:1 contrast (WCAG AA passes).

Color values

HEX#338B1F
RGBrgb(51, 139, 31)
HSLhsl(109, 64%, 33%)
HSVhsv(109, 78%, 55%)
CMYKcmyk(63.3%, 0%, 77.7%, 45.5%)
CIE-LABlab(51.00, -46.27, 46.66)
CIE-LCHlch(51.00, 65.71, 134.76°)
OKLaboklab(56.23% -0.1268 0.1047)
OKLCHoklch(56.23% 0.164 140.5)
XYZxyz(10.8447, 19.2669, 4.4435)
Luminance0.1927 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#338B1F #771F8B
analogous
#698B1F #338B1F #1F8B41
triadic
#338B1F #1F338B #8B1F33
tetradic
#338B1F #1F698B #771F8B #8B411F
square
#338B1F #1F698B #771F8B #8B411F
split-complementary
#338B1F #411F8B #8B1F69
monochromatic
#0E2709 #215914 #338B1F #45BD2A #67D74D

Accessibility & contrast

On white

4.33
#338B1F on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.85
#338B1F on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #338B1F
4.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##338B1F#FFFFFF#000000##000000
##338B1F1.004.334.854.85
#FFFFFF4.331.0021.0021.00
#0000004.8521.001.001.00
##0000004.8521.001.001.00

Color blindness preview

Protanopia (red-blind)
#8F7E06
Deuteranopia (green-blind)
#84772B
Tritanopia (blue-blind)
#268677
Achromatopsia (no color)
#797979

Design tokens & code

CSS
--color: #338b1f;
/* rgb */ color: rgb(51, 139, 31);
/* oklch */ color: oklch(56.2% 0.164 140.5);
Tailwind
colors: {
  custom: {
    50: '#76ae63',
    500: '#338b1f',
    950: '#000000',
  },
}
SCSS
$custom: #338b1f;
$custom-light: #76ae63;
$custom-dark: #000000;
JSON
{
  "hex": "#338b1f",
  "rgb": {
    "r": 51,
    "g": 139,
    "b": 31
  },
  "hsl": {
    "h": 108.889,
    "s": 63.529,
    "l": 33.333
  },
  "oklch": {
    "l": 0.56231,
    "c": 0.16444,
    "h": 140.5
  },
  "luminance": 0.19268
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #338B1F

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

Preview Lab → · Contrast checker → · Palette generator →

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