#338D1B#338D1B

#338D1B is a mid, vivid green. Relative luminance 0.198; OKLCH L 56.8% C 0.169 H 140.2°. Best body text is #000000 at 4.97:1 contrast (WCAG AA passes).

Color values

HEX#338D1B
RGBrgb(51, 141, 27)
HSLhsl(107, 68%, 33%)
HSVhsv(107, 81%, 55%)
CMYKcmyk(63.8%, 0%, 80.9%, 44.7%)
CIE-LABlab(51.65, -47.27, 48.63)
CIE-LCHlch(51.65, 67.82, 134.19°)
OKLaboklab(56.76% -0.1297 0.1082)
OKLCHoklch(56.76% 0.169 140.2)
XYZxyz(11.0874, 19.8316, 4.2803)
Luminance0.1983 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#338D1B #751B8D
analogous
#6C8D1B #338D1B #1B8D3C
triadic
#338D1B #1B338D #8D1B33
tetradic
#338D1B #1B6C8D #751B8D #8D3C1B
square
#338D1B #1B6C8D #751B8D #8D3C1B
split-complementary
#338D1B #3C1B8D #8D1B6C
monochromatic
#0E2607 #205A11 #338D1B #46C025 #66DC47

Accessibility & contrast

On white

4.23
#338D1B on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.97
#338D1B on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #338D1B
4.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##338D1B#FFFFFF#000000##000000
##338D1B1.004.234.974.97
#FFFFFF4.231.0021.0021.00
#0000004.9721.001.001.00
##0000004.9721.001.001.00

Color blindness preview

Protanopia (red-blind)
#918000
Deuteranopia (green-blind)
#867828
Tritanopia (blue-blind)
#268878
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #338d1b;
/* rgb */ color: rgb(51, 141, 27);
/* oklch */ color: oklch(56.8% 0.169 140.2);
Tailwind
colors: {
  custom: {
    50: '#77af61',
    500: '#338d1b',
    950: '#000000',
  },
}
SCSS
$custom: #338d1b;
$custom-light: #77af61;
$custom-dark: #000000;
JSON
{
  "hex": "#338d1b",
  "rgb": {
    "r": 51,
    "g": 141,
    "b": 27
  },
  "hsl": {
    "h": 107.368,
    "s": 67.857,
    "l": 32.941
  },
  "oklch": {
    "l": 0.5676,
    "c": 0.16893,
    "h": 140.2
  },
  "luminance": 0.19833
}

Semantic roles & 50–950 ramp

primary
#338D1B
secondary
#A446BD
accent
#3DEBC6
background
#F7FAF6
surface
#EEF5EB
border
#C9CFC6
text
#0A1005
muted
#7C7F7A

Preview Lab

Preview with #338D1B

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

Preview Lab → · Contrast checker → · Palette generator →

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