#6731AA#6731AA

#6731AA is a mid, vivid violet. Relative luminance 0.080; OKLCH L 45.2% C 0.182 H 299.3°. Best body text is #FFFFFF at 8.09:1 contrast (WCAG AA passes).

Color values

HEX#6731AA
RGBrgb(103, 49, 170)
HSLhsl(267, 55%, 43%)
HSVhsv(267, 71%, 67%)
CMYKcmyk(39.4%, 71.2%, 0%, 33.3%)
CIE-LABlab(33.95, 48.43, -55.71)
CIE-LCHlch(33.95, 73.82, 311.00°)
OKLaboklab(45.21% 0.0894 -0.159)
OKLCHoklch(45.21% 0.182 299.3)
XYZxyz(13.9457, 7.9823, 38.8284)
Luminance0.0798 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6731AA #74AA31
analogous
#3137AA #6731AA #A331AA
triadic
#6731AA #AA6731 #31AA67
tetradic
#6731AA #AA3137 #74AA31 #31AAA3
square
#6731AA #AA3137 #74AA31 #31AAA3
split-complementary
#6731AA #AAA331 #37AA31
monochromatic
#2D164B #4A237A #6731AA #854DCC #A67CD9

Accessibility & contrast

On white

8.09
#6731AA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.60
#6731AA on #000000
AA ✗AA large ✗AAA ✗

Best text color

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

Contrast matrix

fg \ bg##6731AA#FFFFFF#000000##FFFFFF
##6731AA1.008.092.608.09
#FFFFFF8.091.0021.001.00
#0000002.6021.001.0021.00
##FFFFFF8.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0050AE
Deuteranopia (green-blind)
#004FA8
Tritanopia (blue-blind)
#574F6A
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #6731aa;
/* rgb */ color: rgb(103, 49, 170);
/* oklch */ color: oklch(45.2% 0.182 299.3);
Tailwind
colors: {
  custom: {
    50: '#986ec4',
    500: '#6731aa',
    950: '#000000',
  },
}
SCSS
$custom: #6731aa;
$custom-light: #986ec4;
$custom-dark: #000000;
JSON
{
  "hex": "#6731aa",
  "rgb": {
    "r": 103,
    "g": 49,
    "b": 170
  },
  "hsl": {
    "h": 266.777,
    "s": 55.251,
    "l": 42.941
  },
  "oklch": {
    "l": 0.45205,
    "c": 0.1824,
    "h": 299.3
  },
  "luminance": 0.07982
}

Semantic roles & 50–950 ramp

primary
#6731AA
secondary
#A0C275
accent
#DF499C
background
#F9F6FC
surface
#F2ECF8
border
#CCC7D1
text
#0E0713
muted
#7E7A82

Preview Lab

Preview with #6731AA

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

Preview Lab → · Contrast checker → · Palette generator →

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