#338F1A#338F1A

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

Color values

HEX#338F1A
RGBrgb(51, 143, 26)
HSLhsl(107, 69%, 33%)
HSVhsv(107, 82%, 56%)
CMYKcmyk(64.3%, 0%, 81.8%, 43.9%)
CIE-LABlab(52.31, -48.05, 49.57)
CIE-LCHlch(52.31, 69.04, 134.11°)
OKLaboklab(57.31% -0.1319 0.11)
OKLCHoklch(57.31% 0.172 140.2)
XYZxyz(11.3736, 20.4222, 4.3196)
Luminance0.2042 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#338F1A #761A8F
analogous
#6E8F1A #338F1A #1A8F3B
triadic
#338F1A #1A338F #8F1A33
tetradic
#338F1A #1A6E8F #761A8F #8F3B1A
square
#338F1A #1A6E8F #761A8F #8F3B1A
split-complementary
#338F1A #3B1A8F #8F1A6E
monochromatic
#0E2707 #215B11 #338F1A #45C323 #66DD46

Accessibility & contrast

On white

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

On black

5.08
#338F1A on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #338F1A
5.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##338F1A#FFFFFF#000000##000000
##338F1A1.004.135.085.08
#FFFFFF4.131.0021.0021.00
#0000005.0821.001.001.00
##0000005.0821.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #338f1a;
/* rgb */ color: rgb(51, 143, 26);
/* oklch */ color: oklch(57.3% 0.172 140.2);
Tailwind
colors: {
  custom: {
    50: '#77b161',
    500: '#338f1a',
    950: '#000000',
  },
}
SCSS
$custom: #338f1a;
$custom-light: #77b161;
$custom-dark: #000000;
JSON
{
  "hex": "#338f1a",
  "rgb": {
    "r": 51,
    "g": 143,
    "b": 26
  },
  "hsl": {
    "h": 107.179,
    "s": 69.231,
    "l": 33.137
  },
  "oklch": {
    "l": 0.57309,
    "c": 0.17174,
    "h": 140.2
  },
  "luminance": 0.20423
}

Semantic roles & 50–950 ramp

primary
#338F1A
secondary
#A546BF
accent
#3CECC6
background
#F7FBF6
surface
#EEF6EB
border
#C9D0C6
text
#0A1105
muted
#7C807A

Preview Lab

Preview with #338F1A

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

Preview Lab → · Contrast checker → · Palette generator →

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