#6831B8#6831B8

#6831B8 is a mid, vivid violet. Relative luminance 0.086; OKLCH L 46.5% C 0.198 H 296.4°. Best body text is #FFFFFF at 7.72:1 contrast (WCAG AA passes).

Color values

HEX#6831B8
RGBrgb(104, 49, 184)
HSLhsl(264, 58%, 46%)
HSVhsv(264, 73%, 72%)
CMYKcmyk(43.5%, 73.4%, 0%, 27.8%)
CIE-LABlab(35.20, 52.22, -61.99)
CIE-LCHlch(35.20, 81.05, 310.11°)
OKLaboklab(46.48% 0.088 -0.1774)
OKLCHoklch(46.48% 0.198 296.4)
XYZxyz(15.4567, 8.6000, 46.1837)
Luminance0.0860 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6831B8 #81B831
analogous
#313EB8 #6831B8 #AB31B8
triadic
#6831B8 #B86831 #31B868
tetradic
#6831B8 #B8313E #81B831 #31B8AB
square
#6831B8 #B8313E #81B831 #31B8AB
split-complementary
#6831B8 #B8AB31 #3EB831
monochromatic
#311757 #4D2488 #6831B8 #8855D2 #A985DE

Accessibility & contrast

On white

7.72
#6831B8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.72
#6831B8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6831B8
7.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6831B8#FFFFFF#000000##FFFFFF
##6831B81.007.722.727.72
#FFFFFF7.721.0021.001.00
#0000002.7221.001.0021.00
##FFFFFF7.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0053BC
Deuteranopia (green-blind)
#0051B5
Tritanopia (blue-blind)
#535472
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #6831b8;
/* rgb */ color: rgb(104, 49, 184);
/* oklch */ color: oklch(46.5% 0.198 296.4);
Tailwind
colors: {
  custom: {
    50: '#9a6ece',
    500: '#6831b8',
    950: '#000000',
  },
}
SCSS
$custom: #6831b8;
$custom-light: #9a6ece;
$custom-dark: #000000;
JSON
{
  "hex": "#6831b8",
  "rgb": {
    "r": 104,
    "g": 49,
    "b": 184
  },
  "hsl": {
    "h": 264.444,
    "s": 57.94,
    "l": 45.686
  },
  "oklch": {
    "l": 0.46476,
    "c": 0.19803,
    "h": 296.4
  },
  "luminance": 0.086
}

Semantic roles & 50–950 ramp

primary
#6831B8
secondary
#A9C87D
accent
#E147A2
background
#FAF6FC
surface
#F3ECF9
border
#CDC7D2
text
#0F0714
muted
#7F7A82

Preview Lab

Preview with #6831B8

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

Preview Lab → · Contrast checker → · Palette generator →

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