#338B1C#338B1C

#338B1C is a mid, vivid green. Relative luminance 0.193; OKLCH L 56.2% C 0.166 H 140.2°. Best body text is #000000 at 4.85:1 contrast (WCAG AA passes).

Color values

HEX#338B1C
RGBrgb(51, 139, 28)
HSLhsl(108, 66%, 33%)
HSVhsv(108, 80%, 55%)
CMYKcmyk(63.3%, 0%, 79.9%, 45.5%)
CIE-LABlab(50.98, -46.48, 47.67)
CIE-LCHlch(50.98, 66.58, 134.28°)
OKLaboklab(56.21% -0.1275 0.1064)
OKLCHoklch(56.21% 0.166 140.2)
XYZxyz(10.8070, 19.2519, 4.2449)
Luminance0.1925 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#338B1C #741C8B
analogous
#6A8B1C #338B1C #1C8B3D
triadic
#338B1C #1C338B #8B1C33
tetradic
#338B1C #1C6A8B #741C8B #8B3D1C
square
#338B1C #1C6A8B #741C8B #8B3D1C
split-complementary
#338B1C #3D1C8B #8B1C6A
monochromatic
#0E2507 #205812 #338B1C #46BE26 #66DA47

Accessibility & contrast

On white

4.33
#338B1C on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.85
#338B1C on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #338B1C
4.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##338B1C#FFFFFF#000000##000000
##338B1C1.004.334.854.85
#FFFFFF4.331.0021.0021.00
#0000004.8521.001.001.00
##0000004.8521.001.001.00

Color blindness preview

Protanopia (red-blind)
#8F7E00
Deuteranopia (green-blind)
#847729
Tritanopia (blue-blind)
#268676
Achromatopsia (no color)
#797979

Design tokens & code

CSS
--color: #338b1c;
/* rgb */ color: rgb(51, 139, 28);
/* oklch */ color: oklch(56.2% 0.166 140.2);
Tailwind
colors: {
  custom: {
    50: '#77ae62',
    500: '#338b1c',
    950: '#000000',
  },
}
SCSS
$custom: #338b1c;
$custom-light: #77ae62;
$custom-dark: #000000;
JSON
{
  "hex": "#338b1c",
  "rgb": {
    "r": 51,
    "g": 139,
    "b": 28
  },
  "hsl": {
    "h": 107.568,
    "s": 66.467,
    "l": 32.745
  },
  "oklch": {
    "l": 0.56211,
    "c": 0.16606,
    "h": 140.2
  },
  "luminance": 0.19253
}

Semantic roles & 50–950 ramp

primary
#338B1C
secondary
#A447BC
accent
#3EE9C6
background
#F7FAF6
surface
#EEF4EB
border
#C9CEC6
text
#0A1005
muted
#7C7F7A

Preview Lab

Preview with #338B1C

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

Preview Lab → · Contrast checker → · Palette generator →

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