#9138D2#9138D2

#9138D2 is a mid, highly saturated violet. Relative luminance 0.135; OKLCH L 54.1% C 0.224 H 306.6°. Best body text is #FFFFFF at 5.68:1 contrast (WCAG AA passes).

Color values

HEX#9138D2
RGBrgb(145, 56, 210)
HSLhsl(275, 63%, 52%)
HSVhsv(275, 73%, 82%)
CMYKcmyk(31%, 73.3%, 0%, 17.6%)
CIE-LABlab(43.51, 62.66, -63.40)
CIE-LCHlch(43.51, 89.14, 314.66°)
OKLaboklab(54.11% 0.1336 -0.1802)
OKLCHoklch(54.11% 0.224 306.6)
XYZxyz(24.7216, 13.5015, 62.2640)
Luminance0.1350 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9138D2 #79D238
analogous
#4438D2 #9138D2 #D238C6
triadic
#9138D2 #D29138 #38D291
tetradic
#9138D2 #D24438 #79D238 #38C6D2
square
#9138D2 #D24438 #79D238 #38C6D2
split-complementary
#9138D2 #C6D238 #38D244
monochromatic
#4F1A75 #7026A7 #9138D2 #AD6ADD #C89CE9

Accessibility & contrast

On white

5.68
#9138D2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.70
#9138D2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9138D2
5.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9138D2#FFFFFF#000000##FFFFFF
##9138D21.005.683.705.68
#FFFFFF5.681.0021.001.00
#0000003.7021.001.0021.00
##FFFFFF5.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0064D6
Deuteranopia (green-blind)
#0067CF
Tritanopia (blue-blind)
#865D82
Achromatopsia (no color)
#676767

Design tokens & code

CSS
--color: #9138d2;
/* rgb */ color: rgb(145, 56, 210);
/* oklch */ color: oklch(54.1% 0.224 306.6);
Tailwind
colors: {
  custom: {
    50: '#b777e1',
    500: '#9138d2',
    950: '#000000',
  },
}
SCSS
$custom: #9138d2;
$custom-light: #b777e1;
$custom-dark: #000000;
JSON
{
  "hex": "#9138d2",
  "rgb": {
    "r": 145,
    "g": 56,
    "b": 210
  },
  "hsl": {
    "h": 274.675,
    "s": 63.115,
    "l": 52.157
  },
  "oklch": {
    "l": 0.54107,
    "c": 0.22432,
    "h": 306.6
  },
  "luminance": 0.13501
}

Semantic roles & 50–950 ramp

primary
#9138D2
secondary
#AED591
accent
#E64287
background
#FBF7FD
surface
#F7EEFB
border
#D0C9D4
text
#120915
muted
#817B83

Preview Lab

Preview with #9138D2

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

Preview Lab → · Contrast checker → · Palette generator →

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