#821FBB#821FBB

#821FBB is a mid, highly saturated violet. Relative luminance 0.093; OKLCH L 48.3% C 0.223 H 308.5°. Best body text is #FFFFFF at 7.34:1 contrast (WCAG AA passes).

Color values

HEX#821FBB
RGBrgb(130, 31, 187)
HSLhsl(278, 72%, 43%)
HSVhsv(278, 83%, 73%)
CMYKcmyk(30.5%, 83.4%, 0%, 26.7%)
CIE-LABlab(36.58, 63.97, -61.36)
CIE-LCHlch(36.58, 88.65, 316.19°)
OKLaboklab(48.26% 0.1386 -0.1745)
OKLCHoklch(48.26% 0.223 308.5)
XYZxyz(18.6637, 9.3140, 47.8187)
Luminance0.0931 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#821FBB #58BB1F
analogous
#341FBB #821FBB #BB1FA6
triadic
#821FBB #BB821F #1FBB82
tetradic
#821FBB #BB341F #58BB1F #1FA6BB
square
#821FBB #BB341F #58BB1F #1FA6BB
split-complementary
#821FBB #A6BB1F #1FBB34
monochromatic
#390E52 #5E1687 #821FBB #A239DE #BB6EE7

Accessibility & contrast

On white

7.34
#821FBB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.86
#821FBB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #821FBB
7.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##821FBB#FFFFFF#000000##FFFFFF
##821FBB1.007.342.867.34
#FFFFFF7.341.0021.001.00
#0000002.8621.001.0021.00
##FFFFFF7.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0053BF
Deuteranopia (green-blind)
#0057B8
Tritanopia (blue-blind)
#794A70
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #821fbb;
/* rgb */ color: rgb(130, 31, 187);
/* oklch */ color: oklch(48.3% 0.223 308.5);
Tailwind
colors: {
  custom: {
    50: '#ac69d0',
    500: '#821fbb',
    950: '#000000',
  },
}
SCSS
$custom: #821fbb;
$custom-light: #ac69d0;
$custom-dark: #000000;
JSON
{
  "hex": "#821fbb",
  "rgb": {
    "r": 130,
    "g": 31,
    "b": 187
  },
  "hsl": {
    "h": 278.077,
    "s": 71.56,
    "l": 42.745
  },
  "oklch": {
    "l": 0.48263,
    "c": 0.2229,
    "h": 308.5
  },
  "luminance": 0.09314
}

Semantic roles & 50–950 ramp

primary
#821FBB
secondary
#8DCD69
accent
#EE3A7C
background
#FBF6FC
surface
#F6ECF9
border
#D0C7D2
text
#110714
muted
#807A82

Preview Lab

Preview with #821FBB

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

Preview Lab → · Contrast checker → · Palette generator →

#821FBB Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva