#338417#338417

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

Color values

HEX#338417
RGBrgb(51, 132, 23)
HSLhsl(105, 70%, 30%)
HSVhsv(105, 83%, 52%)
CMYKcmyk(61.4%, 0%, 82.6%, 48.2%)
CIE-LABlab(48.60, -44.20, 47.01)
CIE-LCHlch(48.60, 64.53, 133.24°)
OKLaboklab(54.23% -0.1217 0.1042)
OKLCHoklch(54.23% 0.16 139.4)
XYZxyz(9.7707, 17.2673, 3.6285)
Luminance0.1727 (WCAG relative)
Temperaturewarm
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#338417 #681784
analogous
#698417 #338417 #178431
triadic
#338417 #173384 #841733
tetradic
#338417 #176984 #681784 #843117
square
#338417 #176984 #681784 #843117
split-complementary
#338417 #311784 #841769
monochromatic
#0B1C05 #1F500E #338417 #47B820 #63DC39

Accessibility & contrast

On white

4.72
#338417 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #338417
4.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##338417#FFFFFF#000000##FFFFFF
##3384171.004.724.454.72
#FFFFFF4.721.0021.001.00
#0000004.4521.001.0021.00
##FFFFFF4.721.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #338417;
/* rgb */ color: rgb(51, 132, 23);
/* oklch */ color: oklch(54.2% 0.160 139.4);
Tailwind
colors: {
  custom: {
    50: '#75a95e',
    500: '#338417',
    950: '#000000',
  },
}
SCSS
$custom: #338417;
$custom-light: #75a95e;
$custom-dark: #000000;
JSON
{
  "hex": "#338417",
  "rgb": {
    "r": 51,
    "g": 132,
    "b": 23
  },
  "hsl": {
    "h": 104.587,
    "s": 70.323,
    "l": 30.392
  },
  "oklch": {
    "l": 0.54229,
    "c": 0.16022,
    "h": 139.4
  },
  "luminance": 0.17268
}

Semantic roles & 50–950 ramp

primary
#338417
secondary
#993FB8
accent
#3BEDBF
background
#F7FAF5
surface
#EEF4EA
border
#C9CEC6
text
#091005
muted
#7B7F79

Preview Lab

Preview with #338417

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

Preview Lab → · Contrast checker → · Palette generator →

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