#338B29#338B29

#338B29 is a mid, vivid green. Relative luminance 0.193; OKLCH L 56.3% C 0.158 H 141.6°. Best body text is #000000 at 4.87:1 contrast (WCAG AA passes).

Color values

HEX#338B29
RGBrgb(51, 139, 41)
HSLhsl(114, 54%, 35%)
HSVhsv(114, 71%, 55%)
CMYKcmyk(63.3%, 0%, 70.5%, 45.5%)
CIE-LABlab(51.07, -45.45, 42.85)
CIE-LCHlch(51.07, 62.46, 136.69°)
OKLaboklab(56.31% -0.124 0.0981)
OKLCHoklch(56.31% 0.158 141.6)
XYZxyz(10.9975, 19.3281, 5.2485)
Luminance0.1933 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#338B29 #81298B
analogous
#648B29 #338B29 #298B50
triadic
#338B29 #29338B #8B2933
tetradic
#338B29 #29648B #81298B #8B5029
square
#338B29 #29648B #81298B #8B5029
split-complementary
#338B29 #50298B #8B2964
monochromatic
#102C0D #225C1B #338B29 #44BA37 #6AD05F

Accessibility & contrast

On white

4.32
#338B29 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.87
#338B29 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #338B29
4.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##338B29#FFFFFF#000000##000000
##338B291.004.324.874.87
#FFFFFF4.321.0021.0021.00
#0000004.8721.001.001.00
##0000004.8721.001.001.00

Color blindness preview

Protanopia (red-blind)
#8E7E1B
Deuteranopia (green-blind)
#847732
Tritanopia (blue-blind)
#248777
Achromatopsia (no color)
#7A7A7A

Design tokens & code

CSS
--color: #338b29;
/* rgb */ color: rgb(51, 139, 41);
/* oklch */ color: oklch(56.3% 0.158 141.6);
Tailwind
colors: {
  custom: {
    50: '#76ae68',
    500: '#338b29',
    950: '#000000',
  },
}
SCSS
$custom: #338b29;
$custom-light: #76ae68;
$custom-dark: #000000;
JSON
{
  "hex": "#338b29",
  "rgb": {
    "r": 51,
    "g": 139,
    "b": 41
  },
  "hsl": {
    "h": 113.878,
    "s": 54.444,
    "l": 35.294
  },
  "oklch": {
    "l": 0.56312,
    "c": 0.1581,
    "h": 141.6
  },
  "luminance": 0.19329
}

Semantic roles & 50–950 ramp

primary
#338B29
secondary
#AC5BB5
accent
#4ADECF
background
#F7FAF6
surface
#EEF4EB
border
#C9CEC6
text
#091006
muted
#7B7F7A

Preview Lab

Preview with #338B29

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

Preview Lab → · Contrast checker → · Palette generator →

#338B29 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva