#9271BB#9271BB

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

Color values

HEX#9271BB
RGBrgb(146, 113, 187)
HSLhsl(267, 35%, 59%)
HSVhsv(267, 40%, 73%)
CMYKcmyk(21.9%, 39.6%, 0%, 26.7%)
CIE-LABlab(53.50, 27.99, -34.21)
CIE-LCHlch(53.50, 44.20, 309.29°)
OKLaboklab(61.04% 0.0635 -0.0951)
OKLCHoklch(61.04% 0.114 303.7)
XYZxyz(26.7269, 21.5092, 49.7477)
Luminance0.2151 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9271BB #9ABB71
analogous
#7175BB #9271BB #B771BB
triadic
#9271BB #BB9271 #71BB92
tetradic
#9271BB #BB7175 #9ABB71 #71BBB7
square
#9271BB #BB7175 #9ABB71 #71BBB7
split-complementary
#9271BB #BBB771 #75BB71
monochromatic
#553A78 #734DA1 #9271BB #B29ACF #D2C4E3

Accessibility & contrast

On white

3.96
#9271BB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.30
#9271BB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9271BB
5.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9271BB#FFFFFF#000000##000000
##9271BB1.003.965.305.30
#FFFFFF3.961.0021.0021.00
#0000005.3021.001.001.00
##0000005.3021.001.001.00

Color blindness preview

Protanopia (red-blind)
#607FBE
Deuteranopia (green-blind)
#6780B9
Tritanopia (blue-blind)
#8B7D8D
Achromatopsia (no color)
#808080

Design tokens & code

CSS
--color: #9271bb;
/* rgb */ color: rgb(146, 113, 187);
/* oklch */ color: oklch(61.0% 0.114 303.7);
Tailwind
colors: {
  custom: {
    50: '#b39acf',
    500: '#9271bb',
    950: '#000000',
  },
}
SCSS
$custom: #9271bb;
$custom-light: #b39acf;
$custom-dark: #000000;
JSON
{
  "hex": "#9271bb",
  "rgb": {
    "r": 146,
    "g": 113,
    "b": 187
  },
  "hsl": {
    "h": 266.757,
    "s": 35.238,
    "l": 58.824
  },
  "oklch": {
    "l": 0.61037,
    "c": 0.11431,
    "h": 303.7
  },
  "luminance": 0.21509
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #9271BB

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

Preview Lab → · Contrast checker → · Palette generator →

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