#338618#338618

#338618 is a mid, vivid green. Relative luminance 0.178; OKLCH L 54.8% C 0.162 H 139.6°. Best body text is #FFFFFF at 4.60:1 contrast (WCAG AA passes).

Color values

HEX#338618
RGBrgb(51, 134, 24)
HSLhsl(105, 70%, 31%)
HSVhsv(105, 82%, 53%)
CMYKcmyk(61.9%, 0%, 82.1%, 47.5%)
CIE-LABlab(49.28, -44.89, 47.34)
CIE-LCHlch(49.28, 65.24, 133.48°)
OKLaboklab(54.79% -0.1235 0.1051)
OKLCHoklch(54.79% 0.162 139.6)
XYZxyz(10.0548, 17.8190, 3.7735)
Luminance0.1782 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#338618 #6B1886
analogous
#6A8618 #338618 #188634
triadic
#338618 #183386 #861833
tetradic
#338618 #186A86 #6B1886 #863418
square
#338618 #186A86 #6B1886 #863418
split-complementary
#338618 #341886 #86186A
monochromatic
#0B1E05 #1F520F #338618 #47BA21 #64DC3C

Accessibility & contrast

On white

4.60
#338618 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.56
#338618 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #338618
4.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##338618#FFFFFF#000000##FFFFFF
##3386181.004.604.564.60
#FFFFFF4.601.0021.001.00
#0000004.5621.001.0021.00
##FFFFFF4.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#8A7900
Deuteranopia (green-blind)
#807325
Tritanopia (blue-blind)
#288172
Achromatopsia (no color)
#757575

Design tokens & code

CSS
--color: #338618;
/* rgb */ color: rgb(51, 134, 24);
/* oklch */ color: oklch(54.8% 0.162 139.6);
Tailwind
colors: {
  custom: {
    50: '#76aa5f',
    500: '#338618',
    950: '#000000',
  },
}
SCSS
$custom: #338618;
$custom-light: #76aa5f;
$custom-dark: #000000;
JSON
{
  "hex": "#338618",
  "rgb": {
    "r": 51,
    "g": 134,
    "b": 24
  },
  "hsl": {
    "h": 105.273,
    "s": 69.62,
    "l": 30.98
  },
  "oklch": {
    "l": 0.54794,
    "c": 0.16212,
    "h": 139.6
  },
  "luminance": 0.1782
}

Semantic roles & 50–950 ramp

primary
#338618
secondary
#9C40BA
accent
#3BECC1
background
#F7FAF5
surface
#EEF4EA
border
#C9CEC6
text
#091005
muted
#7B7F79

Preview Lab

Preview with #338618

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

Preview Lab → · Contrast checker → · Palette generator →

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