#338E1D#338E1D

#338E1D is a mid, vivid green. Relative luminance 0.201; OKLCH L 57.0% C 0.169 H 140.4°. Best body text is #000000 at 5.03:1 contrast (WCAG AA passes).

Color values

HEX#338E1D
RGBrgb(51, 142, 29)
HSLhsl(108, 66%, 34%)
HSVhsv(108, 80%, 56%)
CMYKcmyk(64.1%, 0%, 79.6%, 44.3%)
CIE-LABlab(51.99, -47.51, 48.31)
CIE-LCHlch(51.99, 67.75, 134.52°)
OKLaboklab(57.05% -0.1302 0.1078)
OKLCHoklch(57.05% 0.169 140.4)
XYZxyz(11.2595, 20.1374, 4.4557)
Luminance0.2014 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#338E1D #781D8E
analogous
#6B8E1D #338E1D #1D8E3F
triadic
#338E1D #1D338E #8E1D33
tetradic
#338E1D #1D6B8E #781D8E #8E3F1D
square
#338E1D #1D6B8E #781D8E #8E3F1D
split-complementary
#338E1D #3F1D8E #8E1D6B
monochromatic
#0E2808 #215B13 #338E1D #45C127 #67DA4B

Accessibility & contrast

On white

4.18
#338E1D on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.03
#338E1D on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #338E1D
5.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##338E1D#FFFFFF#000000##000000
##338E1D1.004.185.035.03
#FFFFFF4.181.0021.0021.00
#0000005.0321.001.001.00
##0000005.0321.001.001.00

Color blindness preview

Protanopia (red-blind)
#928100
Deuteranopia (green-blind)
#87792A
Tritanopia (blue-blind)
#258979
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #338e1d;
/* rgb */ color: rgb(51, 142, 29);
/* oklch */ color: oklch(57.0% 0.169 140.4);
Tailwind
colors: {
  custom: {
    50: '#77b063',
    500: '#338e1d',
    950: '#000000',
  },
}
SCSS
$custom: #338e1d;
$custom-light: #77b063;
$custom-dark: #000000;
JSON
{
  "hex": "#338e1d",
  "rgb": {
    "r": 51,
    "g": 142,
    "b": 29
  },
  "hsl": {
    "h": 108.319,
    "s": 66.082,
    "l": 33.529
  },
  "oklch": {
    "l": 0.5705,
    "c": 0.16909,
    "h": 140.4
  },
  "luminance": 0.20139
}

Semantic roles & 50–950 ramp

primary
#338E1D
secondary
#A64ABD
accent
#3FE9C8
background
#F7FAF6
surface
#EEF5EB
border
#C9CFC6
text
#0A1106
muted
#7C807A

Preview Lab

Preview with #338E1D

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

Preview Lab → · Contrast checker → · Palette generator →

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