#338D23#338D23

#338D23 is a mid, vivid green. Relative luminance 0.199; OKLCH L 56.8% C 0.165 H 140.9°. Best body text is #000000 at 4.98:1 contrast (WCAG AA passes).

Color values

HEX#338D23
RGBrgb(51, 141, 35)
HSLhsl(111, 60%, 35%)
HSVhsv(111, 75%, 55%)
CMYKcmyk(63.8%, 0%, 75.2%, 44.7%)
CIE-LABlab(51.69, -46.71, 45.89)
CIE-LCHlch(51.69, 65.48, 135.51°)
OKLaboklab(56.82% -0.1277 0.1037)
OKLCHoklch(56.82% 0.165 140.9)
XYZxyz(11.1929, 19.8738, 4.8360)
Luminance0.1988 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#338D23 #7D238D
analogous
#688D23 #338D23 #238D48
triadic
#338D23 #23338D #8D2333
tetradic
#338D23 #23688D #7D238D #8D4823
square
#338D23 #23688D #7D238D #8D4823
split-complementary
#338D23 #48238D #8D2368
monochromatic
#102B0B #215C17 #338D23 #45BE2F #69D555

Accessibility & contrast

On white

4.22
#338D23 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.98
#338D23 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #338D23
4.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##338D23#FFFFFF#000000##000000
##338D231.004.224.984.98
#FFFFFF4.221.0021.0021.00
#0000004.9821.001.001.00
##0000004.9821.001.001.00

Color blindness preview

Protanopia (red-blind)
#91800F
Deuteranopia (green-blind)
#86782E
Tritanopia (blue-blind)
#258878
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #338d23;
/* rgb */ color: rgb(51, 141, 35);
/* oklch */ color: oklch(56.8% 0.165 140.9);
Tailwind
colors: {
  custom: {
    50: '#77af65',
    500: '#338d23',
    950: '#000000',
  },
}
SCSS
$custom: #338d23;
$custom-light: #77af65;
$custom-dark: #000000;
JSON
{
  "hex": "#338d23",
  "rgb": {
    "r": 51,
    "g": 141,
    "b": 35
  },
  "hsl": {
    "h": 110.943,
    "s": 60.227,
    "l": 34.51
  },
  "oklch": {
    "l": 0.56815,
    "c": 0.16451,
    "h": 140.9
  },
  "luminance": 0.19875
}

Semantic roles & 50–950 ramp

primary
#338D23
secondary
#AA53B9
accent
#44E3CB
background
#F7FAF6
surface
#EEF5EB
border
#C9CFC6
text
#0A1006
muted
#7C7F7A

Preview Lab

Preview with #338D23

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

Preview Lab → · Contrast checker → · Palette generator →

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