#6831BA#6831BA

#6831BA is a mid, highly saturated violet. Relative luminance 0.087; OKLCH L 46.6% C 0.200 H 295.9°. Best body text is #FFFFFF at 7.67:1 contrast (WCAG AA passes).

Color values

HEX#6831BA
RGBrgb(104, 49, 186)
HSLhsl(264, 58%, 46%)
HSVhsv(264, 74%, 73%)
CMYKcmyk(44.1%, 73.7%, 0%, 27.1%)
CIE-LABlab(35.37, 52.73, -62.90)
CIE-LCHlch(35.37, 82.08, 309.98°)
OKLaboklab(46.65% 0.0875 -0.1801)
OKLCHoklch(46.65% 0.2 295.9)
XYZxyz(15.6678, 8.6845, 47.2956)
Luminance0.0868 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6831BA #83BA31
analogous
#313EBA #6831BA #AC31BA
triadic
#6831BA #BA6831 #31BA68
tetradic
#6831BA #BA313E #83BA31 #31BAAC
square
#6831BA #BA313E #83BA31 #31BAAC
split-complementary
#6831BA #BAAC31 #3EBA31
monochromatic
#321759 #4D248A #6831BA #8856D2 #AA86DF

Accessibility & contrast

On white

7.67
#6831BA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.74
#6831BA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6831BA
7.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6831BA#FFFFFF#000000##FFFFFF
##6831BA1.007.672.747.67
#FFFFFF7.671.0021.001.00
#0000002.7421.001.0021.00
##FFFFFF7.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0054BE
Deuteranopia (green-blind)
#0051B7
Tritanopia (blue-blind)
#525573
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #6831ba;
/* rgb */ color: rgb(104, 49, 186);
/* oklch */ color: oklch(46.6% 0.200 295.9);
Tailwind
colors: {
  custom: {
    50: '#9a6ed0',
    500: '#6831ba',
    950: '#000000',
  },
}
SCSS
$custom: #6831ba;
$custom-light: #9a6ed0;
$custom-dark: #000000;
JSON
{
  "hex": "#6831ba",
  "rgb": {
    "r": 104,
    "g": 49,
    "b": 186
  },
  "hsl": {
    "h": 264.088,
    "s": 58.298,
    "l": 46.078
  },
  "oklch": {
    "l": 0.46646,
    "c": 0.20022,
    "h": 295.9
  },
  "luminance": 0.08685
}

Semantic roles & 50–950 ramp

primary
#6831BA
secondary
#ABC97E
accent
#E246A3
background
#FAF6FC
surface
#F3ECF9
border
#CDC7D2
text
#0F0814
muted
#7F7B82

Preview Lab

Preview with #6831BA

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

Preview Lab → · Contrast checker → · Palette generator →

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