#338C29#338C29

#338C29 is a mid, vivid green. Relative luminance 0.196; OKLCH L 56.6% C 0.159 H 141.7°. Best body text is #000000 at 4.92:1 contrast (WCAG AA passes).

Color values

HEX#338C29
RGBrgb(51, 140, 41)
HSLhsl(114, 55%, 35%)
HSVhsv(114, 71%, 55%)
CMYKcmyk(63.6%, 0%, 70.7%, 45.1%)
CIE-LABlab(51.40, -45.82, 43.20)
CIE-LCHlch(51.40, 62.98, 136.68°)
OKLaboklab(56.59% -0.125 0.0988)
OKLCHoklch(56.59% 0.159 141.7)
XYZxyz(11.1430, 19.6190, 5.2970)
Luminance0.1962 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#338C29 #82298C
analogous
#658C29 #338C29 #298C50
triadic
#338C29 #29338C #8C2933
tetradic
#338C29 #29658C #82298C #8C5029
square
#338C29 #29658C #82298C #8C5029
split-complementary
#338C29 #50298C #8C2965
monochromatic
#112D0D #225D1B #338C29 #44BB37 #6BD05F

Accessibility & contrast

On white

4.26
#338C29 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.92
#338C29 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #338C29
4.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##338C29#FFFFFF#000000##000000
##338C291.004.264.924.92
#FFFFFF4.261.0021.0021.00
#0000004.9221.001.001.00
##0000004.9221.001.001.00

Color blindness preview

Protanopia (red-blind)
#8F7F1A
Deuteranopia (green-blind)
#857832
Tritanopia (blue-blind)
#248878
Achromatopsia (no color)
#7A7A7A

Design tokens & code

CSS
--color: #338c29;
/* rgb */ color: rgb(51, 140, 41);
/* oklch */ color: oklch(56.6% 0.159 141.7);
Tailwind
colors: {
  custom: {
    50: '#76ae68',
    500: '#338c29',
    950: '#000000',
  },
}
SCSS
$custom: #338c29;
$custom-light: #76ae68;
$custom-dark: #000000;
JSON
{
  "hex": "#338c29",
  "rgb": {
    "r": 51,
    "g": 140,
    "b": 41
  },
  "hsl": {
    "h": 113.939,
    "s": 54.696,
    "l": 35.49
  },
  "oklch": {
    "l": 0.56589,
    "c": 0.15936,
    "h": 141.7
  },
  "luminance": 0.1962
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #338C29

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

Preview Lab → · Contrast checker → · Palette generator →

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