#338118#338118

#338118 is a mid, vivid green. Relative luminance 0.165; OKLCH L 53.4% C 0.156 H 139.3°. Best body text is #FFFFFF at 4.89:1 contrast (WCAG AA passes).

Color values

HEX#338118
RGBrgb(51, 129, 24)
HSLhsl(105, 69%, 30%)
HSVhsv(105, 81%, 51%)
CMYKcmyk(60.5%, 0%, 81.4%, 49.4%)
CIE-LABlab(47.58, -43.01, 45.74)
CIE-LCHlch(47.58, 62.79, 133.24°)
OKLaboklab(53.4% -0.1184 0.1017)
OKLCHoklch(53.4% 0.156 139.3)
XYZxyz(9.3800, 16.4694, 3.5486)
Luminance0.1647 (WCAG relative)
Temperaturewarm
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#338118 #661881
analogous
#688118 #338118 #188131
triadic
#338118 #183381 #811833
tetradic
#338118 #186881 #661881 #813118
square
#338118 #186881 #661881 #813118
split-complementary
#338118 #311881 #811868
monochromatic
#0A1A05 #1F4D0E #338118 #47B522 #63DA39

Accessibility & contrast

On white

4.89
#338118 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.29
#338118 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #338118
4.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##338118#FFFFFF#000000##FFFFFF
##3381181.004.894.294.89
#FFFFFF4.891.0021.001.00
#0000004.2921.001.0021.00
##FFFFFF4.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#857500
Deuteranopia (green-blind)
#7B6E24
Tritanopia (blue-blind)
#2A7C6E
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #338118;
/* rgb */ color: rgb(51, 129, 24);
/* oklch */ color: oklch(53.4% 0.156 139.3);
Tailwind
colors: {
  custom: {
    50: '#75a65e',
    500: '#338118',
    950: '#000000',
  },
}
SCSS
$custom: #338118;
$custom-light: #75a65e;
$custom-dark: #000000;
JSON
{
  "hex": "#338118",
  "rgb": {
    "r": 51,
    "g": 129,
    "b": 24
  },
  "hsl": {
    "h": 104.571,
    "s": 68.627,
    "l": 30
  },
  "oklch": {
    "l": 0.53395,
    "c": 0.15612,
    "h": 139.3
  },
  "luminance": 0.1647
}

Semantic roles & 50–950 ramp

primary
#338118
secondary
#9740B5
accent
#3CEBBE
background
#F7FAF5
surface
#EDF4EA
border
#C8CEC6
text
#090F05
muted
#7B7F79

Preview Lab

Preview with #338118

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

Preview Lab → · Contrast checker → · Palette generator →

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