#338C1C#338C1C

#338C1C is a mid, vivid green. Relative luminance 0.195; OKLCH L 56.5% C 0.167 H 140.2°. Best body text is #000000 at 4.91:1 contrast (WCAG AA passes).

Color values

HEX#338C1C
RGBrgb(51, 140, 28)
HSLhsl(108, 67%, 33%)
HSVhsv(108, 80%, 55%)
CMYKcmyk(63.6%, 0%, 80%, 45.1%)
CIE-LABlab(51.32, -46.85, 47.99)
CIE-LCHlch(51.32, 67.06, 134.31°)
OKLaboklab(56.49% -0.1285 0.107)
OKLCHoklch(56.49% 0.167 140.2)
XYZxyz(10.9524, 19.5428, 4.2933)
Luminance0.1954 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#338C1C #751C8C
analogous
#6B8C1C #338C1C #1C8C3D
triadic
#338C1C #1C338C #8C1C33
tetradic
#338C1C #1C6B8C #751C8C #8C3D1C
square
#338C1C #1C6B8C #751C8C #8C3D1C
split-complementary
#338C1C #3D1C8C #8C1C6B
monochromatic
#0E2608 #205912 #338C1C #46BF26 #66DA48

Accessibility & contrast

On white

4.28
#338C1C on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.91
#338C1C on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #338C1C
4.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##338C1C#FFFFFF#000000##000000
##338C1C1.004.284.914.91
#FFFFFF4.281.0021.0021.00
#0000004.9121.001.001.00
##0000004.9121.001.001.00

Color blindness preview

Protanopia (red-blind)
#907F00
Deuteranopia (green-blind)
#857829
Tritanopia (blue-blind)
#268777
Achromatopsia (no color)
#7A7A7A

Design tokens & code

CSS
--color: #338c1c;
/* rgb */ color: rgb(51, 140, 28);
/* oklch */ color: oklch(56.5% 0.167 140.2);
Tailwind
colors: {
  custom: {
    50: '#77ae62',
    500: '#338c1c',
    950: '#000000',
  },
}
SCSS
$custom: #338c1c;
$custom-light: #77ae62;
$custom-dark: #000000;
JSON
{
  "hex": "#338c1c",
  "rgb": {
    "r": 51,
    "g": 140,
    "b": 28
  },
  "hsl": {
    "h": 107.679,
    "s": 66.667,
    "l": 32.941
  },
  "oklch": {
    "l": 0.56489,
    "c": 0.16724,
    "h": 140.2
  },
  "luminance": 0.19544
}

Semantic roles & 50–950 ramp

primary
#338C1C
secondary
#A448BC
accent
#3EEAC6
background
#F7FAF6
surface
#EEF4EB
border
#C9CEC6
text
#0A1005
muted
#7C7F7A

Preview Lab

Preview with #338C1C

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

Preview Lab → · Contrast checker → · Palette generator →

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