#9138D9#9138D9

#9138D9 is a mid, highly saturated violet. Relative luminance 0.139; OKLCH L 54.6% C 0.231 H 304.9°. Best body text is #FFFFFF at 5.57:1 contrast (WCAG AA passes).

Color values

HEX#9138D9
RGBrgb(145, 56, 217)
HSLhsl(273, 68%, 54%)
HSVhsv(273, 74%, 85%)
CMYKcmyk(33.2%, 74.2%, 0%, 14.9%)
CIE-LABlab(44.03, 64.21, -66.58)
CIE-LCHlch(44.03, 92.50, 313.96°)
OKLaboklab(54.64% 0.1322 -0.1895)
OKLCHoklch(54.64% 0.231 304.9)
XYZxyz(25.6128, 13.8580, 66.9577)
Luminance0.1386 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9138D9 #80D938
analogous
#4038D9 #9138D9 #D938D0
triadic
#9138D9 #D99138 #38D991
tetradic
#9138D9 #D94038 #80D938 #38D0D9
square
#9138D9 #D94038 #80D938 #38D0D9
split-complementary
#9138D9 #D0D938 #38D940
monochromatic
#51187E #7122B2 #9138D9 #AD6BE3 #CA9FED

Accessibility & contrast

On white

5.57
#9138D9 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.77
#9138D9 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9138D9
5.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9138D9#FFFFFF#000000##FFFFFF
##9138D91.005.573.775.57
#FFFFFF5.571.0021.001.00
#0000003.7721.001.0021.00
##FFFFFF5.571.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0066DE
Deuteranopia (green-blind)
#0068D6
Tritanopia (blue-blind)
#836086
Achromatopsia (no color)
#686868

Design tokens & code

CSS
--color: #9138d9;
/* rgb */ color: rgb(145, 56, 217);
/* oklch */ color: oklch(54.6% 0.231 304.9);
Tailwind
colors: {
  custom: {
    50: '#b777e6',
    500: '#9138d9',
    950: '#000000',
  },
}
SCSS
$custom: #9138d9;
$custom-light: #b777e6;
$custom-dark: #000000;
JSON
{
  "hex": "#9138d9",
  "rgb": {
    "r": 145,
    "g": 56,
    "b": 217
  },
  "hsl": {
    "h": 273.168,
    "s": 67.932,
    "l": 53.529
  },
  "oklch": {
    "l": 0.54636,
    "c": 0.2311,
    "h": 304.9
  },
  "luminance": 0.13858
}

Semantic roles & 50–950 ramp

primary
#9138D9
secondary
#B3D994
accent
#EB3D8B
background
#FBF7FE
surface
#F7EEFC
border
#D0C9D5
text
#120916
muted
#817B84

Preview Lab

Preview with #9138D9

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

Preview Lab → · Contrast checker → · Palette generator →

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