#9271CB#9271CB

#9271CB is a mid, vivid violet. Relative luminance 0.222; OKLCH L 61.9% C 0.135 H 299.3°. Best body text is #000000 at 5.45:1 contrast (WCAG AA passes).

Color values

HEX#9271CB
RGBrgb(146, 113, 203)
HSLhsl(262, 46%, 62%)
HSVhsv(262, 44%, 80%)
CMYKcmyk(28.1%, 44.3%, 0%, 20.4%)
CIE-LABlab(54.27, 31.90, -42.15)
CIE-LCHlch(54.27, 52.86, 307.12°)
OKLaboklab(61.87% 0.0664 -0.1181)
OKLCHoklch(61.87% 0.135 299.3)
XYZxyz(28.5362, 22.2329, 59.2763)
Luminance0.2223 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9271CB #AACB71
analogous
#717DCB #9271CB #BF71CB
triadic
#9271CB #CB9271 #71CB92
tetradic
#9271CB #CB717D #AACB71 #71CBBF
square
#9271CB #CB717D #AACB71 #71CBBF
split-complementary
#9271CB #CBBF71 #7DCB71
monochromatic
#55348E #7044BB #9271CB #B49EDB #D7CBEC

Accessibility & contrast

On white

3.86
#9271CB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.45
#9271CB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9271CB
5.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9271CB#FFFFFF#000000##000000
##9271CB1.003.865.455.45
#FFFFFF3.861.0021.0021.00
#0000005.4521.001.001.00
##0000005.4521.001.001.00

Color blindness preview

Protanopia (red-blind)
#5782CE
Deuteranopia (green-blind)
#5E81C9
Tritanopia (blue-blind)
#878194
Achromatopsia (no color)
#828282

Design tokens & code

CSS
--color: #9271cb;
/* rgb */ color: rgb(146, 113, 203);
/* oklch */ color: oklch(61.9% 0.135 299.3);
Tailwind
colors: {
  custom: {
    50: '#b49adb',
    500: '#9271cb',
    950: '#000000',
  },
}
SCSS
$custom: #9271cb;
$custom-light: #b49adb;
$custom-dark: #000000;
JSON
{
  "hex": "#9271cb",
  "rgb": {
    "r": 146,
    "g": 113,
    "b": 203
  },
  "hsl": {
    "h": 262,
    "s": 46.392,
    "l": 61.961
  },
  "oklch": {
    "l": 0.61871,
    "c": 0.13543,
    "h": 299.3
  },
  "luminance": 0.22233
}

Semantic roles & 50–950 ramp

primary
#9271CB
secondary
#D0DCBB
accent
#BA2C86
background
#FBF9FD
surface
#F6F2FB
border
#D0CCD4
text
#110E15
muted
#807E83

Preview Lab

Preview with #9271CB

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

Preview Lab → · Contrast checker → · Palette generator →

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