#338017#338017

#338017 is a mid, vivid green. Relative luminance 0.162; OKLCH L 53.1% C 0.155 H 139.2°. Best body text is #FFFFFF at 4.95:1 contrast (WCAG AA passes).

Color values

HEX#338017
RGBrgb(51, 128, 23)
HSLhsl(104, 70%, 30%)
HSVhsv(104, 82%, 50%)
CMYKcmyk(60.2%, 0%, 82%, 49.8%)
CIE-LABlab(47.24, -42.69, 45.74)
CIE-LCHlch(47.24, 62.57, 133.03°)
OKLaboklab(53.11% -0.1176 0.1016)
OKLCHoklch(53.11% 0.155 139.2)
XYZxyz(9.2387, 16.2032, 3.4511)
Luminance0.1620 (WCAG relative)
Temperaturewarm
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#338017 #641780
analogous
#688017 #338017 #178030
triadic
#338017 #173380 #801733
tetradic
#338017 #176880 #641780 #803017
square
#338017 #176880 #641780 #803017
split-complementary
#338017 #301780 #801768
monochromatic
#0A1A05 #1E4C0E #338017 #48B420 #62DB36

Accessibility & contrast

On white

4.95
#338017 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.24
#338017 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #338017
4.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##338017#FFFFFF#000000##FFFFFF
##3380171.004.954.244.95
#FFFFFF4.951.0021.001.00
#0000004.2421.001.0021.00
##FFFFFF4.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#847400
Deuteranopia (green-blind)
#7A6E23
Tritanopia (blue-blind)
#2A7B6D
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #338017;
/* rgb */ color: rgb(51, 128, 23);
/* oklch */ color: oklch(53.1% 0.155 139.2);
Tailwind
colors: {
  custom: {
    50: '#75a65e',
    500: '#338017',
    950: '#000000',
  },
}
SCSS
$custom: #338017;
$custom-light: #75a65e;
$custom-dark: #000000;
JSON
{
  "hex": "#338017",
  "rgb": {
    "r": 51,
    "g": 128,
    "b": 23
  },
  "hsl": {
    "h": 104,
    "s": 69.536,
    "l": 29.608
  },
  "oklch": {
    "l": 0.53109,
    "c": 0.15541,
    "h": 139.2
  },
  "luminance": 0.16204
}

Semantic roles & 50–950 ramp

primary
#338017
secondary
#953EB4
accent
#3BECBD
background
#F7FAF5
surface
#EDF4E9
border
#C8CEC5
text
#090F05
muted
#7B7F79

Preview Lab

Preview with #338017

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

Preview Lab → · Contrast checker → · Palette generator →

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