#9138B2#9138B2

#9138B2 is a mid, vivid purple. Relative luminance 0.121; OKLCH L 51.9% C 0.193 H 315.4°. Best body text is #FFFFFF at 6.15:1 contrast (WCAG AA passes).

Color values

HEX#9138B2
RGBrgb(145, 56, 178)
HSLhsl(284, 52%, 46%)
HSVhsv(284, 69%, 70%)
CMYKcmyk(18.5%, 68.5%, 0%, 30.2%)
CIE-LABlab(41.32, 55.82, -48.28)
CIE-LCHlch(41.32, 73.81, 319.14°)
OKLaboklab(51.85% 0.1378 -0.1358)
OKLCHoklch(51.85% 0.193 315.4)
XYZxyz(21.1258, 12.0632, 43.3264)
Luminance0.1206 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9138B2 #59B238
analogous
#5438B2 #9138B2 #B23896
triadic
#9138B2 #B29138 #38B291
tetradic
#9138B2 #B25438 #59B238 #3896B2
square
#9138B2 #B25438 #59B238 #3896B2
split-complementary
#9138B2 #96B238 #38B254
monochromatic
#451B55 #6B2983 #9138B2 #AD5CCC #C58ADA

Accessibility & contrast

On white

6.15
#9138B2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.41
#9138B2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9138B2
6.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9138B2#FFFFFF#000000##FFFFFF
##9138B21.006.153.416.15
#FFFFFF6.151.0021.001.00
#0000003.4121.001.0021.00
##FFFFFF6.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005CB6
Deuteranopia (green-blind)
#3664AF
Tritanopia (blue-blind)
#8F5071
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #9138b2;
/* rgb */ color: rgb(145, 56, 178);
/* oklch */ color: oklch(51.9% 0.193 315.4);
Tailwind
colors: {
  custom: {
    50: '#b576ca',
    500: '#9138b2',
    950: '#000000',
  },
}
SCSS
$custom: #9138b2;
$custom-light: #b576ca;
$custom-dark: #000000;
JSON
{
  "hex": "#9138b2",
  "rgb": {
    "r": 145,
    "g": 56,
    "b": 178
  },
  "hsl": {
    "h": 283.77,
    "s": 52.137,
    "l": 45.882
  },
  "oklch": {
    "l": 0.51853,
    "c": 0.19344,
    "h": 315.4
  },
  "luminance": 0.12062
}

Semantic roles & 50–950 ramp

primary
#9138B2
secondary
#93C581
accent
#DC4C73
background
#FBF7FC
surface
#F6EDF8
border
#D0C8D1
text
#120913
muted
#817B82

Preview Lab

Preview with #9138B2

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

Preview Lab → · Contrast checker → · Palette generator →

#9138B2 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva