#6822BA#6822BA

#6822BA is a mid, highly saturated violet. Relative luminance 0.076; OKLCH L 45.1% C 0.215 H 297.6°. Best body text is #FFFFFF at 8.31:1 contrast (WCAG AA passes).

Color values

HEX#6822BA
RGBrgb(104, 34, 186)
HSLhsl(268, 69%, 43%)
HSVhsv(268, 82%, 73%)
CMYKcmyk(44.1%, 81.7%, 0%, 27.1%)
CIE-LABlab(33.20, 58.96, -66.44)
CIE-LCHlch(33.20, 88.83, 311.58°)
OKLaboklab(45.13% 0.0994 -0.1904)
OKLCHoklch(45.13% 0.215 297.6)
XYZxyz(15.1415, 7.6320, 47.1202)
Luminance0.0763 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6822BA #74BA22
analogous
#2228BA #6822BA #B422BA
triadic
#6822BA #BA6822 #22BA68
tetradic
#6822BA #BA2228 #74BA22 #22BAB4
square
#6822BA #BA2228 #74BA22 #22BAB4
split-complementary
#6822BA #BAB422 #28BA22
monochromatic
#2E0F53 #4B1986 #6822BA #863EDC #A771E5

Accessibility & contrast

On white

8.31
#6822BA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.53
#6822BA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6822BA
8.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6822BA#FFFFFF#000000##FFFFFF
##6822BA1.008.312.538.31
#FFFFFF8.311.0021.001.00
#0000002.5321.001.0021.00
##FFFFFF8.311.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #6822ba;
/* rgb */ color: rgb(104, 34, 186);
/* oklch */ color: oklch(45.1% 0.215 297.6);
Tailwind
colors: {
  custom: {
    50: '#9b67d0',
    500: '#6822ba',
    950: '#000000',
  },
}
SCSS
$custom: #6822ba;
$custom-light: #9b67d0;
$custom-dark: #000000;
JSON
{
  "hex": "#6822ba",
  "rgb": {
    "r": 104,
    "g": 34,
    "b": 186
  },
  "hsl": {
    "h": 267.632,
    "s": 69.091,
    "l": 43.137
  },
  "oklch": {
    "l": 0.45133,
    "c": 0.21474,
    "h": 297.6
  },
  "luminance": 0.07632
}

Semantic roles & 50–950 ramp

primary
#6822BA
secondary
#A0CC6C
accent
#EC3C9B
background
#FAF6FC
surface
#F4EBF9
border
#CEC6D2
text
#0F0714
muted
#7F7A82

Preview Lab

Preview with #6822BA

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

Preview Lab → · Contrast checker → · Palette generator →

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