#6831B3#6831B3

#6831B3 is a mid, vivid violet. Relative luminance 0.084; OKLCH L 46.1% C 0.193 H 297.6°. Best body text is #FFFFFF at 7.84:1 contrast (WCAG AA passes).

Color values

HEX#6831B3
RGBrgb(104, 49, 179)
HSLhsl(265, 57%, 45%)
HSVhsv(265, 73%, 70%)
CMYKcmyk(41.9%, 72.6%, 0%, 29.8%)
CIE-LABlab(34.79, 50.93, -59.70)
CIE-LCHlch(34.79, 78.47, 310.47°)
OKLaboklab(46.06% 0.0891 -0.1707)
OKLCHoklch(46.06% 0.193 297.6)
XYZxyz(14.9418, 8.3941, 43.4721)
Luminance0.0839 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6831B3 #7CB331
analogous
#313BB3 #6831B3 #A931B3
triadic
#6831B3 #B36831 #31B368
tetradic
#6831B3 #B3313B #7CB331 #31B3A9
square
#6831B3 #B3313B #7CB331 #31B3A9
split-complementary
#6831B3 #B3A931 #3BB331
monochromatic
#301753 #4C2483 #6831B3 #8752D0 #A882DD

Accessibility & contrast

On white

7.84
#6831B3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.68
#6831B3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6831B3
7.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6831B3#FFFFFF#000000##FFFFFF
##6831B31.007.842.687.84
#FFFFFF7.841.0021.001.00
#0000002.6821.001.0021.00
##FFFFFF7.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0052B7
Deuteranopia (green-blind)
#0050B0
Tritanopia (blue-blind)
#55526F
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #6831b3;
/* rgb */ color: rgb(104, 49, 179);
/* oklch */ color: oklch(46.1% 0.193 297.6);
Tailwind
colors: {
  custom: {
    50: '#9a6ecb',
    500: '#6831b3',
    950: '#000000',
  },
}
SCSS
$custom: #6831b3;
$custom-light: #9a6ecb;
$custom-dark: #000000;
JSON
{
  "hex": "#6831b3",
  "rgb": {
    "r": 104,
    "g": 49,
    "b": 179
  },
  "hsl": {
    "h": 265.385,
    "s": 57.018,
    "l": 44.706
  },
  "oklch": {
    "l": 0.46057,
    "c": 0.19252,
    "h": 297.6
  },
  "luminance": 0.08394
}

Semantic roles & 50–950 ramp

primary
#6831B3
secondary
#A6C67A
accent
#E048A0
background
#F9F6FC
surface
#F2ECF9
border
#CCC7D2
text
#0F0713
muted
#7E7A82

Preview Lab

Preview with #6831B3

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

Preview Lab → · Contrast checker → · Palette generator →

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