#338A30#338A30

#338A30 is a mid, vivid green. Relative luminance 0.191; OKLCH L 56.1% C 0.152 H 142.7°. Best body text is #000000 at 4.82:1 contrast (WCAG AA passes).

Color values

HEX#338A30
RGBrgb(51, 138, 48)
HSLhsl(118, 48%, 36%)
HSVhsv(118, 65%, 54%)
CMYKcmyk(63%, 0%, 65.2%, 45.9%)
CIE-LABlab(50.80, -44.35, 39.47)
CIE-LCHlch(50.80, 59.37, 138.33°)
OKLaboklab(56.11% -0.1206 0.0918)
OKLCHoklch(56.11% 0.152 142.7)
XYZxyz(10.9866, 19.0931, 5.9021)
Luminance0.1909 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#338A30 #87308A
analogous
#608A30 #338A30 #308A5A
triadic
#338A30 #30338A #8A3033
tetradic
#338A30 #30608A #87308A #8A5A30
square
#338A30 #30608A #87308A #8A5A30
split-complementary
#338A30 #5A308A #8A3060
monochromatic
#112F10 #225D20 #338A30 #44B740 #6DCB69

Accessibility & contrast

On white

4.36
#338A30 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.82
#338A30 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #338A30
4.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##338A30#FFFFFF#000000##000000
##338A301.004.364.824.82
#FFFFFF4.361.0021.0021.00
#0000004.8221.001.001.00
##0000004.8221.001.001.00

Color blindness preview

Protanopia (red-blind)
#8D7D25
Deuteranopia (green-blind)
#827638
Tritanopia (blue-blind)
#238677
Achromatopsia (no color)
#797979

Design tokens & code

CSS
--color: #338a30;
/* rgb */ color: rgb(51, 138, 48);
/* oklch */ color: oklch(56.1% 0.152 142.7);
Tailwind
colors: {
  custom: {
    50: '#75ad6c',
    500: '#338a30',
    950: '#000000',
  },
}
SCSS
$custom: #338a30;
$custom-light: #75ad6c;
$custom-dark: #000000;
JSON
{
  "hex": "#338a30",
  "rgb": {
    "r": 51,
    "g": 138,
    "b": 48
  },
  "hsl": {
    "h": 118,
    "s": 48.387,
    "l": 36.471
  },
  "oklch": {
    "l": 0.56107,
    "c": 0.15159,
    "h": 142.7
  },
  "luminance": 0.19094
}

Semantic roles & 50–950 ramp

primary
#338A30
secondary
#B064B2
accent
#50D8D3
background
#F7FAF6
surface
#EEF4EC
border
#C9CEC7
text
#091007
muted
#7B7F7A

Preview Lab

Preview with #338A30

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

Preview Lab → · Contrast checker → · Palette generator →

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