#338251#338251

#338251 is a mid, moderate green. Relative luminance 0.173; OKLCH L 54.4% C 0.109 H 153.4°. Best body text is #FFFFFF at 4.72:1 contrast (WCAG AA passes).

Color values

HEX#338251
RGBrgb(51, 130, 81)
HSLhsl(143, 44%, 35%)
HSVhsv(143, 61%, 51%)
CMYKcmyk(60.8%, 0%, 37.7%, 49%)
CIE-LABlab(48.59, -35.98, 19.52)
CIE-LCHlch(48.59, 40.93, 151.52°)
OKLaboklab(54.44% -0.0976 0.0489)
OKLCHoklch(54.44% 0.109 153.4)
XYZxyz(10.8322, 17.2621, 10.5441)
Luminance0.1726 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#338251 #823364
analogous
#3C8233 #338251 #338278
triadic
#338251 #513382 #825133
tetradic
#338251 #333C82 #823364 #827833
square
#338251 #333C82 #823364 #827833
split-complementary
#338251 #783382 #82333C
monochromatic
#112A1A #225636 #338251 #44AE6C #6BC58D

Accessibility & contrast

On white

4.72
#338251 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.45
#338251 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #338251
4.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##338251#FFFFFF#000000##FFFFFF
##3382511.004.724.454.72
#FFFFFF4.721.0021.001.00
#0000004.4521.001.0021.00
##FFFFFF4.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#82784E
Deuteranopia (green-blind)
#777054
Tritanopia (blue-blind)
#198075
Achromatopsia (no color)
#737373

Design tokens & code

CSS
--color: #338251;
/* rgb */ color: rgb(51, 130, 81);
/* oklch */ color: oklch(54.4% 0.109 153.4);
Tailwind
colors: {
  custom: {
    50: '#73a782',
    500: '#338251',
    950: '#000000',
  },
}
SCSS
$custom: #338251;
$custom-light: #73a782;
$custom-dark: #000000;
JSON
{
  "hex": "#338251",
  "rgb": {
    "r": 51,
    "g": 130,
    "b": 81
  },
  "hsl": {
    "h": 142.785,
    "s": 43.646,
    "l": 35.49
  },
  "oklch": {
    "l": 0.54439,
    "c": 0.10913,
    "h": 153.4
  },
  "luminance": 0.17263
}

Semantic roles & 50–950 ramp

primary
#338251
secondary
#AD6491
accent
#54A3D3
background
#F7FAF7
surface
#EDF4EE
border
#C8CEC9
text
#080F0A
muted
#7B7F7C

Preview Lab

Preview with #338251

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

Preview Lab → · Contrast checker → · Palette generator →

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