#338236#338236

#338236 is a mid, vivid green. Relative luminance 0.169; OKLCH L 54.0% C 0.136 H 144.0°. Best body text is #FFFFFF at 4.79:1 contrast (WCAG AA passes).

Color values

HEX#338236
RGBrgb(51, 130, 54)
HSLhsl(122, 44%, 35%)
HSVhsv(122, 61%, 51%)
CMYKcmyk(60.8%, 0%, 58.5%, 49%)
CIE-LABlab(48.18, -40.48, 33.58)
CIE-LCHlch(48.18, 52.60, 140.32°)
OKLaboklab(53.97% -0.1098 0.0797)
OKLCHoklch(53.97% 0.136 144)
XYZxyz(10.0131, 16.9345, 6.2303)
Luminance0.1694 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#338236 #82337F
analogous
#588233 #338236 #33825D
triadic
#338236 #363382 #823633
tetradic
#338236 #335882 #82337F #825D33
square
#338236 #335882 #82337F #825D33
split-complementary
#338236 #5D3382 #823358
monochromatic
#112A11 #225624 #338236 #44AE48 #6BC56E

Accessibility & contrast

On white

4.79
#338236 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.39
#338236 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #338236
4.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##338236#FFFFFF#000000##FFFFFF
##3382361.004.794.394.79
#FFFFFF4.791.0021.001.00
#0000004.3921.001.0021.00
##FFFFFF4.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#84772F
Deuteranopia (green-blind)
#7A703C
Tritanopia (blue-blind)
#247F71
Achromatopsia (no color)
#727272

Design tokens & code

CSS
--color: #338236;
/* rgb */ color: rgb(51, 130, 54);
/* oklch */ color: oklch(54.0% 0.136 144.0);
Tailwind
colors: {
  custom: {
    50: '#73a76f',
    500: '#338236',
    950: '#000000',
  },
}
SCSS
$custom: #338236;
$custom-light: #73a76f;
$custom-dark: #000000;
JSON
{
  "hex": "#338236",
  "rgb": {
    "r": 51,
    "g": 130,
    "b": 54
  },
  "hsl": {
    "h": 122.278,
    "s": 43.646,
    "l": 35.49
  },
  "oklch": {
    "l": 0.53967,
    "c": 0.13572,
    "h": 144
  },
  "luminance": 0.16935
}

Semantic roles & 50–950 ramp

primary
#338236
secondary
#AD64AA
accent
#54CFD3
background
#F7FAF6
surface
#EDF4EC
border
#C8CEC7
text
#090F07
muted
#7B7F7A

Preview Lab

Preview with #338236

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

Preview Lab → · Contrast checker → · Palette generator →

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