#9138CB#9138CB

#9138CB is a mid, highly saturated violet. Relative luminance 0.132; OKLCH L 53.6% C 0.218 H 308.3°. Best body text is #FFFFFF at 5.78:1 contrast (WCAG AA passes).

Color values

HEX#9138CB
RGBrgb(145, 56, 203)
HSLhsl(276, 59%, 51%)
HSVhsv(276, 72%, 80%)
CMYKcmyk(28.6%, 72.4%, 0%, 20.4%)
CIE-LABlab(43.00, 61.12, -60.18)
CIE-LCHlch(43.00, 85.78, 315.45°)
OKLaboklab(53.59% 0.1348 -0.1707)
OKLCHoklch(53.59% 0.218 308.3)
XYZxyz(23.8685, 13.1603, 57.7711)
Luminance0.1316 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9138CB #72CB38
analogous
#4738CB #9138CB #CB38BB
triadic
#9138CB #CB9138 #38CB91
tetradic
#9138CB #CB4738 #72CB38 #38BBCB
square
#9138CB #CB4738 #72CB38 #38BBCB
split-complementary
#9138CB #BBCB38 #38CB47
monochromatic
#4D1C6C #6F299D #9138CB #AC69D8 #C799E4

Accessibility & contrast

On white

5.78
#9138CB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.63
#9138CB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9138CB
5.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9138CB#FFFFFF#000000##FFFFFF
##9138CB1.005.783.635.78
#FFFFFF5.781.0021.001.00
#0000003.6321.001.0021.00
##FFFFFF5.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0062CF
Deuteranopia (green-blind)
#0666C8
Tritanopia (blue-blind)
#885A7E
Achromatopsia (no color)
#666666

Design tokens & code

CSS
--color: #9138cb;
/* rgb */ color: rgb(145, 56, 203);
/* oklch */ color: oklch(53.6% 0.218 308.3);
Tailwind
colors: {
  custom: {
    50: '#b677dc',
    500: '#9138cb',
    950: '#000000',
  },
}
SCSS
$custom: #9138cb;
$custom-light: #b677dc;
$custom-dark: #000000;
JSON
{
  "hex": "#9138cb",
  "rgb": {
    "r": 145,
    "g": 56,
    "b": 203
  },
  "hsl": {
    "h": 276.327,
    "s": 58.566,
    "l": 50.784
  },
  "oklch": {
    "l": 0.53591,
    "c": 0.21754,
    "h": 308.3
  },
  "luminance": 0.1316
}

Semantic roles & 50–950 ramp

primary
#9138CB
secondary
#A9D08F
accent
#E24683
background
#FBF7FD
surface
#F6EEFB
border
#D0C9D4
text
#120915
muted
#817B83

Preview Lab

Preview with #9138CB

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

Preview Lab → · Contrast checker → · Palette generator →

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