#338312#338312

#338312 is a mid, vivid green. Relative luminance 0.170; OKLCH L 53.9% C 0.161 H 139.0°. Best body text is #FFFFFF at 4.78:1 contrast (WCAG AA passes).

Color values

HEX#338312
RGBrgb(51, 131, 18)
HSLhsl(102, 76%, 29%)
HSVhsv(102, 86%, 51%)
CMYKcmyk(61.1%, 0%, 86.3%, 48.6%)
CIE-LABlab(48.23, -44.10, 48.12)
CIE-LCHlch(48.23, 65.26, 132.50°)
OKLaboklab(53.92% -0.1216 0.1058)
OKLCHoklch(53.92% 0.161 139)
XYZxyz(9.5903, 16.9792, 3.3441)
Luminance0.1698 (WCAG relative)
Temperaturewarm
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#338312 #621283
analogous
#6C8312 #338312 #12832A
triadic
#338312 #123383 #831233
tetradic
#338312 #126C83 #621283 #832A12
square
#338312 #126C83 #621283 #832A12
split-complementary
#338312 #2A1283 #83126C
monochromatic
#0A1B04 #1E4D0B #338312 #48B919 #62E22D

Accessibility & contrast

On white

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

On black

4.40
#338312 on #000000
AA ✗AA large ✓AAA ✗

Best text color

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

Contrast matrix

fg \ bg##338312#FFFFFF#000000##FFFFFF
##3383121.004.784.404.78
#FFFFFF4.781.0021.001.00
#0000004.4021.001.0021.00
##FFFFFF4.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#877700
Deuteranopia (green-blind)
#7D7021
Tritanopia (blue-blind)
#2A7E6F
Achromatopsia (no color)
#727272

Design tokens & code

CSS
--color: #338312;
/* rgb */ color: rgb(51, 131, 18);
/* oklch */ color: oklch(53.9% 0.161 139.0);
Tailwind
colors: {
  custom: {
    50: '#75a85c',
    500: '#338312',
    950: '#000000',
  },
}
SCSS
$custom: #338312;
$custom-light: #75a85c;
$custom-dark: #000000;
JSON
{
  "hex": "#338312",
  "rgb": {
    "r": 51,
    "g": 131,
    "b": 18
  },
  "hsl": {
    "h": 102.478,
    "s": 75.839,
    "l": 29.216
  },
  "oklch": {
    "l": 0.53923,
    "c": 0.16123,
    "h": 139
  },
  "luminance": 0.1698
}

Semantic roles & 50–950 ramp

primary
#338312
secondary
#9338B8
accent
#35F2BB
background
#F7FAF5
surface
#EEF4E9
border
#C9CEC5
text
#091005
muted
#7B7F79

Preview Lab

Preview with #338312

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

Preview Lab → · Contrast checker → · Palette generator →

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