#6731A2#6731A2

#6731A2 is a dark, vivid violet. Relative luminance 0.077; OKLCH L 44.6% C 0.173 H 301.5°. Best body text is #FFFFFF at 8.27:1 contrast (WCAG AA passes).

Color values

HEX#6731A2
RGBrgb(103, 49, 162)
HSLhsl(269, 54%, 41%)
HSVhsv(269, 70%, 64%)
CMYKcmyk(36.4%, 69.8%, 0%, 36.5%)
CIE-LABlab(33.33, 46.39, -51.91)
CIE-LCHlch(33.33, 69.62, 311.79°)
OKLaboklab(44.57% 0.0907 -0.1478)
OKLCHoklch(44.57% 0.173 301.5)
XYZxyz(13.2119, 7.6888, 34.9634)
Luminance0.0769 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6731A2 #6CA231
analogous
#3133A2 #6731A2 #A031A2
triadic
#6731A2 #A26731 #31A267
tetradic
#6731A2 #A23133 #6CA231 #31A2A0
square
#6731A2 #A23133 #6CA231 #31A2A0
split-complementary
#6731A2 #A2A031 #33A231
monochromatic
#2B1544 #492373 #6731A2 #8548C8 #A577D6

Accessibility & contrast

On white

8.27
#6731A2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.54
#6731A2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

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

Contrast matrix

fg \ bg##6731A2#FFFFFF#000000##FFFFFF
##6731A21.008.272.548.27
#FFFFFF8.271.0021.001.00
#0000002.5421.001.0021.00
##FFFFFF8.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004EA5
Deuteranopia (green-blind)
#004EA0
Tritanopia (blue-blind)
#5A4B66
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #6731a2;
/* rgb */ color: rgb(103, 49, 162);
/* oklch */ color: oklch(44.6% 0.173 301.5);
Tailwind
colors: {
  custom: {
    50: '#976dbe',
    500: '#6731a2',
    950: '#000000',
  },
}
SCSS
$custom: #6731a2;
$custom-light: #976dbe;
$custom-dark: #000000;
JSON
{
  "hex": "#6731a2",
  "rgb": {
    "r": 103,
    "g": 49,
    "b": 162
  },
  "hsl": {
    "h": 268.673,
    "s": 53.555,
    "l": 41.373
  },
  "oklch": {
    "l": 0.44569,
    "c": 0.17344,
    "h": 301.5
  },
  "luminance": 0.07689
}

Semantic roles & 50–950 ramp

primary
#6731A2
secondary
#99BE71
accent
#DD4B97
background
#F9F6FB
surface
#F2ECF7
border
#CCC7D0
text
#0E0712
muted
#7E7A81

Preview Lab

Preview with #6731A2

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

Preview Lab → · Contrast checker → · Palette generator →

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