#6821BA#6821BA

#6821BA is a mid, highly saturated violet. Relative luminance 0.076; OKLCH L 45.0% C 0.216 H 297.7°. Best body text is #FFFFFF at 8.35:1 contrast (WCAG AA passes).

Color values

HEX#6821BA
RGBrgb(104, 33, 186)
HSLhsl(268, 70%, 43%)
HSVhsv(268, 82%, 73%)
CMYKcmyk(44.1%, 82.3%, 0%, 27.1%)
CIE-LABlab(33.08, 59.32, -66.64)
CIE-LCHlch(33.08, 89.22, 311.67°)
OKLaboklab(45.05% 0.1001 -0.1909)
OKLCHoklch(45.05% 0.216 297.7)
XYZxyz(15.1134, 7.5756, 47.1108)
Luminance0.0758 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6821BA #73BA21
analogous
#2127BA #6821BA #B421BA
triadic
#6821BA #BA6821 #21BA68
tetradic
#6821BA #BA2127 #73BA21 #21BAB4
square
#6821BA #BA2127 #73BA21 #21BAB4
split-complementary
#6821BA #BAB421 #27BA21
monochromatic
#2E0F52 #4B1886 #6821BA #863CDC #A670E6

Accessibility & contrast

On white

8.35
#6821BA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.52
#6821BA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6821BA
8.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6821BA#FFFFFF#000000##FFFFFF
##6821BA1.008.352.528.35
#FFFFFF8.351.0021.001.00
#0000002.5221.001.0021.00
##FFFFFF8.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004EBE
Deuteranopia (green-blind)
#004CB7
Tritanopia (blue-blind)
#524E6F
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #6821ba;
/* rgb */ color: rgb(104, 33, 186);
/* oklch */ color: oklch(45.0% 0.216 297.7);
Tailwind
colors: {
  custom: {
    50: '#9b67d0',
    500: '#6821ba',
    950: '#000000',
  },
}
SCSS
$custom: #6821ba;
$custom-light: #9b67d0;
$custom-dark: #000000;
JSON
{
  "hex": "#6821ba",
  "rgb": {
    "r": 104,
    "g": 33,
    "b": 186
  },
  "hsl": {
    "h": 267.843,
    "s": 69.863,
    "l": 42.941
  },
  "oklch": {
    "l": 0.45049,
    "c": 0.21556,
    "h": 297.7
  },
  "luminance": 0.07576
}

Semantic roles & 50–950 ramp

primary
#6821BA
secondary
#9FCC6B
accent
#ED3B9A
background
#FAF6FC
surface
#F4EBF9
border
#CEC6D2
text
#0F0614
muted
#7F7A82

Preview Lab

Preview with #6821BA

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

Preview Lab → · Contrast checker → · Palette generator →

#6821BA Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva