#338117#338117

#338117 is a mid, vivid green. Relative luminance 0.165; OKLCH L 53.4% C 0.157 H 139.2°. Best body text is #FFFFFF at 4.89:1 contrast (WCAG AA passes).

Color values

HEX#338117
RGBrgb(51, 129, 23)
HSLhsl(104, 70%, 30%)
HSVhsv(104, 82%, 51%)
CMYKcmyk(60.5%, 0%, 82.2%, 49.4%)
CIE-LABlab(47.58, -43.07, 46.06)
CIE-LCHlch(47.58, 63.06, 133.08°)
OKLaboklab(53.39% -0.1186 0.1022)
OKLCHoklch(53.39% 0.157 139.2)
XYZxyz(9.3698, 16.4654, 3.4948)
Luminance0.1647 (WCAG relative)
Temperaturewarm
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#338117 #651781
analogous
#688117 #338117 #178130
triadic
#338117 #173381 #811733
tetradic
#338117 #176881 #651781 #813017
square
#338117 #176881 #651781 #813017
split-complementary
#338117 #301781 #811768
monochromatic
#0A1A05 #1E4D0E #338117 #48B520 #62DB37

Accessibility & contrast

On white

4.89
#338117 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.29
#338117 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #338117
4.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##338117#FFFFFF#000000##FFFFFF
##3381171.004.894.294.89
#FFFFFF4.891.0021.001.00
#0000004.2921.001.0021.00
##FFFFFF4.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#857500
Deuteranopia (green-blind)
#7B6E24
Tritanopia (blue-blind)
#2A7C6E
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #338117;
/* rgb */ color: rgb(51, 129, 23);
/* oklch */ color: oklch(53.4% 0.157 139.2);
Tailwind
colors: {
  custom: {
    50: '#75a65e',
    500: '#338117',
    950: '#000000',
  },
}
SCSS
$custom: #338117;
$custom-light: #75a65e;
$custom-dark: #000000;
JSON
{
  "hex": "#338117",
  "rgb": {
    "r": 51,
    "g": 129,
    "b": 23
  },
  "hsl": {
    "h": 104.151,
    "s": 69.737,
    "l": 29.804
  },
  "oklch": {
    "l": 0.53389,
    "c": 0.15662,
    "h": 139.2
  },
  "luminance": 0.16466
}

Semantic roles & 50–950 ramp

primary
#338117
secondary
#963EB5
accent
#3BEDBE
background
#F7FAF5
surface
#EDF4E9
border
#C8CEC5
text
#090F05
muted
#7B7F79

Preview Lab

Preview with #338117

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

Preview Lab → · Contrast checker → · Palette generator →

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