#308342#308342

#308342 is a mid, vivid green. Relative luminance 0.173; OKLCH L 54.3% C 0.127 H 147.9°. Best body text is #FFFFFF at 4.72:1 contrast (WCAG AA passes).

Color values

HEX#308342
RGBrgb(48, 131, 66)
HSLhsl(133, 46%, 35%)
HSVhsv(133, 63%, 51%)
CMYKcmyk(63.4%, 0%, 49.6%, 48.6%)
CIE-LABlab(48.58, -39.83, 27.78)
CIE-LCHlch(48.58, 48.57, 145.10°)
OKLaboklab(54.32% -0.1076 0.0676)
OKLCHoklch(54.32% 0.127 147.9)
XYZxyz(10.3179, 17.2533, 7.9397)
Luminance0.1725 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#308342 #833071
analogous
#478330 #308342 #30836B
triadic
#308342 #423083 #834230
tetradic
#308342 #304783 #833071 #836B30
square
#308342 #304783 #833071 #836B30
split-complementary
#308342 #6B3083 #833047
monochromatic
#0F2915 #20562B #308342 #40B059 #66C77B

Accessibility & contrast

On white

4.72
#308342 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.45
#308342 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #308342
4.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##308342#FFFFFF#000000##FFFFFF
##3083421.004.724.454.72
#FFFFFF4.721.0021.001.00
#0000004.4521.001.0021.00
##FFFFFF4.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#84783D
Deuteranopia (green-blind)
#7A7047
Tritanopia (blue-blind)
#198074
Achromatopsia (no color)
#737373

Design tokens & code

CSS
--color: #308342;
/* rgb */ color: rgb(48, 131, 66);
/* oklch */ color: oklch(54.3% 0.127 147.9);
Tailwind
colors: {
  custom: {
    50: '#72a877',
    500: '#308342',
    950: '#000000',
  },
}
SCSS
$custom: #308342;
$custom-light: #72a877;
$custom-dark: #000000;
JSON
{
  "hex": "#308342",
  "rgb": {
    "r": 48,
    "g": 131,
    "b": 66
  },
  "hsl": {
    "h": 133.012,
    "s": 46.369,
    "l": 35.098
  },
  "oklch": {
    "l": 0.54322,
    "c": 0.12711,
    "h": 147.9
  },
  "luminance": 0.17254
}

Semantic roles & 50–950 ramp

primary
#308342
secondary
#AE619D
accent
#52B9D6
background
#F7FAF7
surface
#EDF4ED
border
#C8CEC8
text
#081009
muted
#7B7F7B

Preview Lab

Preview with #308342

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

Preview Lab → · Contrast checker → · Palette generator →

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