#308417#308417

#308417 is a mid, vivid green. Relative luminance 0.172; OKLCH L 54.1% C 0.162 H 139.9°. Best body text is #FFFFFF at 4.73:1 contrast (WCAG AA passes).

Color values

HEX#308417
RGBrgb(48, 132, 23)
HSLhsl(106, 70%, 30%)
HSVhsv(106, 83%, 52%)
CMYKcmyk(63.6%, 0%, 82.6%, 48.2%)
CIE-LABlab(48.50, -44.97, 46.89)
CIE-LCHlch(48.50, 64.97, 133.80°)
OKLaboklab(54.13% -0.1235 0.104)
OKLCHoklch(54.13% 0.162 139.9)
XYZxyz(9.6244, 17.1919, 3.6216)
Luminance0.1719 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#308417 #6B1784
analogous
#668417 #308417 #178435
triadic
#308417 #173084 #841730
tetradic
#308417 #176684 #6B1784 #843517
square
#308417 #176684 #6B1784 #843517
split-complementary
#308417 #351784 #841766
monochromatic
#0A1C05 #1D500E #308417 #43B820 #5EDC39

Accessibility & contrast

On white

4.73
#308417 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.44
#308417 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #308417
4.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##308417#FFFFFF#000000##FFFFFF
##3084171.004.734.444.73
#FFFFFF4.731.0021.001.00
#0000004.4421.001.0021.00
##FFFFFF4.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#887700
Deuteranopia (green-blind)
#7E7124
Tritanopia (blue-blind)
#247F70
Achromatopsia (no color)
#737373

Design tokens & code

CSS
--color: #308417;
/* rgb */ color: rgb(48, 132, 23);
/* oklch */ color: oklch(54.1% 0.162 139.9);
Tailwind
colors: {
  custom: {
    50: '#74a95e',
    500: '#308417',
    950: '#000000',
  },
}
SCSS
$custom: #308417;
$custom-light: #74a95e;
$custom-dark: #000000;
JSON
{
  "hex": "#308417",
  "rgb": {
    "r": 48,
    "g": 132,
    "b": 23
  },
  "hsl": {
    "h": 106.239,
    "s": 70.323,
    "l": 30.392
  },
  "oklch": {
    "l": 0.54125,
    "c": 0.1615,
    "h": 139.9
  },
  "luminance": 0.17193
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #308417

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

Preview Lab → · Contrast checker → · Palette generator →

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