#9271BA#9271BA

#9271BA is a mid, moderate violet. Relative luminance 0.215; OKLCH L 61.0% C 0.113 H 304.1°. Best body text is #000000 at 5.29:1 contrast (WCAG AA passes).

Color values

HEX#9271BA
RGBrgb(146, 113, 186)
HSLhsl(267, 35%, 59%)
HSVhsv(267, 39%, 73%)
CMYKcmyk(21.5%, 39.2%, 0%, 27.1%)
CIE-LABlab(53.46, 27.76, -33.71)
CIE-LCHlch(53.46, 43.66, 309.47°)
OKLaboklab(60.99% 0.0633 -0.0936)
OKLCHoklch(60.99% 0.113 304.1)
XYZxyz(26.6203, 21.4665, 49.1859)
Luminance0.2147 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9271BA #99BA71
analogous
#7174BA #9271BA #B671BA
triadic
#9271BA #BA9271 #71BA92
tetradic
#9271BA #BA7174 #99BA71 #71BAB6
square
#9271BA #BA7174 #99BA71 #71BAB6
split-complementary
#9271BA #BAB671 #74BA71
monochromatic
#553A77 #734EA0 #9271BA #B29ACE #D1C3E2

Accessibility & contrast

On white

3.97
#9271BA on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.29
#9271BA on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9271BA
5.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9271BA#FFFFFF#000000##000000
##9271BA1.003.975.295.29
#FFFFFF3.971.0021.0021.00
#0000005.2921.001.001.00
##0000005.2921.001.001.00

Color blindness preview

Protanopia (red-blind)
#607FBD
Deuteranopia (green-blind)
#6780B8
Tritanopia (blue-blind)
#8C7D8D
Achromatopsia (no color)
#808080

Design tokens & code

CSS
--color: #9271ba;
/* rgb */ color: rgb(146, 113, 186);
/* oklch */ color: oklch(61.0% 0.113 304.1);
Tailwind
colors: {
  custom: {
    50: '#b39acf',
    500: '#9271ba',
    950: '#000000',
  },
}
SCSS
$custom: #9271ba;
$custom-light: #b39acf;
$custom-dark: #000000;
JSON
{
  "hex": "#9271ba",
  "rgb": {
    "r": 146,
    "g": 113,
    "b": 186
  },
  "hsl": {
    "h": 267.123,
    "s": 34.597,
    "l": 58.627
  },
  "oklch": {
    "l": 0.60987,
    "c": 0.11299,
    "h": 304.1
  },
  "luminance": 0.21466
}

Semantic roles & 50–950 ramp

primary
#9271BA
secondary
#C5D2B5
accent
#CB5D99
background
#FBF9FC
surface
#F6F2F9
border
#D0CCD2
text
#110E14
muted
#807E82

Preview Lab

Preview with #9271BA

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

Preview Lab → · Contrast checker → · Palette generator →

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