#6831BC#6831BC

#6831BC is a mid, highly saturated violet. Relative luminance 0.088; OKLCH L 46.8% C 0.202 H 295.5°. Best body text is #FFFFFF at 7.62:1 contrast (WCAG AA passes).

Color values

HEX#6831BC
RGBrgb(104, 49, 188)
HSLhsl(264, 59%, 46%)
HSVhsv(264, 74%, 74%)
CMYKcmyk(44.7%, 73.9%, 0%, 26.3%)
CIE-LABlab(35.54, 53.25, -63.80)
CIE-LCHlch(35.54, 83.10, 309.85°)
OKLaboklab(46.82% 0.0871 -0.1827)
OKLCHoklch(46.82% 0.202 295.5)
XYZxyz(15.8819, 8.7701, 48.4232)
Luminance0.0877 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6831BC #85BC31
analogous
#3140BC #6831BC #AE31BC
triadic
#6831BC #BC6831 #31BC68
tetradic
#6831BC #BC3140 #85BC31 #31BCAE
square
#6831BC #BC3140 #85BC31 #31BCAE
split-complementary
#6831BC #BCAE31 #40BC31
monochromatic
#32185B #4D248B #6831BC #8857D3 #AA88E0

Accessibility & contrast

On white

7.62
#6831BC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.75
#6831BC on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6831BC
7.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6831BC#FFFFFF#000000##FFFFFF
##6831BC1.007.622.757.62
#FFFFFF7.621.0021.001.00
#0000002.7521.001.0021.00
##FFFFFF7.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0055C0
Deuteranopia (green-blind)
#0051B9
Tritanopia (blue-blind)
#515674
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #6831bc;
/* rgb */ color: rgb(104, 49, 188);
/* oklch */ color: oklch(46.8% 0.202 295.5);
Tailwind
colors: {
  custom: {
    50: '#9b6ed1',
    500: '#6831bc',
    950: '#000000',
  },
}
SCSS
$custom: #6831bc;
$custom-light: #9b6ed1;
$custom-dark: #000000;
JSON
{
  "hex": "#6831bc",
  "rgb": {
    "r": 104,
    "g": 49,
    "b": 188
  },
  "hsl": {
    "h": 263.741,
    "s": 58.65,
    "l": 46.471
  },
  "oklch": {
    "l": 0.46817,
    "c": 0.20241,
    "h": 295.5
  },
  "luminance": 0.08771
}

Semantic roles & 50–950 ramp

primary
#6831BC
secondary
#ACCA7F
accent
#E246A4
background
#FAF6FD
surface
#F3ECFA
border
#CDC7D3
text
#0F0814
muted
#7F7B83

Preview Lab

Preview with #6831BC

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

Preview Lab → · Contrast checker → · Palette generator →

#6831BC Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva