#308540#308540

#308540 is a mid, vivid green. Relative luminance 0.178; OKLCH L 54.8% C 0.132 H 147.1°. Best body text is #FFFFFF at 4.61:1 contrast (WCAG AA passes).

Color values

HEX#308540
RGBrgb(48, 133, 64)
HSLhsl(131, 47%, 35%)
HSVhsv(131, 64%, 52%)
CMYKcmyk(63.9%, 0%, 51.9%, 47.8%)
CIE-LABlab(49.22, -40.97, 29.65)
CIE-LCHlch(49.22, 50.57, 144.10°)
OKLaboklab(54.84% -0.1107 0.0717)
OKLCHoklch(54.84% 0.132 147.1)
XYZxyz(10.5312, 17.7726, 7.7250)
Luminance0.1777 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#308540 #853075
analogous
#4A8530 #308540 #30856A
triadic
#308540 #403085 #854030
tetradic
#308540 #304A85 #853075 #856A30
square
#308540 #304A85 #853075 #856A30
split-complementary
#308540 #6A3085 #85304A
monochromatic
#102B15 #20582A #308540 #40B256 #67C879

Accessibility & contrast

On white

4.61
#308540 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.55
#308540 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #308540
4.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##308540#FFFFFF#000000##FFFFFF
##3085401.004.614.554.61
#FFFFFF4.611.0021.001.00
#0000004.5521.001.0021.00
##FFFFFF4.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#87793A
Deuteranopia (green-blind)
#7C7245
Tritanopia (blue-blind)
#198275
Achromatopsia (no color)
#757575

Design tokens & code

CSS
--color: #308540;
/* rgb */ color: rgb(48, 133, 64);
/* oklch */ color: oklch(54.8% 0.132 147.1);
Tailwind
colors: {
  custom: {
    50: '#72a976',
    500: '#308540',
    950: '#000000',
  },
}
SCSS
$custom: #308540;
$custom-light: #72a976;
$custom-dark: #000000;
JSON
{
  "hex": "#308540",
  "rgb": {
    "r": 48,
    "g": 133,
    "b": 64
  },
  "hsl": {
    "h": 131.294,
    "s": 46.961,
    "l": 35.49
  },
  "oklch": {
    "l": 0.54841,
    "c": 0.13191,
    "h": 147.1
  },
  "luminance": 0.17774
}

Semantic roles & 50–950 ramp

primary
#308540
secondary
#AF61A1
accent
#51BDD7
background
#F7FAF7
surface
#EDF4ED
border
#C8CEC8
text
#091008
muted
#7B7F7B

Preview Lab

Preview with #308540

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

Preview Lab → · Contrast checker → · Palette generator →

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