#338F25#338F25

#338F25 is a mid, vivid green. Relative luminance 0.205; OKLCH L 57.4% C 0.166 H 141.2°. Best body text is #000000 at 5.10:1 contrast (WCAG AA passes).

Color values

HEX#338F25
RGBrgb(51, 143, 37)
HSLhsl(112, 59%, 35%)
HSVhsv(112, 74%, 56%)
CMYKcmyk(64.3%, 0%, 74.1%, 43.9%)
CIE-LABlab(52.38, -47.28, 45.82)
CIE-LCHlch(52.38, 65.84, 135.90°)
OKLaboklab(57.38% -0.1292 0.1038)
OKLCHoklch(57.38% 0.166 141.2)
XYZxyz(11.5210, 20.4812, 5.0960)
Luminance0.2048 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#338F25 #81258F
analogous
#688F25 #338F25 #258F4C
triadic
#338F25 #25338F #8F2533
tetradic
#338F25 #25688F #81258F #8F4C25
square
#338F25 #25688F #81258F #8F4C25
split-complementary
#338F25 #4C258F #8F2568
monochromatic
#102E0C #225E18 #338F25 #44C032 #6AD45A

Accessibility & contrast

On white

4.12
#338F25 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.10
#338F25 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #338F25
5.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##338F25#FFFFFF#000000##000000
##338F251.004.125.105.10
#FFFFFF4.121.0021.0021.00
#0000005.1021.001.001.00
##0000005.1021.001.001.00

Color blindness preview

Protanopia (red-blind)
#938212
Deuteranopia (green-blind)
#887A30
Tritanopia (blue-blind)
#238A7A
Achromatopsia (no color)
#7D7D7D

Design tokens & code

CSS
--color: #338f25;
/* rgb */ color: rgb(51, 143, 37);
/* oklch */ color: oklch(57.4% 0.166 141.2);
Tailwind
colors: {
  custom: {
    50: '#77b167',
    500: '#338f25',
    950: '#000000',
  },
}
SCSS
$custom: #338f25;
$custom-light: #77b167;
$custom-dark: #000000;
JSON
{
  "hex": "#338f25",
  "rgb": {
    "r": 51,
    "g": 143,
    "b": 37
  },
  "hsl": {
    "h": 112.075,
    "s": 58.889,
    "l": 35.294
  },
  "oklch": {
    "l": 0.57384,
    "c": 0.1657,
    "h": 141.2
  },
  "luminance": 0.20482
}

Semantic roles & 50–950 ramp

primary
#338F25
secondary
#AC57B9
accent
#46E2CD
background
#F7FBF6
surface
#EEF6EB
border
#C9D0C6
text
#0A1106
muted
#7C807A

Preview Lab

Preview with #338F25

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

Preview Lab → · Contrast checker → · Palette generator →

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