#6731BA#6731BA

#6731BA is a mid, highly saturated violet. Relative luminance 0.086; OKLCH L 46.5% C 0.200 H 295.5°. Best body text is #FFFFFF at 7.71:1 contrast (WCAG AA passes).

Color values

HEX#6731BA
RGBrgb(103, 49, 186)
HSLhsl(264, 58%, 46%)
HSVhsv(264, 74%, 73%)
CMYKcmyk(44.6%, 73.7%, 0%, 27.1%)
CIE-LABlab(35.25, 52.56, -63.10)
CIE-LCHlch(35.25, 82.12, 309.80°)
OKLaboklab(46.54% 0.0861 -0.1807)
OKLCHoklch(46.54% 0.2 295.5)
XYZxyz(15.5524, 8.6250, 47.2902)
Luminance0.0862 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6731BA #84BA31
analogous
#313FBA #6731BA #AB31BA
triadic
#6731BA #BA6731 #31BA67
tetradic
#6731BA #BA313F #84BA31 #31BAAB
square
#6731BA #BA313F #84BA31 #31BAAB
split-complementary
#6731BA #BAAB31 #3FBA31
monochromatic
#311759 #4C248A #6731BA #8756D2 #A986DF

Accessibility & contrast

On white

7.71
#6731BA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.72
#6731BA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6731BA
7.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6731BA#FFFFFF#000000##FFFFFF
##6731BA1.007.712.727.71
#FFFFFF7.711.0021.001.00
#0000002.7221.001.0021.00
##FFFFFF7.711.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #6731ba;
/* rgb */ color: rgb(103, 49, 186);
/* oklch */ color: oklch(46.5% 0.200 295.5);
Tailwind
colors: {
  custom: {
    50: '#9a6ed0',
    500: '#6731ba',
    950: '#000000',
  },
}
SCSS
$custom: #6731ba;
$custom-light: #9a6ed0;
$custom-dark: #000000;
JSON
{
  "hex": "#6731ba",
  "rgb": {
    "r": 103,
    "g": 49,
    "b": 186
  },
  "hsl": {
    "h": 263.65,
    "s": 58.298,
    "l": 46.078
  },
  "oklch": {
    "l": 0.46536,
    "c": 0.20014,
    "h": 295.5
  },
  "luminance": 0.08625
}

Semantic roles & 50–950 ramp

primary
#6731BA
secondary
#ABC97E
accent
#E246A4
background
#FAF6FC
surface
#F3ECF9
border
#CDC7D2
text
#0F0714
muted
#7F7A82

Preview Lab

Preview with #6731BA

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

Preview Lab → · Contrast checker → · Palette generator →

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