#338F3D#338F3D

#338F3D is a mid, vivid green. Relative luminance 0.207; OKLCH L 57.6% C 0.147 H 145.2°. Best body text is #000000 at 5.14:1 contrast (WCAG AA passes).

Color values

HEX#338F3D
RGBrgb(51, 143, 61)
HSLhsl(127, 47%, 38%)
HSVhsv(127, 64%, 56%)
CMYKcmyk(64.3%, 0%, 57.3%, 43.9%)
CIE-LABlab(52.60, -44.66, 35.31)
CIE-LCHlch(52.60, 56.94, 141.67°)
OKLaboklab(57.64% -0.1209 0.084)
OKLCHoklch(57.64% 0.147 145.2)
XYZxyz(12.0292, 20.6845, 7.7725)
Luminance0.2069 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#338F3D #8F3385
analogous
#578F33 #338F3D #338F6B
triadic
#338F3D #3D338F #8F3D33
tetradic
#338F3D #33578F #8F3385 #8F6B33
square
#338F3D #33578F #8F3385 #8F6B33
split-complementary
#338F3D #6B338F #8F3357
monochromatic
#133517 #23622A #338F3D #43BC50 #70CC7A

Accessibility & contrast

On white

4.09
#338F3D on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.14
#338F3D on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #338F3D
5.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##338F3D#FFFFFF#000000##000000
##338F3D1.004.095.145.14
#FFFFFF4.091.0021.0021.00
#0000005.1421.001.001.00
##0000005.1421.001.001.00

Color blindness preview

Protanopia (red-blind)
#918235
Deuteranopia (green-blind)
#867A43
Tritanopia (blue-blind)
#1D8B7D
Achromatopsia (no color)
#7E7E7E

Design tokens & code

CSS
--color: #338f3d;
/* rgb */ color: rgb(51, 143, 61);
/* oklch */ color: oklch(57.6% 0.147 145.2);
Tailwind
colors: {
  custom: {
    50: '#76b175',
    500: '#338f3d',
    950: '#000000',
  },
}
SCSS
$custom: #338f3d;
$custom-light: #76b175;
$custom-dark: #000000;
JSON
{
  "hex": "#338f3d",
  "rgb": {
    "r": 51,
    "g": 143,
    "b": 61
  },
  "hsl": {
    "h": 126.522,
    "s": 47.423,
    "l": 38.039
  },
  "oklch": {
    "l": 0.57643,
    "c": 0.14722,
    "h": 145.2
  },
  "luminance": 0.20686
}

Semantic roles & 50–950 ramp

primary
#338F3D
secondary
#B46AAC
accent
#51C8D7
background
#F7FBF7
surface
#EEF6ED
border
#C9D0C8
text
#091108
muted
#7B807B

Preview Lab

Preview with #338F3D

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

Preview Lab → · Contrast checker → · Palette generator →

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