#6731AE#6731AE

#6731AE is a mid, vivid violet. Relative luminance 0.081; OKLCH L 45.5% C 0.187 H 298.3°. Best body text is #FFFFFF at 7.99:1 contrast (WCAG AA passes).

Color values

HEX#6731AE
RGBrgb(103, 49, 174)
HSLhsl(266, 56%, 44%)
HSVhsv(266, 72%, 68%)
CMYKcmyk(40.8%, 71.8%, 0%, 31.8%)
CIE-LABlab(34.26, 49.46, -57.59)
CIE-LCHlch(34.26, 75.91, 310.66°)
OKLaboklab(45.53% 0.0886 -0.1645)
OKLCHoklch(45.53% 0.187 298.3)
XYZxyz(14.3299, 8.1360, 40.8516)
Luminance0.0814 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6731AE #78AE31
analogous
#3139AE #6731AE #A531AE
triadic
#6731AE #AE6731 #31AE67
tetradic
#6731AE #AE3139 #78AE31 #31AEA5
square
#6731AE #AE3139 #78AE31 #31AEA5
split-complementary
#6731AE #AEA531 #39AE31
monochromatic
#2E164E #4B247E #6731AE #854FCD #A67FDB

Accessibility & contrast

On white

7.99
#6731AE on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.63
#6731AE on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6731AE
7.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6731AE#FFFFFF#000000##FFFFFF
##6731AE1.007.992.637.99
#FFFFFF7.991.0021.001.00
#0000002.6321.001.0021.00
##FFFFFF7.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0051B2
Deuteranopia (green-blind)
#004FAB
Tritanopia (blue-blind)
#56506C
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #6731ae;
/* rgb */ color: rgb(103, 49, 174);
/* oklch */ color: oklch(45.5% 0.187 298.3);
Tailwind
colors: {
  custom: {
    50: '#996ec7',
    500: '#6731ae',
    950: '#000000',
  },
}
SCSS
$custom: #6731ae;
$custom-light: #996ec7;
$custom-dark: #000000;
JSON
{
  "hex": "#6731ae",
  "rgb": {
    "r": 103,
    "g": 49,
    "b": 174
  },
  "hsl": {
    "h": 265.92,
    "s": 56.054,
    "l": 43.725
  },
  "oklch": {
    "l": 0.45531,
    "c": 0.18686,
    "h": 298.3
  },
  "luminance": 0.08136
}

Semantic roles & 50–950 ramp

primary
#6731AE
secondary
#A3C477
accent
#DF489E
background
#F9F6FC
surface
#F2ECF8
border
#CCC7D1
text
#0E0713
muted
#7E7A82

Preview Lab

Preview with #6731AE

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

Preview Lab → · Contrast checker → · Palette generator →

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