#338E1B#338E1B

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

Color values

HEX#338E1B
RGBrgb(51, 142, 27)
HSLhsl(107, 68%, 33%)
HSVhsv(107, 81%, 56%)
CMYKcmyk(64.1%, 0%, 81%, 44.3%)
CIE-LABlab(51.98, -47.63, 48.94)
CIE-LCHlch(51.98, 68.30, 134.22°)
OKLaboklab(57.04% -0.1307 0.1089)
OKLCHoklch(57.04% 0.17 140.2)
XYZxyz(11.2355, 20.1279, 4.3297)
Luminance0.2013 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#338E1B #761B8E
analogous
#6C8E1B #338E1B #1B8E3C
triadic
#338E1B #1B338E #8E1B33
tetradic
#338E1B #1B6C8E #761B8E #8E3C1B
square
#338E1B #1B6C8E #761B8E #8E3C1B
split-complementary
#338E1B #3C1B8E #8E1B6C
monochromatic
#0E2707 #215B11 #338E1B #45C125 #66DC47

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##338E1B#FFFFFF#000000##000000
##338E1B1.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)
#928000
Deuteranopia (green-blind)
#877929
Tritanopia (blue-blind)
#258979
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #338e1b;
/* rgb */ color: rgb(51, 142, 27);
/* oklch */ color: oklch(57.0% 0.170 140.2);
Tailwind
colors: {
  custom: {
    50: '#77b062',
    500: '#338e1b',
    950: '#000000',
  },
}
SCSS
$custom: #338e1b;
$custom-light: #77b062;
$custom-dark: #000000;
JSON
{
  "hex": "#338e1b",
  "rgb": {
    "r": 51,
    "g": 142,
    "b": 27
  },
  "hsl": {
    "h": 107.478,
    "s": 68.047,
    "l": 33.137
  },
  "oklch": {
    "l": 0.57038,
    "c": 0.1701,
    "h": 140.2
  },
  "luminance": 0.20129
}

Semantic roles & 50–950 ramp

primary
#338E1B
secondary
#A547BE
accent
#3DEBC7
background
#F7FAF6
surface
#EEF5EB
border
#C9CFC6
text
#0A1105
muted
#7C807A

Preview Lab

Preview with #338E1B

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

Preview Lab → · Contrast checker → · Palette generator →

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