#338718#338718

#338718 is a mid, vivid green. Relative luminance 0.181; OKLCH L 55.1% C 0.163 H 139.6°. Best body text is #000000 at 4.62:1 contrast (WCAG AA passes).

Color values

HEX#338718
RGBrgb(51, 135, 24)
HSLhsl(105, 70%, 31%)
HSVhsv(105, 82%, 53%)
CMYKcmyk(62.2%, 0%, 82.2%, 47.1%)
CIE-LABlab(49.61, -45.26, 47.65)
CIE-LCHlch(49.61, 65.72, 133.52°)
OKLaboklab(55.07% -0.1245 0.1057)
OKLCHoklch(55.07% 0.163 139.6)
XYZxyz(10.1936, 18.0968, 3.8198)
Luminance0.1810 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#338718 #6C1887
analogous
#6A8718 #338718 #188734
triadic
#338718 #183387 #871833
tetradic
#338718 #186A87 #6C1887 #873418
square
#338718 #186A87 #6C1887 #873418
split-complementary
#338718 #341887 #87186A
monochromatic
#0C1F06 #1F530F #338718 #47BB21 #64DC3D

Accessibility & contrast

On white

4.55
#338718 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.62
#338718 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #338718
4.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##338718#FFFFFF#000000##000000
##3387181.004.554.624.62
#FFFFFF4.551.0021.0021.00
#0000004.6221.001.001.00
##0000004.6221.001.001.00

Color blindness preview

Protanopia (red-blind)
#8B7A00
Deuteranopia (green-blind)
#817325
Tritanopia (blue-blind)
#288273
Achromatopsia (no color)
#767676

Design tokens & code

CSS
--color: #338718;
/* rgb */ color: rgb(51, 135, 24);
/* oklch */ color: oklch(55.1% 0.163 139.6);
Tailwind
colors: {
  custom: {
    50: '#76ab5f',
    500: '#338718',
    950: '#000000',
  },
}
SCSS
$custom: #338718;
$custom-light: #76ab5f;
$custom-dark: #000000;
JSON
{
  "hex": "#338718",
  "rgb": {
    "r": 51,
    "g": 135,
    "b": 24
  },
  "hsl": {
    "h": 105.405,
    "s": 69.811,
    "l": 31.176
  },
  "oklch": {
    "l": 0.55073,
    "c": 0.16331,
    "h": 139.6
  },
  "luminance": 0.18098
}

Semantic roles & 50–950 ramp

primary
#338718
secondary
#9D40BB
accent
#3BEDC1
background
#F7FAF5
surface
#EEF4EA
border
#C9CEC6
text
#091005
muted
#7B7F79

Preview Lab

Preview with #338718

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

Preview Lab → · Contrast checker → · Palette generator →

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