#9138CA#9138CA

#9138CA is a mid, highly saturated violet. Relative luminance 0.131; OKLCH L 53.5% C 0.217 H 308.6°. Best body text is #FFFFFF at 5.80:1 contrast (WCAG AA passes).

Color values

HEX#9138CA
RGBrgb(145, 56, 202)
HSLhsl(277, 58%, 51%)
HSVhsv(277, 72%, 79%)
CMYKcmyk(28.2%, 72.3%, 0%, 20.8%)
CIE-LABlab(42.93, 60.91, -59.72)
CIE-LCHlch(42.93, 85.30, 315.56°)
OKLaboklab(53.52% 0.135 -0.1694)
OKLCHoklch(53.52% 0.217 308.6)
XYZxyz(23.7497, 13.1128, 57.1455)
Luminance0.1311 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9138CA #71CA38
analogous
#4838CA #9138CA #CA38BA
triadic
#9138CA #CA9138 #38CA91
tetradic
#9138CA #CA4838 #71CA38 #38BACA
square
#9138CA #CA4838 #71CA38 #38BACA
split-complementary
#9138CA #BACA38 #38CA48
monochromatic
#4C1D6B #6F299B #9138CA #AC68D7 #C699E4

Accessibility & contrast

On white

5.80
#9138CA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.62
#9138CA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9138CA
5.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9138CA#FFFFFF#000000##FFFFFF
##9138CA1.005.803.625.80
#FFFFFF5.801.0021.001.00
#0000003.6221.001.0021.00
##FFFFFF5.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0062CE
Deuteranopia (green-blind)
#0B66C7
Tritanopia (blue-blind)
#885A7E
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #9138ca;
/* rgb */ color: rgb(145, 56, 202);
/* oklch */ color: oklch(53.5% 0.217 308.6);
Tailwind
colors: {
  custom: {
    50: '#b677db',
    500: '#9138ca',
    950: '#000000',
  },
}
SCSS
$custom: #9138ca;
$custom-light: #b677db;
$custom-dark: #000000;
JSON
{
  "hex": "#9138ca",
  "rgb": {
    "r": 145,
    "g": 56,
    "b": 202
  },
  "hsl": {
    "h": 276.575,
    "s": 57.937,
    "l": 50.588
  },
  "oklch": {
    "l": 0.53518,
    "c": 0.21658,
    "h": 308.6
  },
  "luminance": 0.13112
}

Semantic roles & 50–950 ramp

primary
#9138CA
secondary
#A8CF8E
accent
#E14783
background
#FBF7FD
surface
#F6EEFB
border
#D0C9D4
text
#120915
muted
#817B83

Preview Lab

Preview with #9138CA

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

Preview Lab → · Contrast checker → · Palette generator →

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