#338530#338530

#338530 is a mid, vivid green. Relative luminance 0.177; OKLCH L 54.7% C 0.145 H 142.7°. Best body text is #FFFFFF at 4.63:1 contrast (WCAG AA passes).

Color values

HEX#338530
RGBrgb(51, 133, 48)
HSLhsl(118, 47%, 35%)
HSVhsv(118, 64%, 52%)
CMYKcmyk(61.7%, 0%, 63.9%, 47.8%)
CIE-LABlab(49.12, -42.42, 37.60)
CIE-LCHlch(49.12, 56.68, 138.45°)
OKLaboklab(54.72% -0.1154 0.0878)
OKLCHoklch(54.72% 0.145 142.7)
XYZxyz(10.2857, 17.6913, 5.6685)
Luminance0.1769 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#338530 #823085
analogous
#5D8530 #338530 #308557
triadic
#338530 #303385 #853033
tetradic
#338530 #305D85 #823085 #855730
square
#338530 #305D85 #823085 #855730
split-complementary
#338530 #573085 #85305D
monochromatic
#112B10 #225820 #338530 #44B240 #6BC867

Accessibility & contrast

On white

4.63
#338530 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.54
#338530 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #338530
4.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##338530#FFFFFF#000000##FFFFFF
##3385301.004.634.544.63
#FFFFFF4.631.0021.001.00
#0000004.5421.001.0021.00
##FFFFFF4.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#887926
Deuteranopia (green-blind)
#7E7237
Tritanopia (blue-blind)
#258173
Achromatopsia (no color)
#757575

Design tokens & code

CSS
--color: #338530;
/* rgb */ color: rgb(51, 133, 48);
/* oklch */ color: oklch(54.7% 0.145 142.7);
Tailwind
colors: {
  custom: {
    50: '#74a96c',
    500: '#338530',
    950: '#000000',
  },
}
SCSS
$custom: #338530;
$custom-light: #74a96c;
$custom-dark: #000000;
JSON
{
  "hex": "#338530",
  "rgb": {
    "r": 51,
    "g": 133,
    "b": 48
  },
  "hsl": {
    "h": 117.882,
    "s": 46.961,
    "l": 35.49
  },
  "oklch": {
    "l": 0.54723,
    "c": 0.145,
    "h": 142.7
  },
  "luminance": 0.17692
}

Semantic roles & 50–950 ramp

primary
#338530
secondary
#AD61AF
accent
#51D7D2
background
#F7FAF6
surface
#EDF4EB
border
#C8CEC6
text
#091007
muted
#7B7F7A

Preview Lab

Preview with #338530

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

Preview Lab → · Contrast checker → · Palette generator →

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