#9938E1#9938E1

#9938E1 is a mid, highly saturated violet. Relative luminance 0.150; OKLCH L 56.2% C 0.241 H 306.0°. Best body text is #FFFFFF at 5.24:1 contrast (WCAG AA passes).

Color values

HEX#9938E1
RGBrgb(153, 56, 225)
HSLhsl(274, 74%, 55%)
HSVhsv(274, 75%, 88%)
CMYKcmyk(32%, 75.1%, 0%, 11.8%)
CIE-LABlab(45.69, 67.36, -68.40)
CIE-LCHlch(45.69, 96.00, 314.56°)
OKLaboklab(56.21% 0.1413 -0.1946)
OKLCHoklch(56.21% 0.241 306)
XYZxyz(28.1386, 15.0371, 72.6396)
Luminance0.1504 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9938E1 #80E138
analogous
#4538E1 #9938E1 #E138D4
triadic
#9938E1 #E19938 #38E199
tetradic
#9938E1 #E14538 #80E138 #38D4E1
square
#9938E1 #E14538 #80E138 #38D4E1
split-complementary
#9938E1 #D4E138 #38E145
monochromatic
#58158A #7A1DBF #9938E1 #B46DE9 #D0A2F1

Accessibility & contrast

On white

5.24
#9938E1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.01
#9938E1 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9938E1
5.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9938E1#FFFFFF#000000##FFFFFF
##9938E11.005.244.015.24
#FFFFFF5.241.0021.001.00
#0000004.0121.001.0021.00
##FFFFFF5.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0069E6
Deuteranopia (green-blind)
#006DDE
Tritanopia (blue-blind)
#8C628B
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #9938e1;
/* rgb */ color: rgb(153, 56, 225);
/* oklch */ color: oklch(56.2% 0.241 306.0);
Tailwind
colors: {
  custom: {
    50: '#bd78eb',
    500: '#9938e1',
    950: '#000000',
  },
}
SCSS
$custom: #9938e1;
$custom-light: #bd78eb;
$custom-dark: #000000;
JSON
{
  "hex": "#9938e1",
  "rgb": {
    "r": 153,
    "g": 56,
    "b": 225
  },
  "hsl": {
    "h": 274.438,
    "s": 73.799,
    "l": 55.098
  },
  "oklch": {
    "l": 0.56214,
    "c": 0.24052,
    "h": 306
  },
  "luminance": 0.15037
}

Semantic roles & 50–950 ramp

primary
#9938E1
secondary
#B5DE97
accent
#F03786
background
#FCF7FE
surface
#F8EEFD
border
#D1C9D5
text
#130A16
muted
#827C84

Preview Lab

Preview with #9938E1

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

Preview Lab → · Contrast checker → · Palette generator →

#9938E1 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva