#338E25#338E25

#338E25 is a mid, vivid green. Relative luminance 0.202; OKLCH L 57.1% C 0.164 H 141.2°. Best body text is #000000 at 5.04:1 contrast (WCAG AA passes).

Color values

HEX#338E25
RGBrgb(51, 142, 37)
HSLhsl(112, 59%, 35%)
HSVhsv(112, 74%, 56%)
CMYKcmyk(64.1%, 0%, 73.9%, 44.3%)
CIE-LABlab(52.04, -46.91, 45.48)
CIE-LCHlch(52.04, 65.34, 135.89°)
OKLaboklab(57.11% -0.1282 0.1031)
OKLCHoklch(57.11% 0.164 141.2)
XYZxyz(11.3716, 20.1823, 5.0462)
Luminance0.2018 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#338E25 #80258E
analogous
#678E25 #338E25 #258E4B
triadic
#338E25 #25338E #8E2533
tetradic
#338E25 #25678E #80258E #8E4B25
square
#338E25 #25678E #80258E #8E4B25
split-complementary
#338E25 #4B258E #8E2567
monochromatic
#102D0C #225D18 #338E25 #44BF32 #6AD45A

Accessibility & contrast

On white

4.17
#338E25 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.04
#338E25 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #338E25
5.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##338E25#FFFFFF#000000##000000
##338E251.004.175.045.04
#FFFFFF4.171.0021.0021.00
#0000005.0421.001.001.00
##0000005.0421.001.001.00

Color blindness preview

Protanopia (red-blind)
#928113
Deuteranopia (green-blind)
#877930
Tritanopia (blue-blind)
#248979
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #338e25;
/* rgb */ color: rgb(51, 142, 37);
/* oklch */ color: oklch(57.1% 0.164 141.2);
Tailwind
colors: {
  custom: {
    50: '#77b066',
    500: '#338e25',
    950: '#000000',
  },
}
SCSS
$custom: #338e25;
$custom-light: #77b066;
$custom-dark: #000000;
JSON
{
  "hex": "#338e25",
  "rgb": {
    "r": 51,
    "g": 142,
    "b": 37
  },
  "hsl": {
    "h": 112,
    "s": 58.659,
    "l": 35.098
  },
  "oklch": {
    "l": 0.57108,
    "c": 0.16449,
    "h": 141.2
  },
  "luminance": 0.20183
}

Semantic roles & 50–950 ramp

primary
#338E25
secondary
#AB56B9
accent
#46E2CD
background
#F7FAF6
surface
#EEF5EB
border
#C9CFC6
text
#0A1006
muted
#7C7F7A

Preview Lab

Preview with #338E25

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

Preview Lab → · Contrast checker → · Palette generator →

#338E25 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva