#6831B2#6831B2

#6831B2 is a mid, vivid violet. Relative luminance 0.084; OKLCH L 46.0% C 0.191 H 297.8°. Best body text is #FFFFFF at 7.86:1 contrast (WCAG AA passes).

Color values

HEX#6831B2
RGBrgb(104, 49, 178)
HSLhsl(266, 57%, 45%)
HSVhsv(266, 72%, 70%)
CMYKcmyk(41.6%, 72.5%, 0%, 30.2%)
CIE-LABlab(34.71, 50.67, -59.24)
CIE-LCHlch(34.71, 77.95, 310.54°)
OKLaboklab(45.97% 0.0893 -0.1693)
OKLCHoklch(45.97% 0.191 297.8)
XYZxyz(14.8410, 8.3538, 42.9414)
Luminance0.0835 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6831B2 #7BB231
analogous
#313BB2 #6831B2 #A831B2
triadic
#6831B2 #B26831 #31B268
tetradic
#6831B2 #B2313B #7BB231 #31B2A8
square
#6831B2 #B2313B #7BB231 #31B2A8
split-complementary
#6831B2 #B2A831 #3BB231
monochromatic
#301752 #4C2482 #6831B2 #8751CF #A881DC

Accessibility & contrast

On white

7.86
#6831B2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.67
#6831B2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6831B2
7.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6831B2#FFFFFF#000000##FFFFFF
##6831B21.007.862.677.86
#FFFFFF7.861.0021.001.00
#0000002.6721.001.0021.00
##FFFFFF7.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0052B6
Deuteranopia (green-blind)
#0050AF
Tritanopia (blue-blind)
#55526E
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #6831b2;
/* rgb */ color: rgb(104, 49, 178);
/* oklch */ color: oklch(46.0% 0.191 297.8);
Tailwind
colors: {
  custom: {
    50: '#9a6eca',
    500: '#6831b2',
    950: '#000000',
  },
}
SCSS
$custom: #6831b2;
$custom-light: #9a6eca;
$custom-dark: #000000;
JSON
{
  "hex": "#6831b2",
  "rgb": {
    "r": 104,
    "g": 49,
    "b": 178
  },
  "hsl": {
    "h": 265.581,
    "s": 56.828,
    "l": 44.51
  },
  "oklch": {
    "l": 0.45974,
    "c": 0.19142,
    "h": 297.8
  },
  "luminance": 0.08354
}

Semantic roles & 50–950 ramp

primary
#6831B2
secondary
#A5C579
accent
#E0489F
background
#F9F6FC
surface
#F2ECF8
border
#CCC7D1
text
#0F0713
muted
#7E7A82

Preview Lab

Preview with #6831B2

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

Preview Lab → · Contrast checker → · Palette generator →

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