#338C1D#338C1D

#338C1D is a mid, vivid green. Relative luminance 0.195; OKLCH L 56.5% C 0.167 H 140.3°. Best body text is #000000 at 4.91:1 contrast (WCAG AA passes).

Color values

HEX#338C1D
RGBrgb(51, 140, 29)
HSLhsl(108, 66%, 33%)
HSVhsv(108, 79%, 55%)
CMYKcmyk(63.6%, 0%, 79.3%, 45.1%)
CIE-LABlab(51.32, -46.78, 47.66)
CIE-LCHlch(51.32, 66.78, 134.46°)
OKLaboklab(56.5% -0.1283 0.1065)
OKLCHoklch(56.5% 0.167 140.3)
XYZxyz(10.9646, 19.5476, 4.3574)
Luminance0.1955 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#338C1D #761D8C
analogous
#6A8C1D #338C1D #1D8C3E
triadic
#338C1D #1D338C #8C1D33
tetradic
#338C1D #1D6A8C #761D8C #8C3E1D
square
#338C1D #1D6A8C #761D8C #8C3E1D
split-complementary
#338C1D #3E1D8C #8C1D6A
monochromatic
#0E2708 #215912 #338C1D #45BF28 #66D94A

Accessibility & contrast

On white

4.28
#338C1D on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.91
#338C1D on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #338C1D
4.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##338C1D#FFFFFF#000000##000000
##338C1D1.004.284.914.91
#FFFFFF4.281.0021.0021.00
#0000004.9121.001.001.00
##0000004.9121.001.001.00

Color blindness preview

Protanopia (red-blind)
#907F01
Deuteranopia (green-blind)
#85782A
Tritanopia (blue-blind)
#268777
Achromatopsia (no color)
#7A7A7A

Design tokens & code

CSS
--color: #338c1d;
/* rgb */ color: rgb(51, 140, 29);
/* oklch */ color: oklch(56.5% 0.167 140.3);
Tailwind
colors: {
  custom: {
    50: '#77ae62',
    500: '#338c1d',
    950: '#000000',
  },
}
SCSS
$custom: #338c1d;
$custom-light: #77ae62;
$custom-dark: #000000;
JSON
{
  "hex": "#338c1d",
  "rgb": {
    "r": 51,
    "g": 140,
    "b": 29
  },
  "hsl": {
    "h": 108.108,
    "s": 65.68,
    "l": 33.137
  },
  "oklch": {
    "l": 0.56495,
    "c": 0.16672,
    "h": 140.3
  },
  "luminance": 0.19549
}

Semantic roles & 50–950 ramp

primary
#338C1D
secondary
#A549BC
accent
#3FE9C7
background
#F7FAF6
surface
#EEF4EB
border
#C9CEC6
text
#0A1006
muted
#7C7F7A

Preview Lab

Preview with #338C1D

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

Preview Lab → · Contrast checker → · Palette generator →

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