#8271DC#8271DC

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

Color values

HEX#8271DC
RGBrgb(130, 113, 220)
HSLhsl(250, 60%, 65%)
HSVhsv(250, 49%, 86%)
CMYKcmyk(40.9%, 48.6%, 0%, 13.7%)
CIE-LABlab(53.73, 32.23, -52.73)
CIE-LCHlch(53.73, 61.80, 301.44°)
OKLaboklab(61.41% 0.049 -0.1494)
OKLCHoklch(61.41% 0.157 288.2)
XYZxyz(28.0257, 21.7224, 70.4125)
Luminance0.2172 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8271DC #CBDC71
analogous
#7195DC #8271DC #B871DC
triadic
#8271DC #DC8271 #71DC82
tetradic
#8271DC #DC7195 #CBDC71 #71DCB8
square
#8271DC #DC7195 #CBDC71 #71DCB8
split-complementary
#8271DC #DCB871 #95DC71
monochromatic
#3E2AA9 #5740D0 #8271DC #ADA2E8 #D8D3F4

Accessibility & contrast

On white

3.93
#8271DC on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.34
#8271DC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8271DC
5.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8271DC#FFFFFF#000000##000000
##8271DC1.003.935.345.34
#FFFFFF3.931.0021.0021.00
#0000005.3421.001.001.00
##0000005.3421.001.001.00

Color blindness preview

Protanopia (red-blind)
#4683E0
Deuteranopia (green-blind)
#467EDA
Tritanopia (blue-blind)
#68879C
Achromatopsia (no color)
#808080

Design tokens & code

CSS
--color: #8271dc;
/* rgb */ color: rgb(130, 113, 220);
/* oklch */ color: oklch(61.4% 0.157 288.2);
Tailwind
colors: {
  custom: {
    50: '#ab9ae7',
    500: '#8271dc',
    950: '#000000',
  },
}
SCSS
$custom: #8271dc;
$custom-light: #ab9ae7;
$custom-dark: #000000;
JSON
{
  "hex": "#8271dc",
  "rgb": {
    "r": 130,
    "g": 113,
    "b": 220
  },
  "hsl": {
    "h": 249.533,
    "s": 60.452,
    "l": 65.294
  },
  "oklch": {
    "l": 0.61411,
    "c": 0.15722,
    "h": 288.2
  },
  "luminance": 0.21723
}

Semantic roles & 50–950 ramp

primary
#8271DC
secondary
#E1E6C2
accent
#C81DAD
background
#FAF9FE
surface
#F4F2FC
border
#CECCD5
text
#100E16
muted
#7F7E84

Preview Lab

Preview with #8271DC

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

Preview Lab → · Contrast checker → · Palette generator →

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