#8271DB#8271DB

#8271DB is a mid, vivid blue. Relative luminance 0.217; OKLCH L 61.4% C 0.156 H 288.3°. Best body text is #000000 at 5.33:1 contrast (WCAG AA passes).

Color values

HEX#8271DB
RGBrgb(130, 113, 219)
HSLhsl(250, 60%, 65%)
HSVhsv(250, 48%, 86%)
CMYKcmyk(40.6%, 48.4%, 0%, 14.1%)
CIE-LABlab(53.67, 31.95, -52.25)
CIE-LCHlch(53.67, 61.25, 301.44°)
OKLaboklab(61.35% 0.0489 -0.148)
OKLCHoklch(61.35% 0.156 288.3)
XYZxyz(27.8937, 21.6696, 69.7171)
Luminance0.2167 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8271DB #CADB71
analogous
#7195DB #8271DB #B771DB
triadic
#8271DB #DB8271 #71DB82
tetradic
#8271DB #DB7195 #CADB71 #71DBB7
square
#8271DB #DB7195 #CADB71 #71DBB7
split-complementary
#8271DB #DBB771 #95DB71
monochromatic
#3E2AA7 #5740CF #8271DB #ADA2E7 #D8D3F4

Accessibility & contrast

On white

3.94
#8271DB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.33
#8271DB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8271DB
5.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8271DB#FFFFFF#000000##000000
##8271DB1.003.945.335.33
#FFFFFF3.941.0021.0021.00
#0000005.3321.001.001.00
##0000005.3321.001.001.00

Color blindness preview

Protanopia (red-blind)
#4783DF
Deuteranopia (green-blind)
#477ED9
Tritanopia (blue-blind)
#69879C
Achromatopsia (no color)
#808080

Design tokens & code

CSS
--color: #8271db;
/* rgb */ color: rgb(130, 113, 219);
/* oklch */ color: oklch(61.4% 0.156 288.3);
Tailwind
colors: {
  custom: {
    50: '#ab9ae7',
    500: '#8271db',
    950: '#000000',
  },
}
SCSS
$custom: #8271db;
$custom-light: #ab9ae7;
$custom-dark: #000000;
JSON
{
  "hex": "#8271db",
  "rgb": {
    "r": 130,
    "g": 113,
    "b": 219
  },
  "hsl": {
    "h": 249.623,
    "s": 59.551,
    "l": 65.098
  },
  "oklch": {
    "l": 0.6135,
    "c": 0.15588,
    "h": 288.3
  },
  "luminance": 0.21671
}

Semantic roles & 50–950 ramp

primary
#8271DB
secondary
#E0E6C2
accent
#C71EAC
background
#FAF9FE
surface
#F4F2FC
border
#CECCD5
text
#100E16
muted
#7F7E84

Preview Lab

Preview with #8271DB

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

Preview Lab → · Contrast checker → · Palette generator →

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