#338126#338126

#338126 is a mid, vivid green. Relative luminance 0.165; OKLCH L 53.5% C 0.147 H 141.0°. Best body text is #FFFFFF at 4.87:1 contrast (WCAG AA passes).

Color values

HEX#338126
RGBrgb(51, 129, 38)
HSLhsl(111, 54%, 33%)
HSVhsv(111, 71%, 51%)
CMYKcmyk(60.5%, 0%, 70.5%, 49.4%)
CIE-LABlab(47.68, -41.91, 40.53)
CIE-LCHlch(47.68, 58.30, 135.96°)
OKLaboklab(53.5% -0.1146 0.0928)
OKLCHoklch(53.5% 0.147 141)
XYZxyz(9.5649, 16.5434, 4.5225)
Luminance0.1654 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#338126 #742681
analogous
#608126 #338126 #268147
triadic
#338126 #263381 #812633
tetradic
#338126 #266081 #742681 #814726
square
#338126 #266081 #742681 #814726
split-complementary
#338126 #472681 #812660
monochromatic
#0E220A #205218 #338126 #46B034 #66CD55

Accessibility & contrast

On white

4.87
#338126 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.31
#338126 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #338126
4.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##338126#FFFFFF#000000##FFFFFF
##3381261.004.874.314.87
#FFFFFF4.871.0021.001.00
#0000004.3121.001.0021.00
##FFFFFF4.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#847519
Deuteranopia (green-blind)
#7B6F2E
Tritanopia (blue-blind)
#287D6F
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #338126;
/* rgb */ color: rgb(51, 129, 38);
/* oklch */ color: oklch(53.5% 0.147 141.0);
Tailwind
colors: {
  custom: {
    50: '#74a665',
    500: '#338126',
    950: '#000000',
  },
}
SCSS
$custom: #338126;
$custom-light: #74a665;
$custom-dark: #000000;
JSON
{
  "hex": "#338126",
  "rgb": {
    "r": 51,
    "g": 129,
    "b": 38
  },
  "hsl": {
    "h": 111.429,
    "s": 54.491,
    "l": 32.745
  },
  "oklch": {
    "l": 0.53504,
    "c": 0.14749,
    "h": 141
  },
  "luminance": 0.16544
}

Semantic roles & 50–950 ramp

primary
#338126
secondary
#A451B1
accent
#4ADEC9
background
#F7FAF6
surface
#EDF4EB
border
#C8CEC6
text
#090F06
muted
#7B7F7A

Preview Lab

Preview with #338126

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

Preview Lab → · Contrast checker → · Palette generator →

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