#338418#338418

#338418 is a mid, vivid green. Relative luminance 0.173; OKLCH L 54.2% C 0.160 H 139.5°. Best body text is #FFFFFF at 4.71:1 contrast (WCAG AA passes).

Color values

HEX#338418
RGBrgb(51, 132, 24)
HSLhsl(105, 69%, 31%)
HSVhsv(105, 82%, 52%)
CMYKcmyk(61.4%, 0%, 81.8%, 48.2%)
CIE-LABlab(48.60, -44.14, 46.70)
CIE-LCHlch(48.60, 64.26, 133.39°)
OKLaboklab(54.24% -0.1215 0.1038)
OKLCHoklch(54.24% 0.16 139.5)
XYZxyz(9.7810, 17.2714, 3.6823)
Luminance0.1727 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#338418 #691884
analogous
#698418 #338418 #188433
triadic
#338418 #183384 #841833
tetradic
#338418 #186984 #691884 #843318
square
#338418 #186984 #691884 #843318
split-complementary
#338418 #331884 #841869
monochromatic
#0B1C05 #1F500F #338418 #47B821 #63DB3B

Accessibility & contrast

On white

4.71
#338418 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.45
#338418 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #338418
4.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##338418#FFFFFF#000000##FFFFFF
##3384181.004.714.454.71
#FFFFFF4.711.0021.001.00
#0000004.4521.001.0021.00
##FFFFFF4.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#887700
Deuteranopia (green-blind)
#7E7125
Tritanopia (blue-blind)
#297F70
Achromatopsia (no color)
#737373

Design tokens & code

CSS
--color: #338418;
/* rgb */ color: rgb(51, 132, 24);
/* oklch */ color: oklch(54.2% 0.160 139.5);
Tailwind
colors: {
  custom: {
    50: '#75a95f',
    500: '#338418',
    950: '#000000',
  },
}
SCSS
$custom: #338418;
$custom-light: #75a95f;
$custom-dark: #000000;
JSON
{
  "hex": "#338418",
  "rgb": {
    "r": 51,
    "g": 132,
    "b": 24
  },
  "hsl": {
    "h": 105,
    "s": 69.231,
    "l": 30.588
  },
  "oklch": {
    "l": 0.54235,
    "c": 0.15974,
    "h": 139.5
  },
  "luminance": 0.17272
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #338418

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

Preview Lab → · Contrast checker → · Palette generator →

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