#338315#338315

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

Color values

HEX#338315
RGBrgb(51, 131, 21)
HSLhsl(104, 72%, 30%)
HSVhsv(104, 84%, 51%)
CMYKcmyk(61.1%, 0%, 84%, 48.6%)
CIE-LABlab(48.25, -43.94, 47.29)
CIE-LCHlch(48.25, 64.55, 132.90°)
OKLaboklab(53.94% -0.1211 0.1045)
OKLCHoklch(53.94% 0.16 139.2)
XYZxyz(9.6165, 16.9897, 3.4819)
Luminance0.1699 (WCAG relative)
Temperaturewarm
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#338315 #651583
analogous
#6A8315 #338315 #15832E
triadic
#338315 #153383 #831533
tetradic
#338315 #156A83 #651583 #832E15
square
#338315 #156A83 #651583 #832E15
split-complementary
#338315 #2E1583 #83156A
monochromatic
#0A1A04 #1E4E0D #338315 #48B81D #62DE34

Accessibility & contrast

On white

4.77
#338315 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #338315
4.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##338315#FFFFFF#000000##FFFFFF
##3383151.004.774.404.77
#FFFFFF4.771.0021.001.00
#0000004.4021.001.0021.00
##FFFFFF4.771.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #338315;
/* rgb */ color: rgb(51, 131, 21);
/* oklch */ color: oklch(53.9% 0.160 139.2);
Tailwind
colors: {
  custom: {
    50: '#75a85d',
    500: '#338315',
    950: '#000000',
  },
}
SCSS
$custom: #338315;
$custom-light: #75a85d;
$custom-dark: #000000;
JSON
{
  "hex": "#338315",
  "rgb": {
    "r": 51,
    "g": 131,
    "b": 21
  },
  "hsl": {
    "h": 103.636,
    "s": 72.368,
    "l": 29.804
  },
  "oklch": {
    "l": 0.53938,
    "c": 0.15995,
    "h": 139.2
  },
  "luminance": 0.16991
}

Semantic roles & 50–950 ramp

primary
#338315
secondary
#963CB8
accent
#39EFBD
background
#F7FAF5
surface
#EEF4E9
border
#C9CEC5
text
#091005
muted
#7B7F79

Preview Lab

Preview with #338315

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

Preview Lab → · Contrast checker → · Palette generator →

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