#338018#338018

#338018 is a mid, vivid green. Relative luminance 0.162; OKLCH L 53.1% C 0.155 H 139.3°. Best body text is #FFFFFF at 4.95:1 contrast (WCAG AA passes).

Color values

HEX#338018
RGBrgb(51, 128, 24)
HSLhsl(104, 68%, 30%)
HSVhsv(104, 81%, 50%)
CMYKcmyk(60.2%, 0%, 81.3%, 49.8%)
CIE-LABlab(47.25, -42.63, 45.42)
CIE-LCHlch(47.25, 62.29, 133.18°)
OKLaboklab(53.12% -0.1174 0.1011)
OKLCHoklch(53.12% 0.155 139.3)
XYZxyz(9.2489, 16.2073, 3.5049)
Luminance0.1621 (WCAG relative)
Temperaturewarm
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#338018 #651880
analogous
#678018 #338018 #188031
triadic
#338018 #183380 #801833
tetradic
#338018 #186780 #651880 #803118
square
#338018 #186780 #651880 #803118
split-complementary
#338018 #311880 #801867
monochromatic
#0A1A05 #1E4C0E #338018 #48B422 #62DA39

Accessibility & contrast

On white

4.95
#338018 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.24
#338018 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #338018
4.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##338018#FFFFFF#000000##FFFFFF
##3380181.004.954.244.95
#FFFFFF4.951.0021.001.00
#0000004.2421.001.0021.00
##FFFFFF4.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#847400
Deuteranopia (green-blind)
#7A6E24
Tritanopia (blue-blind)
#2A7B6D
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #338018;
/* rgb */ color: rgb(51, 128, 24);
/* oklch */ color: oklch(53.1% 0.155 139.3);
Tailwind
colors: {
  custom: {
    50: '#75a65e',
    500: '#338018',
    950: '#000000',
  },
}
SCSS
$custom: #338018;
$custom-light: #75a65e;
$custom-dark: #000000;
JSON
{
  "hex": "#338018",
  "rgb": {
    "r": 51,
    "g": 128,
    "b": 24
  },
  "hsl": {
    "h": 104.423,
    "s": 68.421,
    "l": 29.804
  },
  "oklch": {
    "l": 0.53115,
    "c": 0.1549,
    "h": 139.3
  },
  "luminance": 0.16208
}

Semantic roles & 50–950 ramp

primary
#338018
secondary
#9640B4
accent
#3DEBBE
background
#F7FAF5
surface
#EDF4E9
border
#C8CEC5
text
#090F05
muted
#7B7F79

Preview Lab

Preview with #338018

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

Preview Lab → · Contrast checker → · Palette generator →

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