#8271BC#8271BC

#8271BC is a mid, moderate violet. Relative luminance 0.202; OKLCH L 59.6% C 0.113 H 293.1°. Best body text is #000000 at 5.04:1 contrast (WCAG AA passes).

Color values

HEX#8271BC
RGBrgb(130, 113, 188)
HSLhsl(254, 36%, 59%)
HSVhsv(254, 40%, 74%)
CMYKcmyk(30.9%, 39.9%, 0%, 26.3%)
CIE-LABlab(52.05, 23.54, -37.17)
CIE-LCHlch(52.05, 44.00, 302.34°)
OKLaboklab(59.59% 0.0443 -0.104)
OKLCHoklch(59.59% 0.113 293.1)
XYZxyz(24.1859, 20.1865, 50.1893)
Luminance0.2019 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8271BC #ABBC71
analogous
#7186BC #8271BC #A871BC
triadic
#8271BC #BC8271 #71BC82
tetradic
#8271BC #BC7186 #ABBC71 #71BCA8
square
#8271BC #BC7186 #ABBC71 #71BCA8
split-complementary
#8271BC #BCA871 #86BC71
monochromatic
#483979 #604DA3 #8271BC #A79BD0 #CBC4E3

Accessibility & contrast

On white

4.17
#8271BC on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.04
#8271BC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8271BC
5.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8271BC#FFFFFF#000000##000000
##8271BC1.004.175.045.04
#FFFFFF4.171.0021.0021.00
#0000005.0421.001.001.00
##0000005.0421.001.001.00

Color blindness preview

Protanopia (red-blind)
#5B7DBF
Deuteranopia (green-blind)
#5D7BBA
Tritanopia (blue-blind)
#757F8D
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #8271bc;
/* rgb */ color: rgb(130, 113, 188);
/* oklch */ color: oklch(59.6% 0.113 293.1);
Tailwind
colors: {
  custom: {
    50: '#a89ad0',
    500: '#8271bc',
    950: '#000000',
  },
}
SCSS
$custom: #8271bc;
$custom-light: #a89ad0;
$custom-dark: #000000;
JSON
{
  "hex": "#8271bc",
  "rgb": {
    "r": 130,
    "g": 113,
    "b": 188
  },
  "hsl": {
    "h": 253.6,
    "s": 35.885,
    "l": 59.02
  },
  "oklch": {
    "l": 0.59591,
    "c": 0.11302,
    "h": 293.1
  },
  "luminance": 0.20187
}

Semantic roles & 50–950 ramp

primary
#8271BC
secondary
#CCD3B6
accent
#CC5CB3
background
#FAF9FC
surface
#F4F2F9
border
#CECCD2
text
#100E14
muted
#7F7E82

Preview Lab

Preview with #8271BC

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

Preview Lab → · Contrast checker → · Palette generator →

#8271BC Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva