#6827BA#6827BA

#6827BA is a mid, highly saturated violet. Relative luminance 0.079; OKLCH L 45.6% C 0.210 H 297.1°. Best body text is #FFFFFF at 8.12:1 contrast (WCAG AA passes).

Color values

HEX#6827BA
RGBrgb(104, 39, 186)
HSLhsl(267, 65%, 44%)
HSVhsv(267, 79%, 73%)
CMYKcmyk(44.1%, 79%, 0%, 27.1%)
CIE-LABlab(33.86, 57.07, -65.38)
CIE-LCHlch(33.86, 86.78, 311.12°)
OKLaboklab(45.59% 0.0958 -0.1873)
OKLCHoklch(45.59% 0.21 297.1)
XYZxyz(15.2950, 7.9389, 47.1714)
Luminance0.0794 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6827BA #79BA27
analogous
#272FBA #6827BA #B227BA
triadic
#6827BA #BA6827 #27BA68
tetradic
#6827BA #BA272F #79BA27 #27BAB2
square
#6827BA #BA272F #79BA27 #27BAB2
split-complementary
#6827BA #BAB227 #2FBA27
monochromatic
#2F1255 #4C1C87 #6827BA #8746D8 #A879E3

Accessibility & contrast

On white

8.12
#6827BA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.59
#6827BA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6827BA
8.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6827BA#FFFFFF#000000##FFFFFF
##6827BA1.008.122.598.12
#FFFFFF8.121.0021.001.00
#0000002.5921.001.0021.00
##FFFFFF8.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0050BE
Deuteranopia (green-blind)
#004EB7
Tritanopia (blue-blind)
#525071
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #6827ba;
/* rgb */ color: rgb(104, 39, 186);
/* oklch */ color: oklch(45.6% 0.210 297.1);
Tailwind
colors: {
  custom: {
    50: '#9b69d0',
    500: '#6827ba',
    950: '#000000',
  },
}
SCSS
$custom: #6827ba;
$custom-light: #9b69d0;
$custom-dark: #000000;
JSON
{
  "hex": "#6827ba",
  "rgb": {
    "r": 104,
    "g": 39,
    "b": 186
  },
  "hsl": {
    "h": 266.531,
    "s": 65.333,
    "l": 44.118
  },
  "oklch": {
    "l": 0.45585,
    "c": 0.21035,
    "h": 297.1
  },
  "luminance": 0.07939
}

Semantic roles & 50–950 ramp

primary
#6827BA
secondary
#A4CB72
accent
#E8409E
background
#FAF6FC
surface
#F4EBF9
border
#CEC6D2
text
#0F0714
muted
#7F7A82

Preview Lab

Preview with #6827BA

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

Preview Lab → · Contrast checker → · Palette generator →

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