#338142#338142

#338142 is a mid, vivid green. Relative luminance 0.168; OKLCH L 53.9% C 0.123 H 147.5°. Best body text is #FFFFFF at 4.82:1 contrast (WCAG AA passes).

Color values

HEX#338142
RGBrgb(51, 129, 66)
HSLhsl(132, 43%, 35%)
HSVhsv(132, 60%, 51%)
CMYKcmyk(60.5%, 0%, 48.8%, 49.4%)
CIE-LABlab(48.00, -38.28, 27.08)
CIE-LCHlch(48.00, 46.89, 144.72°)
OKLaboklab(53.87% -0.1035 0.066)
OKLCHoklch(53.87% 0.123 147.5)
XYZxyz(10.1982, 16.7967, 7.8579)
Luminance0.1680 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#338142 #813372
analogous
#4B8133 #338142 #338169
triadic
#338142 #423381 #814233
tetradic
#338142 #334B81 #813372 #816933
square
#338142 #334B81 #813372 #816933
split-complementary
#338142 #693381 #81334B
monochromatic
#102915 #22552C #338142 #44AD58 #6AC47C

Accessibility & contrast

On white

4.82
#338142 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.36
#338142 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #338142
4.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##338142#FFFFFF#000000##FFFFFF
##3381421.004.824.364.82
#FFFFFF4.821.0021.001.00
#0000004.3621.001.0021.00
##FFFFFF4.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#82763D
Deuteranopia (green-blind)
#786F46
Tritanopia (blue-blind)
#217E72
Achromatopsia (no color)
#727272

Design tokens & code

CSS
--color: #338142;
/* rgb */ color: rgb(51, 129, 66);
/* oklch */ color: oklch(53.9% 0.123 147.5);
Tailwind
colors: {
  custom: {
    50: '#73a677',
    500: '#338142',
    950: '#000000',
  },
}
SCSS
$custom: #338142;
$custom-light: #73a677;
$custom-dark: #000000;
JSON
{
  "hex": "#338142",
  "rgb": {
    "r": 51,
    "g": 129,
    "b": 66
  },
  "hsl": {
    "h": 131.538,
    "s": 43.333,
    "l": 35.294
  },
  "oklch": {
    "l": 0.53875,
    "c": 0.12281,
    "h": 147.5
  },
  "luminance": 0.16798
}

Semantic roles & 50–950 ramp

primary
#338142
secondary
#AC649E
accent
#55BBD3
background
#F7FAF7
surface
#EDF4ED
border
#C8CEC8
text
#090F09
muted
#7B7F7B

Preview Lab

Preview with #338142

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

Preview Lab → · Contrast checker → · Palette generator →

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