#338F1B#338F1B

#338F1B is a mid, vivid green. Relative luminance 0.204; OKLCH L 57.3% C 0.171 H 140.2°. Best body text is #000000 at 5.09:1 contrast (WCAG AA passes).

Color values

HEX#338F1B
RGBrgb(51, 143, 27)
HSLhsl(108, 68%, 33%)
HSVhsv(108, 81%, 56%)
CMYKcmyk(64.3%, 0%, 81.1%, 43.9%)
CIE-LABlab(52.32, -47.99, 49.26)
CIE-LCHlch(52.32, 68.78, 134.25°)
OKLaboklab(57.32% -0.1317 0.1095)
OKLCHoklch(57.32% 0.171 140.2)
XYZxyz(11.3850, 20.4268, 4.3795)
Luminance0.2043 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#338F1B #771B8F
analogous
#6D8F1B #338F1B #1B8F3D
triadic
#338F1B #1B338F #8F1B33
tetradic
#338F1B #1B6D8F #771B8F #8F3D1B
square
#338F1B #1B6D8F #771B8F #8F3D1B
split-complementary
#338F1B #3D1B8F #8F1B6D
monochromatic
#0E2808 #215C11 #338F1B #45C225 #67DC48

Accessibility & contrast

On white

4.13
#338F1B on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.09
#338F1B on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #338F1B
5.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##338F1B#FFFFFF#000000##000000
##338F1B1.004.135.095.09
#FFFFFF4.131.0021.0021.00
#0000005.0921.001.001.00
##0000005.0921.001.001.00

Color blindness preview

Protanopia (red-blind)
#938100
Deuteranopia (green-blind)
#887A29
Tritanopia (blue-blind)
#258A7A
Achromatopsia (no color)
#7D7D7D

Design tokens & code

CSS
--color: #338f1b;
/* rgb */ color: rgb(51, 143, 27);
/* oklch */ color: oklch(57.3% 0.171 140.2);
Tailwind
colors: {
  custom: {
    50: '#77b162',
    500: '#338f1b',
    950: '#000000',
  },
}
SCSS
$custom: #338f1b;
$custom-light: #77b162;
$custom-dark: #000000;
JSON
{
  "hex": "#338f1b",
  "rgb": {
    "r": 51,
    "g": 143,
    "b": 27
  },
  "hsl": {
    "h": 107.586,
    "s": 68.235,
    "l": 33.333
  },
  "oklch": {
    "l": 0.57315,
    "c": 0.17127,
    "h": 140.2
  },
  "luminance": 0.20428
}

Semantic roles & 50–950 ramp

primary
#338F1B
secondary
#A648BE
accent
#3DEBC7
background
#F7FBF6
surface
#EEF6EB
border
#C9D0C6
text
#0A1105
muted
#7C807A

Preview Lab

Preview with #338F1B

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

Preview Lab → · Contrast checker → · Palette generator →

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