#338730#338730

#338730 is a mid, vivid green. Relative luminance 0.182; OKLCH L 55.3% C 0.148 H 142.7°. Best body text is #000000 at 4.65:1 contrast (WCAG AA passes).

Color values

HEX#338730
RGBrgb(51, 135, 48)
HSLhsl(118, 48%, 36%)
HSVhsv(118, 64%, 53%)
CMYKcmyk(62.2%, 0%, 64.4%, 47.1%)
CIE-LABlab(49.79, -43.20, 38.35)
CIE-LCHlch(49.79, 57.76, 138.40°)
OKLaboklab(55.28% -0.1175 0.0894)
OKLCHoklch(55.28% 0.148 142.7)
XYZxyz(10.5621, 18.2442, 5.7606)
Luminance0.1825 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#338730 #843087
analogous
#5E8730 #338730 #308758
triadic
#338730 #303387 #873033
tetradic
#338730 #305E87 #843087 #875830
square
#338730 #305E87 #843087 #875830
split-complementary
#338730 #583087 #87305E
monochromatic
#112D10 #225A20 #338730 #44B440 #6BC968

Accessibility & contrast

On white

4.52
#338730 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.65
#338730 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #338730
4.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##338730#FFFFFF#000000##000000
##3387301.004.524.654.65
#FFFFFF4.521.0021.0021.00
#0000004.6521.001.001.00
##0000004.6521.001.001.00

Color blindness preview

Protanopia (red-blind)
#8A7B26
Deuteranopia (green-blind)
#7F7437
Tritanopia (blue-blind)
#248375
Achromatopsia (no color)
#767676

Design tokens & code

CSS
--color: #338730;
/* rgb */ color: rgb(51, 135, 48);
/* oklch */ color: oklch(55.3% 0.148 142.7);
Tailwind
colors: {
  custom: {
    50: '#75ab6c',
    500: '#338730',
    950: '#000000',
  },
}
SCSS
$custom: #338730;
$custom-light: #75ab6c;
$custom-dark: #000000;
JSON
{
  "hex": "#338730",
  "rgb": {
    "r": 51,
    "g": 135,
    "b": 48
  },
  "hsl": {
    "h": 117.931,
    "s": 47.541,
    "l": 35.882
  },
  "oklch": {
    "l": 0.55277,
    "c": 0.14765,
    "h": 142.7
  },
  "luminance": 0.18245
}

Semantic roles & 50–950 ramp

primary
#338730
secondary
#AE62B1
accent
#51D7D3
background
#F7FAF6
surface
#EDF4EB
border
#C8CEC6
text
#091007
muted
#7B7F7A

Preview Lab

Preview with #338730

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

Preview Lab → · Contrast checker → · Palette generator →

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