#308315#308315

#308315 is a mid, vivid green. Relative luminance 0.169; OKLCH L 53.8% C 0.161 H 139.7°. Best body text is #FFFFFF at 4.79:1 contrast (WCAG AA passes).

Color values

HEX#308315
RGBrgb(48, 131, 21)
HSLhsl(105, 72%, 30%)
HSVhsv(105, 84%, 51%)
CMYKcmyk(63.4%, 0%, 84%, 48.6%)
CIE-LABlab(48.15, -44.72, 47.17)
CIE-LCHlch(48.15, 65.00, 133.47°)
OKLaboklab(53.83% -0.123 0.1043)
OKLCHoklch(53.83% 0.161 139.7)
XYZxyz(9.4702, 16.9142, 3.4750)
Luminance0.1691 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#308315 #681583
analogous
#678315 #308315 #158331
triadic
#308315 #153083 #831530
tetradic
#308315 #156783 #681583 #833115
square
#308315 #156783 #681583 #833115
split-complementary
#308315 #311583 #831567
monochromatic
#0A1A04 #1D4E0D #308315 #43B81D #5EDE34

Accessibility & contrast

On white

4.79
#308315 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.38
#308315 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #308315
4.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##308315#FFFFFF#000000##FFFFFF
##3083151.004.794.384.79
#FFFFFF4.791.0021.001.00
#0000004.3821.001.0021.00
##FFFFFF4.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#877600
Deuteranopia (green-blind)
#7D7023
Tritanopia (blue-blind)
#257E6F
Achromatopsia (no color)
#727272

Design tokens & code

CSS
--color: #308315;
/* rgb */ color: rgb(48, 131, 21);
/* oklch */ color: oklch(53.8% 0.161 139.7);
Tailwind
colors: {
  custom: {
    50: '#74a85d',
    500: '#308315',
    950: '#000000',
  },
}
SCSS
$custom: #308315;
$custom-light: #74a85d;
$custom-dark: #000000;
JSON
{
  "hex": "#308315",
  "rgb": {
    "r": 48,
    "g": 131,
    "b": 21
  },
  "hsl": {
    "h": 105.273,
    "s": 72.368,
    "l": 29.804
  },
  "oklch": {
    "l": 0.53833,
    "c": 0.16124,
    "h": 139.7
  },
  "luminance": 0.16915
}

Semantic roles & 50–950 ramp

primary
#308315
secondary
#993CB8
accent
#39EFC2
background
#F7FAF5
surface
#EDF4E9
border
#C8CEC5
text
#091005
muted
#7B7F79

Preview Lab

Preview with #308315

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

Preview Lab → · Contrast checker → · Palette generator →

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