#338237#338237

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

Color values

HEX#338237
RGBrgb(51, 130, 55)
HSLhsl(123, 44%, 35%)
HSVhsv(123, 61%, 51%)
CMYKcmyk(60.8%, 0%, 57.7%, 49%)
CIE-LABlab(48.19, -40.35, 33.09)
CIE-LCHlch(48.19, 52.18, 140.64°)
OKLaboklab(53.98% -0.1094 0.0787)
OKLCHoklch(53.98% 0.135 144.3)
XYZxyz(10.0369, 16.9440, 6.3553)
Luminance0.1694 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#338237 #82337E
analogous
#568233 #338237 #33825E
triadic
#338237 #373382 #823733
tetradic
#338237 #335682 #82337E #825E33
square
#338237 #335682 #82337E #825E33
split-complementary
#338237 #5E3382 #823356
monochromatic
#112A12 #225624 #338237 #44AE4A #6BC56F

Accessibility & contrast

On white

4.78
#338237 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #338237
4.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##338237#FFFFFF#000000##FFFFFF
##3382371.004.784.394.78
#FFFFFF4.781.0021.001.00
#0000004.3921.001.0021.00
##FFFFFF4.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#847730
Deuteranopia (green-blind)
#7A703D
Tritanopia (blue-blind)
#247F71
Achromatopsia (no color)
#727272

Design tokens & code

CSS
--color: #338237;
/* rgb */ color: rgb(51, 130, 55);
/* oklch */ color: oklch(54.0% 0.135 144.3);
Tailwind
colors: {
  custom: {
    50: '#73a770',
    500: '#338237',
    950: '#000000',
  },
}
SCSS
$custom: #338237;
$custom-light: #73a770;
$custom-dark: #000000;
JSON
{
  "hex": "#338237",
  "rgb": {
    "r": 51,
    "g": 130,
    "b": 55
  },
  "hsl": {
    "h": 123.038,
    "s": 43.646,
    "l": 35.49
  },
  "oklch": {
    "l": 0.53981,
    "c": 0.13481,
    "h": 144.3
  },
  "luminance": 0.16945
}

Semantic roles & 50–950 ramp

primary
#338237
secondary
#AD64A9
accent
#54CDD3
background
#F7FAF6
surface
#EDF4EC
border
#C8CEC7
text
#090F07
muted
#7B7F7A

Preview Lab

Preview with #338237

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

Preview Lab → · Contrast checker → · Palette generator →

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