#338A1C#338A1C

#338A1C is a mid, vivid green. Relative luminance 0.190; OKLCH L 55.9% C 0.165 H 140.1°. Best body text is #000000 at 4.79:1 contrast (WCAG AA passes).

Color values

HEX#338A1C
RGBrgb(51, 138, 28)
HSLhsl(107, 66%, 33%)
HSVhsv(107, 80%, 54%)
CMYKcmyk(63%, 0%, 79.7%, 45.9%)
CIE-LABlab(50.64, -46.11, 47.35)
CIE-LCHlch(50.64, 66.09, 134.25°)
OKLaboklab(55.93% -0.1265 0.1057)
OKLCHoklch(55.93% 0.165 140.1)
XYZxyz(10.6628, 18.9636, 4.1968)
Luminance0.1897 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#338A1C #731C8A
analogous
#6A8A1C #338A1C #1C8A3C
triadic
#338A1C #1C338A #8A1C33
tetradic
#338A1C #1C6A8A #731C8A #8A3C1C
square
#338A1C #1C6A8A #731C8A #8A3C1C
split-complementary
#338A1C #3C1C8A #8A1C6A
monochromatic
#0D2407 #205712 #338A1C #46BD26 #65DA47

Accessibility & contrast

On white

4.38
#338A1C on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.79
#338A1C on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #338A1C
4.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##338A1C#FFFFFF#000000##000000
##338A1C1.004.384.794.79
#FFFFFF4.381.0021.0021.00
#0000004.7921.001.001.00
##0000004.7921.001.001.00

Color blindness preview

Protanopia (red-blind)
#8E7D00
Deuteranopia (green-blind)
#837629
Tritanopia (blue-blind)
#278575
Achromatopsia (no color)
#797979

Design tokens & code

CSS
--color: #338a1c;
/* rgb */ color: rgb(51, 138, 28);
/* oklch */ color: oklch(55.9% 0.165 140.1);
Tailwind
colors: {
  custom: {
    50: '#76ad61',
    500: '#338a1c',
    950: '#000000',
  },
}
SCSS
$custom: #338a1c;
$custom-light: #76ad61;
$custom-dark: #000000;
JSON
{
  "hex": "#338a1c",
  "rgb": {
    "r": 51,
    "g": 138,
    "b": 28
  },
  "hsl": {
    "h": 107.455,
    "s": 66.265,
    "l": 32.549
  },
  "oklch": {
    "l": 0.55933,
    "c": 0.16487,
    "h": 140.1
  },
  "luminance": 0.18965
}

Semantic roles & 50–950 ramp

primary
#338A1C
secondary
#A346BB
accent
#3FE9C6
background
#F7FAF6
surface
#EEF4EB
border
#C9CEC6
text
#0A1005
muted
#7C7F7A

Preview Lab

Preview with #338A1C

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

Preview Lab → · Contrast checker → · Palette generator →

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