#6821BD#6821BD

#6821BD is a mid, highly saturated violet. Relative luminance 0.077; OKLCH L 45.3% C 0.219 H 296.9°. Best body text is #FFFFFF at 8.26:1 contrast (WCAG AA passes).

Color values

HEX#6821BD
RGBrgb(104, 33, 189)
HSLhsl(267, 70%, 44%)
HSVhsv(267, 83%, 74%)
CMYKcmyk(45%, 82.5%, 0%, 25.9%)
CIE-LABlab(33.36, 60.03, -67.96)
CIE-LCHlch(33.36, 90.68, 311.46°)
OKLaboklab(45.32% 0.099 -0.1948)
OKLCHoklch(45.32% 0.219 296.9)
XYZxyz(15.4356, 7.7046, 48.8081)
Luminance0.0770 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6821BD #76BD21
analogous
#2128BD #6821BD #B621BD
triadic
#6821BD #BD6821 #21BD68
tetradic
#6821BD #BD2128 #76BD21 #21BDB6
square
#6821BD #BD2128 #76BD21 #21BDB6
split-complementary
#6821BD #BDB621 #28BD21
monochromatic
#2F0F55 #4B1889 #6821BD #863EDD #A772E6

Accessibility & contrast

On white

8.26
#6821BD on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.54
#6821BD on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6821BD
8.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6821BD#FFFFFF#000000##FFFFFF
##6821BD1.008.262.548.26
#FFFFFF8.261.0021.001.00
#0000002.5421.001.0021.00
##FFFFFF8.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004FC1
Deuteranopia (green-blind)
#004CBA
Tritanopia (blue-blind)
#514F71
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #6821bd;
/* rgb */ color: rgb(104, 33, 189);
/* oklch */ color: oklch(45.3% 0.219 296.9);
Tailwind
colors: {
  custom: {
    50: '#9c67d2',
    500: '#6821bd',
    950: '#000000',
  },
}
SCSS
$custom: #6821bd;
$custom-light: #9c67d2;
$custom-dark: #000000;
JSON
{
  "hex": "#6821bd",
  "rgb": {
    "r": 104,
    "g": 33,
    "b": 189
  },
  "hsl": {
    "h": 267.308,
    "s": 70.27,
    "l": 43.529
  },
  "oklch": {
    "l": 0.45324,
    "c": 0.21853,
    "h": 296.9
  },
  "luminance": 0.07705
}

Semantic roles & 50–950 ramp

primary
#6821BD
secondary
#A1CD6D
accent
#ED3B9C
background
#FAF6FD
surface
#F4EBFA
border
#CEC6D3
text
#0F0714
muted
#7F7A83

Preview Lab

Preview with #6821BD

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

Preview Lab → · Contrast checker → · Palette generator →

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