#9138C4#9138C4

#9138C4 is a mid, highly saturated violet. Relative luminance 0.128; OKLCH L 53.1% C 0.211 H 310.1°. Best body text is #FFFFFF at 5.89:1 contrast (WCAG AA passes).

Color values

HEX#9138C4
RGBrgb(145, 56, 196)
HSLhsl(278, 56%, 49%)
HSVhsv(278, 71%, 77%)
CMYKcmyk(26%, 71.4%, 0%, 23.1%)
CIE-LABlab(42.51, 59.61, -56.91)
CIE-LCHlch(42.51, 82.42, 316.33°)
OKLaboklab(53.09% 0.1359 -0.1611)
OKLCHoklch(53.09% 0.211 310.1)
XYZxyz(23.0531, 12.8341, 53.4767)
Luminance0.1283 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9138C4 #6BC438
analogous
#4B38C4 #9138C4 #C438B1
triadic
#9138C4 #C49138 #38C491
tetradic
#9138C4 #C44B38 #6BC438 #38B1C4
square
#9138C4 #C44B38 #6BC438 #38B1C4
split-complementary
#9138C4 #B1C438 #38C44B
monochromatic
#4B1D65 #6E2A94 #9138C4 #AB66D3 #C596E1

Accessibility & contrast

On white

5.89
#9138C4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.57
#9138C4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9138C4
5.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9138C4#FFFFFF#000000##FFFFFF
##9138C41.005.893.575.89
#FFFFFF5.891.0021.001.00
#0000003.5721.001.0021.00
##FFFFFF5.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0061C8
Deuteranopia (green-blind)
#1D66C1
Tritanopia (blue-blind)
#8A577B
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #9138c4;
/* rgb */ color: rgb(145, 56, 196);
/* oklch */ color: oklch(53.1% 0.211 310.1);
Tailwind
colors: {
  custom: {
    50: '#b676d7',
    500: '#9138c4',
    950: '#000000',
  },
}
SCSS
$custom: #9138c4;
$custom-light: #b676d7;
$custom-dark: #000000;
JSON
{
  "hex": "#9138c4",
  "rgb": {
    "r": 145,
    "g": 56,
    "b": 196
  },
  "hsl": {
    "h": 278.143,
    "s": 55.556,
    "l": 49.412
  },
  "oklch": {
    "l": 0.53086,
    "c": 0.21077,
    "h": 310.1
  },
  "luminance": 0.12834
}

Semantic roles & 50–950 ramp

primary
#9138C4
secondary
#A3CC8C
accent
#DF4980
background
#FBF7FD
surface
#F6EDFA
border
#D0C8D3
text
#120914
muted
#817B83

Preview Lab

Preview with #9138C4

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

Preview Lab → · Contrast checker → · Palette generator →

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