#308338#308338

#308338 is a mid, vivid green. Relative luminance 0.171; OKLCH L 54.2% C 0.137 H 145.0°. Best body text is #FFFFFF at 4.74:1 contrast (WCAG AA passes).

Color values

HEX#308338
RGBrgb(48, 131, 56)
HSLhsl(126, 46%, 35%)
HSVhsv(126, 63%, 51%)
CMYKcmyk(63.4%, 0%, 57.3%, 48.6%)
CIE-LABlab(48.44, -41.35, 32.86)
CIE-LCHlch(48.44, 52.82, 141.52°)
OKLaboklab(54.17% -0.112 0.0783)
OKLCHoklch(54.17% 0.137 145)
XYZxyz(10.0484, 17.1455, 6.5205)
Luminance0.1715 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#308338 #83307B
analogous
#528330 #308338 #308361
triadic
#308338 #383083 #833830
tetradic
#308338 #305283 #83307B #836130
square
#308338 #305283 #83307B #836130
split-complementary
#308338 #613083 #833052
monochromatic
#0F2912 #205625 #308338 #40B04B #66C770

Accessibility & contrast

On white

4.74
#308338 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.43
#308338 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #308338
4.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##308338#FFFFFF#000000##FFFFFF
##3083381.004.744.434.74
#FFFFFF4.741.0021.001.00
#0000004.4321.001.0021.00
##FFFFFF4.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#857731
Deuteranopia (green-blind)
#7B703E
Tritanopia (blue-blind)
#1D8072
Achromatopsia (no color)
#737373

Design tokens & code

CSS
--color: #308338;
/* rgb */ color: rgb(48, 131, 56);
/* oklch */ color: oklch(54.2% 0.137 145.0);
Tailwind
colors: {
  custom: {
    50: '#72a871',
    500: '#308338',
    950: '#000000',
  },
}
SCSS
$custom: #308338;
$custom-light: #72a871;
$custom-dark: #000000;
JSON
{
  "hex": "#308338",
  "rgb": {
    "r": 48,
    "g": 131,
    "b": 56
  },
  "hsl": {
    "h": 125.783,
    "s": 46.369,
    "l": 35.098
  },
  "oklch": {
    "l": 0.54167,
    "c": 0.13664,
    "h": 145
  },
  "luminance": 0.17147
}

Semantic roles & 50–950 ramp

primary
#308338
secondary
#AE61A7
accent
#52C9D6
background
#F7FAF6
surface
#EDF4EC
border
#C8CEC7
text
#091008
muted
#7B7F7B

Preview Lab

Preview with #308338

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

Preview Lab → · Contrast checker → · Palette generator →

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