#8271CB#8271CB

#8271CB is a mid, vivid violet. Relative luminance 0.209; OKLCH L 60.4% C 0.134 H 290.5°. Best body text is #000000 at 5.17:1 contrast (WCAG AA passes).

Color values

HEX#8271CB
RGBrgb(130, 113, 203)
HSLhsl(251, 46%, 62%)
HSVhsv(251, 44%, 80%)
CMYKcmyk(36%, 44.3%, 0%, 20.4%)
CIE-LABlab(52.80, 27.54, -44.57)
CIE-LCHlch(52.80, 52.39, 301.71°)
OKLaboklab(60.41% 0.0469 -0.1255)
OKLCHoklch(60.41% 0.134 290.5)
XYZxyz(25.8877, 20.8672, 59.1522)
Luminance0.2087 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8271CB #BACB71
analogous
#718DCB #8271CB #AF71CB
triadic
#8271CB #CB8271 #71CB82
tetradic
#8271CB #CB718D #BACB71 #71CBAF
square
#8271CB #CB718D #BACB71 #71CBAF
split-complementary
#8271CB #CBAF71 #8DCB71
monochromatic
#45348E #5B44BB #8271CB #A99EDB #D1CBEC

Accessibility & contrast

On white

4.06
#8271CB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.17
#8271CB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8271CB
5.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8271CB#FFFFFF#000000##000000
##8271CB1.004.065.175.17
#FFFFFF4.061.0021.0021.00
#0000005.1721.001.001.00
##0000005.1721.001.001.00

Color blindness preview

Protanopia (red-blind)
#5380CE
Deuteranopia (green-blind)
#547CC9
Tritanopia (blue-blind)
#708294
Achromatopsia (no color)
#7E7E7E

Design tokens & code

CSS
--color: #8271cb;
/* rgb */ color: rgb(130, 113, 203);
/* oklch */ color: oklch(60.4% 0.134 290.5);
Tailwind
colors: {
  custom: {
    50: '#a99adb',
    500: '#8271cb',
    950: '#000000',
  },
}
SCSS
$custom: #8271cb;
$custom-light: #a99adb;
$custom-dark: #000000;
JSON
{
  "hex": "#8271cb",
  "rgb": {
    "r": 130,
    "g": 113,
    "b": 203
  },
  "hsl": {
    "h": 251.333,
    "s": 46.392,
    "l": 61.961
  },
  "oklch": {
    "l": 0.60412,
    "c": 0.13398,
    "h": 290.5
  },
  "luminance": 0.20868
}

Semantic roles & 50–950 ramp

primary
#8271CB
secondary
#D6DCBB
accent
#BA2C9F
background
#FAF9FD
surface
#F4F2FB
border
#CECCD4
text
#100E15
muted
#7F7E83

Preview Lab

Preview with #8271CB

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

Preview Lab → · Contrast checker → · Palette generator →

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