#338318#338318

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

Color values

HEX#338318
RGBrgb(51, 131, 24)
HSLhsl(105, 69%, 30%)
HSVhsv(105, 82%, 51%)
CMYKcmyk(61.1%, 0%, 81.7%, 48.6%)
CIE-LABlab(48.26, -43.77, 46.38)
CIE-LCHlch(48.26, 63.77, 133.34°)
OKLaboklab(53.96% -0.1204 0.1031)
OKLCHoklch(53.96% 0.159 139.4)
XYZxyz(9.6460, 17.0015, 3.6373)
Luminance0.1700 (WCAG relative)
Temperaturewarm
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#338318 #681883
analogous
#688318 #338318 #188333
triadic
#338318 #183383 #831833
tetradic
#338318 #186883 #681883 #833318
square
#338318 #186883 #681883 #833318
split-complementary
#338318 #331883 #831868
monochromatic
#0B1C05 #1F4F0F #338318 #47B721 #63DB3A

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##338318#FFFFFF#000000##FFFFFF
##3383181.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: #338318;
/* rgb */ color: rgb(51, 131, 24);
/* oklch */ color: oklch(54.0% 0.159 139.4);
Tailwind
colors: {
  custom: {
    50: '#75a85f',
    500: '#338318',
    950: '#000000',
  },
}
SCSS
$custom: #338318;
$custom-light: #75a85f;
$custom-dark: #000000;
JSON
{
  "hex": "#338318",
  "rgb": {
    "r": 51,
    "g": 131,
    "b": 24
  },
  "hsl": {
    "h": 104.86,
    "s": 69.032,
    "l": 30.392
  },
  "oklch": {
    "l": 0.53955,
    "c": 0.15854,
    "h": 139.4
  },
  "luminance": 0.17002
}

Semantic roles & 50–950 ramp

primary
#338318
secondary
#9940B7
accent
#3CECBF
background
#F7FAF5
surface
#EEF4EA
border
#C9CEC6
text
#091005
muted
#7B7F79

Preview Lab

Preview with #338318

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

Preview Lab → · Contrast checker → · Palette generator →

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