#9271EB#9271EB

#9271EB is a light, vivid violet. Relative luminance 0.239; OKLCH L 63.7% C 0.177 H 293.2°. Best body text is #000000 at 5.78:1 contrast (WCAG AA passes).

Color values

HEX#9271EB
RGBrgb(146, 113, 235)
HSLhsl(256, 75%, 68%)
HSVhsv(256, 52%, 92%)
CMYKcmyk(37.9%, 51.9%, 0%, 7.8%)
CIE-LABlab(56.01, 40.16, -57.42)
CIE-LCHlch(56.01, 70.07, 304.97°)
OKLaboklab(63.73% 0.0697 -0.1627)
OKLCHoklch(63.73% 0.177 293.2)
XYZxyz(32.7506, 23.9186, 81.4724)
Luminance0.2392 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9271EB #CAEB71
analogous
#718DEB #9271EB #CF71EB
triadic
#9271EB #EB9271 #71EB92
tetradic
#9271EB #EB718D #CAEB71 #71EBCF
square
#9271EB #EB718D #CAEB71 #71EBCF
split-complementary
#9271EB #EBCF71 #8DEB71
monochromatic
#4A1CC6 #693BE3 #9271EB #BBA7F3 #E4DCFA

Accessibility & contrast

On white

3.63
#9271EB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.78
#9271EB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9271EB
5.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9271EB#FFFFFF#000000##000000
##9271EB1.003.635.785.78
#FFFFFF3.631.0021.0021.00
#0000005.7821.001.001.00
##0000005.7821.001.001.00

Color blindness preview

Protanopia (red-blind)
#3D88EF
Deuteranopia (green-blind)
#4484E8
Tritanopia (blue-blind)
#7B8AA3
Achromatopsia (no color)
#868686

Design tokens & code

CSS
--color: #9271eb;
/* rgb */ color: rgb(146, 113, 235);
/* oklch */ color: oklch(63.7% 0.177 293.2);
Tailwind
colors: {
  custom: {
    50: '#b69af2',
    500: '#9271eb',
    950: '#000000',
  },
}
SCSS
$custom: #9271eb;
$custom-light: #b69af2;
$custom-dark: #000000;
JSON
{
  "hex": "#9271eb",
  "rgb": {
    "r": 146,
    "g": 113,
    "b": 235
  },
  "hsl": {
    "h": 256.23,
    "s": 75.309,
    "l": 68.235
  },
  "oklch": {
    "l": 0.63729,
    "c": 0.17702,
    "h": 293.2
  },
  "luminance": 0.23919
}

Semantic roles & 50–950 ramp

primary
#9271EB
secondary
#E4EEC9
accent
#D70EA1
background
#FBF9FE
surface
#F6F2FD
border
#D0CCD5
text
#120E17
muted
#817E85

Preview Lab

Preview with #9271EB

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

Preview Lab → · Contrast checker → · Palette generator →

#9271EB Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva