#338519#338519

#338519 is a mid, vivid green. Relative luminance 0.175; OKLCH L 54.5% C 0.160 H 139.6°. Best body text is #FFFFFF at 4.66:1 contrast (WCAG AA passes).

Color values

HEX#338519
RGBrgb(51, 133, 25)
HSLhsl(106, 68%, 31%)
HSVhsv(106, 81%, 52%)
CMYKcmyk(61.7%, 0%, 81.2%, 47.8%)
CIE-LABlab(48.94, -44.45, 46.71)
CIE-LCHlch(48.94, 64.48, 133.58°)
OKLaboklab(54.52% -0.1222 0.1039)
OKLCHoklch(54.52% 0.16 139.6)
XYZxyz(9.9278, 17.5481, 3.7835)
Luminance0.1755 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#338519 #6B1985
analogous
#698519 #338519 #198535
triadic
#338519 #193385 #851933
tetradic
#338519 #196985 #6B1985 #853519
square
#338519 #196985 #6B1985 #853519
split-complementary
#338519 #351985 #851969
monochromatic
#0B1E06 #1F510F #338519 #47B923 #64DB3E

Accessibility & contrast

On white

4.66
#338519 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.51
#338519 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #338519
4.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##338519#FFFFFF#000000##FFFFFF
##3385191.004.664.514.66
#FFFFFF4.661.0021.001.00
#0000004.5121.001.0021.00
##FFFFFF4.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#897800
Deuteranopia (green-blind)
#7F7226
Tritanopia (blue-blind)
#298071
Achromatopsia (no color)
#747474

Design tokens & code

CSS
--color: #338519;
/* rgb */ color: rgb(51, 133, 25);
/* oklch */ color: oklch(54.5% 0.160 139.6);
Tailwind
colors: {
  custom: {
    50: '#76a95f',
    500: '#338519',
    950: '#000000',
  },
}
SCSS
$custom: #338519;
$custom-light: #76a95f;
$custom-dark: #000000;
JSON
{
  "hex": "#338519",
  "rgb": {
    "r": 51,
    "g": 133,
    "b": 25
  },
  "hsl": {
    "h": 105.556,
    "s": 68.354,
    "l": 30.98
  },
  "oklch": {
    "l": 0.54521,
    "c": 0.16044,
    "h": 139.6
  },
  "luminance": 0.17549
}

Semantic roles & 50–950 ramp

primary
#338519
secondary
#9C41B9
accent
#3DEBC1
background
#F7FAF5
surface
#EEF4EA
border
#C9CEC6
text
#091005
muted
#7B7F79

Preview Lab

Preview with #338519

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

Preview Lab → · Contrast checker → · Palette generator →

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