#6831B6#6831B6

#6831B6 is a mid, vivid violet. Relative luminance 0.085; OKLCH L 46.3% C 0.196 H 296.8°. Best body text is #FFFFFF at 7.77:1 contrast (WCAG AA passes).

Color values

HEX#6831B6
RGBrgb(104, 49, 182)
HSLhsl(265, 58%, 45%)
HSVhsv(265, 73%, 71%)
CMYKcmyk(42.9%, 73.1%, 0%, 28.6%)
CIE-LABlab(35.04, 51.70, -61.08)
CIE-LCHlch(35.04, 80.02, 310.25°)
OKLaboklab(46.31% 0.0884 -0.1747)
OKLCHoklch(46.31% 0.196 296.8)
XYZxyz(15.2485, 8.5168, 45.0874)
Luminance0.0852 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6831B6 #7FB631
analogous
#313CB6 #6831B6 #AA31B6
triadic
#6831B6 #B66831 #31B668
tetradic
#6831B6 #B6313C #7FB631 #31B6AA
square
#6831B6 #B6313C #7FB631 #31B6AA
split-complementary
#6831B6 #B6AA31 #3CB631
monochromatic
#311756 #4C2486 #6831B6 #8753D1 #A984DE

Accessibility & contrast

On white

7.77
#6831B6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.70
#6831B6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6831B6
7.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6831B6#FFFFFF#000000##FFFFFF
##6831B61.007.772.707.77
#FFFFFF7.771.0021.001.00
#0000002.7021.001.0021.00
##FFFFFF7.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0053BA
Deuteranopia (green-blind)
#0051B3
Tritanopia (blue-blind)
#545371
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #6831b6;
/* rgb */ color: rgb(104, 49, 182);
/* oklch */ color: oklch(46.3% 0.196 296.8);
Tailwind
colors: {
  custom: {
    50: '#9a6ecd',
    500: '#6831b6',
    950: '#000000',
  },
}
SCSS
$custom: #6831b6;
$custom-light: #9a6ecd;
$custom-dark: #000000;
JSON
{
  "hex": "#6831b6",
  "rgb": {
    "r": 104,
    "g": 49,
    "b": 182
  },
  "hsl": {
    "h": 264.812,
    "s": 57.576,
    "l": 45.294
  },
  "oklch": {
    "l": 0.46308,
    "c": 0.19583,
    "h": 296.8
  },
  "luminance": 0.08517
}

Semantic roles & 50–950 ramp

primary
#6831B6
secondary
#A8C77C
accent
#E147A1
background
#FAF6FC
surface
#F3ECF9
border
#CDC7D2
text
#0F0714
muted
#7F7A82

Preview Lab

Preview with #6831B6

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

Preview Lab → · Contrast checker → · Palette generator →

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