#338616#338616

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

Color values

HEX#338616
RGBrgb(51, 134, 22)
HSLhsl(104, 72%, 31%)
HSVhsv(104, 84%, 53%)
CMYKcmyk(61.9%, 0%, 83.6%, 47.5%)
CIE-LABlab(49.27, -45.00, 47.93)
CIE-LCHlch(49.27, 65.75, 133.19°)
OKLaboklab(54.78% -0.1239 0.106)
OKLCHoklch(54.78% 0.163 139.4)
XYZxyz(10.0347, 17.8110, 3.6680)
Luminance0.1781 (WCAG relative)
Temperaturewarm
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#338616 #691686
analogous
#6B8616 #338616 #168631
triadic
#338616 #163386 #861633
tetradic
#338616 #166B86 #691686 #863116
square
#338616 #166B86 #691686 #863116
split-complementary
#338616 #311686 #86166B
monochromatic
#0B1D05 #1F510D #338616 #47BB1F #63DE38

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##338616#FFFFFF#000000##FFFFFF
##3386161.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)
#807324
Tritanopia (blue-blind)
#298172
Achromatopsia (no color)
#757575

Design tokens & code

CSS
--color: #338616;
/* rgb */ color: rgb(51, 134, 22);
/* oklch */ color: oklch(54.8% 0.163 139.4);
Tailwind
colors: {
  custom: {
    50: '#76aa5e',
    500: '#338616',
    950: '#000000',
  },
}
SCSS
$custom: #338616;
$custom-light: #76aa5e;
$custom-dark: #000000;
JSON
{
  "hex": "#338616",
  "rgb": {
    "r": 51,
    "g": 134,
    "b": 22
  },
  "hsl": {
    "h": 104.464,
    "s": 71.795,
    "l": 30.588
  },
  "oklch": {
    "l": 0.54783,
    "c": 0.16306,
    "h": 139.4
  },
  "luminance": 0.17812
}

Semantic roles & 50–950 ramp

primary
#338616
secondary
#9A3EBA
accent
#39EFC0
background
#F7FAF5
surface
#EEF4EA
border
#C9CEC6
text
#091005
muted
#7B7F79

Preview Lab

Preview with #338616

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

Preview Lab → · Contrast checker → · Palette generator →

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