#6731AD#6731AD

#6731AD is a mid, vivid violet. Relative luminance 0.081; OKLCH L 45.4% C 0.186 H 298.6°. Best body text is #FFFFFF at 8.02:1 contrast (WCAG AA passes).

Color values

HEX#6731AD
RGBrgb(103, 49, 173)
HSLhsl(266, 56%, 44%)
HSVhsv(266, 72%, 68%)
CMYKcmyk(40.5%, 71.7%, 0%, 32.2%)
CIE-LABlab(34.18, 49.20, -57.12)
CIE-LCHlch(34.18, 75.39, 310.74°)
OKLaboklab(45.45% 0.0888 -0.1631)
OKLCHoklch(45.45% 0.186 298.6)
XYZxyz(14.2327, 8.0971, 40.3401)
Luminance0.0810 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6731AD #77AD31
analogous
#3139AD #6731AD #A531AD
triadic
#6731AD #AD6731 #31AD67
tetradic
#6731AD #AD3139 #77AD31 #31ADA5
square
#6731AD #AD3139 #77AD31 #31ADA5
split-complementary
#6731AD #ADA531 #39AD31
monochromatic
#2E164E #4B237D #6731AD #854ECD #A67EDA

Accessibility & contrast

On white

8.02
#6731AD on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.62
#6731AD on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6731AD
8.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6731AD#FFFFFF#000000##FFFFFF
##6731AD1.008.022.628.02
#FFFFFF8.021.0021.001.00
#0000002.6221.001.0021.00
##FFFFFF8.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0050B1
Deuteranopia (green-blind)
#004FAA
Tritanopia (blue-blind)
#56506C
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #6731ad;
/* rgb */ color: rgb(103, 49, 173);
/* oklch */ color: oklch(45.4% 0.186 298.6);
Tailwind
colors: {
  custom: {
    50: '#986ec6',
    500: '#6731ad',
    950: '#000000',
  },
}
SCSS
$custom: #6731ad;
$custom-light: #986ec6;
$custom-dark: #000000;
JSON
{
  "hex": "#6731ad",
  "rgb": {
    "r": 103,
    "g": 49,
    "b": 173
  },
  "hsl": {
    "h": 266.129,
    "s": 55.856,
    "l": 43.529
  },
  "oklch": {
    "l": 0.45449,
    "c": 0.18575,
    "h": 298.6
  },
  "luminance": 0.08097
}

Semantic roles & 50–950 ramp

primary
#6731AD
secondary
#A2C377
accent
#DF499E
background
#F9F6FC
surface
#F2ECF8
border
#CCC7D1
text
#0E0713
muted
#7E7A82

Preview Lab

Preview with #6731AD

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

Preview Lab → · Contrast checker → · Palette generator →

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