#338518#338518

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

Color values

HEX#338518
RGBrgb(51, 133, 24)
HSLhsl(105, 69%, 31%)
HSVhsv(105, 82%, 52%)
CMYKcmyk(61.7%, 0%, 82%, 47.8%)
CIE-LABlab(48.94, -44.52, 47.02)
CIE-LCHlch(48.94, 64.75, 133.43°)
OKLaboklab(54.52% -0.1225 0.1044)
OKLCHoklch(54.52% 0.161 139.5)
XYZxyz(9.9172, 17.5439, 3.7277)
Luminance0.1754 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#338518 #6A1885
analogous
#698518 #338518 #188534
triadic
#338518 #183385 #851833
tetradic
#338518 #186985 #6A1885 #853418
square
#338518 #186985 #6A1885 #853418
split-complementary
#338518 #341885 #851869
monochromatic
#0B1D05 #1F510F #338518 #47B921 #63DC3C

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##338518#FFFFFF#000000##FFFFFF
##3385181.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)
#7F7225
Tritanopia (blue-blind)
#298071
Achromatopsia (no color)
#747474

Design tokens & code

CSS
--color: #338518;
/* rgb */ color: rgb(51, 133, 24);
/* oklch */ color: oklch(54.5% 0.161 139.5);
Tailwind
colors: {
  custom: {
    50: '#76a95f',
    500: '#338518',
    950: '#000000',
  },
}
SCSS
$custom: #338518;
$custom-light: #76a95f;
$custom-dark: #000000;
JSON
{
  "hex": "#338518",
  "rgb": {
    "r": 51,
    "g": 133,
    "b": 24
  },
  "hsl": {
    "h": 105.138,
    "s": 69.427,
    "l": 30.784
  },
  "oklch": {
    "l": 0.54515,
    "c": 0.16093,
    "h": 139.5
  },
  "luminance": 0.17545
}

Semantic roles & 50–950 ramp

primary
#338518
secondary
#9B40B9
accent
#3CECC0
background
#F7FAF5
surface
#EEF4EA
border
#C9CEC6
text
#091005
muted
#7B7F79

Preview Lab

Preview with #338518

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

Preview Lab → · Contrast checker → · Palette generator →

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