#308418#308418

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

Color values

HEX#308418
RGBrgb(48, 132, 24)
HSLhsl(107, 69%, 31%)
HSVhsv(107, 82%, 52%)
CMYKcmyk(63.6%, 0%, 81.8%, 48.2%)
CIE-LABlab(48.51, -44.91, 46.58)
CIE-LCHlch(48.51, 64.70, 133.95°)
OKLaboklab(54.13% -0.1233 0.1035)
OKLCHoklch(54.13% 0.161 140)
XYZxyz(9.6346, 17.1959, 3.6754)
Luminance0.1720 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#308418 #6C1884
analogous
#668418 #308418 #188436
triadic
#308418 #183084 #841830
tetradic
#308418 #186684 #6C1884 #843618
square
#308418 #186684 #6C1884 #843618
split-complementary
#308418 #361884 #841866
monochromatic
#0A1C05 #1D500F #308418 #43B821 #5FDB3B

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##308418#FFFFFF#000000##FFFFFF
##3084181.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)
#7E7125
Tritanopia (blue-blind)
#247F70
Achromatopsia (no color)
#737373

Design tokens & code

CSS
--color: #308418;
/* rgb */ color: rgb(48, 132, 24);
/* oklch */ color: oklch(54.1% 0.161 140.0);
Tailwind
colors: {
  custom: {
    50: '#74a95f',
    500: '#308418',
    950: '#000000',
  },
}
SCSS
$custom: #308418;
$custom-light: #74a95f;
$custom-dark: #000000;
JSON
{
  "hex": "#308418",
  "rgb": {
    "r": 48,
    "g": 132,
    "b": 24
  },
  "hsl": {
    "h": 106.667,
    "s": 69.231,
    "l": 30.588
  },
  "oklch": {
    "l": 0.54131,
    "c": 0.16102,
    "h": 140
  },
  "luminance": 0.17197
}

Semantic roles & 50–950 ramp

primary
#308418
secondary
#9D40B8
accent
#3CECC5
background
#F7FAF5
surface
#EDF4EA
border
#C8CEC6
text
#091005
muted
#7B7F79

Preview Lab

Preview with #308418

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

Preview Lab → · Contrast checker → · Palette generator →

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