#338738#338738

#338738 is a mid, vivid green. Relative luminance 0.183; OKLCH L 55.4% C 0.141 H 144.4°. Best body text is #000000 at 4.66:1 contrast (WCAG AA passes).

Color values

HEX#338738
RGBrgb(51, 135, 56)
HSLhsl(124, 45%, 36%)
HSVhsv(124, 62%, 53%)
CMYKcmyk(62.2%, 0%, 58.5%, 47.1%)
CIE-LABlab(49.88, -42.21, 34.58)
CIE-LCHlch(49.88, 54.57, 140.67°)
OKLaboklab(55.38% -0.1144 0.0821)
OKLCHoklch(55.38% 0.141 144.4)
XYZxyz(10.7424, 18.3163, 6.7099)
Luminance0.1832 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#338738 #873382
analogous
#588733 #338738 #338762
triadic
#338738 #383387 #873833
tetradic
#338738 #335887 #873382 #876233
square
#338738 #335887 #873382 #876233
split-complementary
#338738 #623387 #873358
monochromatic
#112E13 #225B26 #338738 #44B34A #6DC872

Accessibility & contrast

On white

4.50
#338738 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.66
#338738 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #338738
4.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##338738#FFFFFF#000000##000000
##3387381.004.504.664.66
#FFFFFF4.501.0021.0021.00
#0000004.6621.001.001.00
##0000004.6621.001.001.00

Color blindness preview

Protanopia (red-blind)
#897B30
Deuteranopia (green-blind)
#7F743E
Tritanopia (blue-blind)
#228376
Achromatopsia (no color)
#777777

Design tokens & code

CSS
--color: #338738;
/* rgb */ color: rgb(51, 135, 56);
/* oklch */ color: oklch(55.4% 0.141 144.4);
Tailwind
colors: {
  custom: {
    50: '#74ab71',
    500: '#338738',
    950: '#000000',
  },
}
SCSS
$custom: #338738;
$custom-light: #74ab71;
$custom-dark: #000000;
JSON
{
  "hex": "#338738",
  "rgb": {
    "r": 51,
    "g": 135,
    "b": 56
  },
  "hsl": {
    "h": 123.571,
    "s": 45.161,
    "l": 36.471
  },
  "oklch": {
    "l": 0.55376,
    "c": 0.14081,
    "h": 144.4
  },
  "luminance": 0.18317
}

Semantic roles & 50–950 ramp

primary
#338738
secondary
#B066AB
accent
#53CDD5
background
#F7FAF6
surface
#EDF4EC
border
#C8CEC7
text
#091008
muted
#7B7F7B

Preview Lab

Preview with #338738

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

Preview Lab → · Contrast checker → · Palette generator →

#338738 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva