#338127#338127

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

Color values

HEX#338127
RGBrgb(51, 129, 39)
HSLhsl(112, 54%, 33%)
HSVhsv(112, 70%, 51%)
CMYKcmyk(60.5%, 0%, 69.8%, 49.4%)
CIE-LABlab(47.69, -41.82, 40.11)
CIE-LCHlch(47.69, 57.94, 136.20°)
OKLaboklab(53.51% -0.1143 0.0921)
OKLCHoklch(53.51% 0.147 141.1)
XYZxyz(9.5812, 16.5499, 4.6086)
Luminance0.1655 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#338127 #752781
analogous
#608127 #338127 #278148
triadic
#338127 #273381 #812733
tetradic
#338127 #276081 #752781 #814827
square
#338127 #276081 #752781 #814827
split-complementary
#338127 #482781 #812760
monochromatic
#0E230B #205219 #338127 #46B035 #66CC56

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##338127#FFFFFF#000000##FFFFFF
##3381271.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)
#84751B
Deuteranopia (green-blind)
#7B6F2F
Tritanopia (blue-blind)
#287D6F
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #338127;
/* rgb */ color: rgb(51, 129, 39);
/* oklch */ color: oklch(53.5% 0.147 141.1);
Tailwind
colors: {
  custom: {
    50: '#74a666',
    500: '#338127',
    950: '#000000',
  },
}
SCSS
$custom: #338127;
$custom-light: #74a666;
$custom-dark: #000000;
JSON
{
  "hex": "#338127",
  "rgb": {
    "r": 51,
    "g": 129,
    "b": 39
  },
  "hsl": {
    "h": 112,
    "s": 53.571,
    "l": 32.941
  },
  "oklch": {
    "l": 0.53514,
    "c": 0.14677,
    "h": 141.1
  },
  "luminance": 0.16551
}

Semantic roles & 50–950 ramp

primary
#338127
secondary
#A453B1
accent
#4BDDC9
background
#F7FAF6
surface
#EDF4EB
border
#C8CEC6
text
#090F06
muted
#7B7F7A

Preview Lab

Preview with #338127

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

Preview Lab → · Contrast checker → · Palette generator →

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