#338319#338319

#338319 is a mid, vivid green. Relative luminance 0.170; OKLCH L 54.0% C 0.158 H 139.5°. Best body text is #FFFFFF at 4.77:1 contrast (WCAG AA passes).

Color values

HEX#338319
RGBrgb(51, 131, 25)
HSLhsl(105, 68%, 31%)
HSVhsv(105, 81%, 51%)
CMYKcmyk(61.1%, 0%, 80.9%, 48.6%)
CIE-LABlab(48.27, -43.70, 46.07)
CIE-LCHlch(48.27, 63.50, 133.49°)
OKLaboklab(53.96% -0.1202 0.1026)
OKLCHoklch(53.96% 0.158 139.5)
XYZxyz(9.6566, 17.0057, 3.6931)
Luminance0.1701 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#338319 #691983
analogous
#688319 #338319 #198334
triadic
#338319 #193383 #831933
tetradic
#338319 #196883 #691983 #833419
square
#338319 #196883 #691983 #833419
split-complementary
#338319 #341983 #831968
monochromatic
#0B1C05 #1F500F #338319 #47B623 #63DA3D

Accessibility & contrast

On white

4.77
#338319 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.40
#338319 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #338319
4.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##338319#FFFFFF#000000##FFFFFF
##3383191.004.774.404.77
#FFFFFF4.771.0021.001.00
#0000004.4021.001.0021.00
##FFFFFF4.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#877700
Deuteranopia (green-blind)
#7D7025
Tritanopia (blue-blind)
#297E6F
Achromatopsia (no color)
#737373

Design tokens & code

CSS
--color: #338319;
/* rgb */ color: rgb(51, 131, 25);
/* oklch */ color: oklch(54.0% 0.158 139.5);
Tailwind
colors: {
  custom: {
    50: '#75a85f',
    500: '#338319',
    950: '#000000',
  },
}
SCSS
$custom: #338319;
$custom-light: #75a85f;
$custom-dark: #000000;
JSON
{
  "hex": "#338319",
  "rgb": {
    "r": 51,
    "g": 131,
    "b": 25
  },
  "hsl": {
    "h": 105.283,
    "s": 67.949,
    "l": 30.588
  },
  "oklch": {
    "l": 0.53962,
    "c": 0.15804,
    "h": 139.5
  },
  "luminance": 0.17007
}

Semantic roles & 50–950 ramp

primary
#338319
secondary
#9A41B7
accent
#3DEBC0
background
#F7FAF5
surface
#EEF4EA
border
#C9CEC6
text
#091005
muted
#7B7F79

Preview Lab

Preview with #338319

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

Preview Lab → · Contrast checker → · Palette generator →

#338319 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva