#308317#308317

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

Color values

HEX#308317
RGBrgb(48, 131, 23)
HSLhsl(106, 70%, 30%)
HSVhsv(106, 82%, 51%)
CMYKcmyk(63.4%, 0%, 82.4%, 48.6%)
CIE-LABlab(48.16, -44.60, 46.57)
CIE-LCHlch(48.16, 64.49, 133.76°)
OKLaboklab(53.84% -0.1225 0.1034)
OKLCHoklch(53.84% 0.16 139.9)
XYZxyz(9.4894, 16.9219, 3.5766)
Luminance0.1692 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#308317 #6A1783
analogous
#668317 #308317 #178334
triadic
#308317 #173083 #831730
tetradic
#308317 #176683 #6A1783 #833417
square
#308317 #176683 #6A1783 #833417
split-complementary
#308317 #341783 #831766
monochromatic
#0A1B05 #1D4F0E #308317 #43B720 #5EDC38

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##308317#FFFFFF#000000##FFFFFF
##3083171.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)
#7D7024
Tritanopia (blue-blind)
#257E6F
Achromatopsia (no color)
#727272

Design tokens & code

CSS
--color: #308317;
/* rgb */ color: rgb(48, 131, 23);
/* oklch */ color: oklch(53.8% 0.160 139.9);
Tailwind
colors: {
  custom: {
    50: '#74a85e',
    500: '#308317',
    950: '#000000',
  },
}
SCSS
$custom: #308317;
$custom-light: #74a85e;
$custom-dark: #000000;
JSON
{
  "hex": "#308317",
  "rgb": {
    "r": 48,
    "g": 131,
    "b": 23
  },
  "hsl": {
    "h": 106.111,
    "s": 70.13,
    "l": 30.196
  },
  "oklch": {
    "l": 0.53844,
    "c": 0.16032,
    "h": 139.9
  },
  "luminance": 0.16923
}

Semantic roles & 50–950 ramp

primary
#308317
secondary
#9B3FB7
accent
#3BEDC4
background
#F7FAF5
surface
#EDF4EA
border
#C8CEC6
text
#091005
muted
#7B7F79

Preview Lab

Preview with #308317

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

Preview Lab → · Contrast checker → · Palette generator →

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