#9A38E1#9A38E1

#9A38E1 is a mid, highly saturated violet. Relative luminance 0.151; OKLCH L 56.3% C 0.241 H 306.3°. Best body text is #FFFFFF at 5.21:1 contrast (WCAG AA passes).

Color values

HEX#9A38E1
RGBrgb(154, 56, 225)
HSLhsl(275, 74%, 55%)
HSVhsv(275, 75%, 88%)
CMYKcmyk(31.6%, 75.1%, 0%, 11.8%)
CIE-LABlab(45.82, 67.53, -68.18)
CIE-LCHlch(45.82, 95.96, 314.72°)
OKLaboklab(56.34% 0.1427 -0.1939)
OKLCHoklch(56.34% 0.241 306.3)
XYZxyz(28.3282, 15.1349, 72.6485)
Luminance0.1514 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9A38E1 #7FE138
analogous
#4638E1 #9A38E1 #E138D3
triadic
#9A38E1 #E19A38 #38E19A
tetradic
#9A38E1 #E14638 #7FE138 #38D3E1
square
#9A38E1 #E14638 #7FE138 #38D3E1
split-complementary
#9A38E1 #D3E138 #38E146
monochromatic
#59158A #7B1DBF #9A38E1 #B56DE9 #D0A2F1

Accessibility & contrast

On white

5.21
#9A38E1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.03
#9A38E1 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9A38E1
5.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9A38E1#FFFFFF#000000##FFFFFF
##9A38E11.005.214.035.21
#FFFFFF5.211.0021.001.00
#0000004.0321.001.0021.00
##FFFFFF5.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006AE6
Deuteranopia (green-blind)
#006DDE
Tritanopia (blue-blind)
#8D628B
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #9a38e1;
/* rgb */ color: rgb(154, 56, 225);
/* oklch */ color: oklch(56.3% 0.241 306.3);
Tailwind
colors: {
  custom: {
    50: '#be79eb',
    500: '#9a38e1',
    950: '#000000',
  },
}
SCSS
$custom: #9a38e1;
$custom-light: #be79eb;
$custom-dark: #000000;
JSON
{
  "hex": "#9a38e1",
  "rgb": {
    "r": 154,
    "g": 56,
    "b": 225
  },
  "hsl": {
    "h": 274.793,
    "s": 73.799,
    "l": 55.098
  },
  "oklch": {
    "l": 0.56336,
    "c": 0.24076,
    "h": 306.3
  },
  "luminance": 0.15135
}

Semantic roles & 50–950 ramp

primary
#9A38E1
secondary
#B5DE97
accent
#F03785
background
#FCF7FE
surface
#F8EEFD
border
#D1C9D5
text
#130A16
muted
#827C84

Preview Lab

Preview with #9A38E1

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

Preview Lab → · Contrast checker → · Palette generator →

#9A38E1 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva