#6731B6#6731B6

#6731B6 is a mid, vivid violet. Relative luminance 0.085; OKLCH L 46.2% C 0.196 H 296.4°. Best body text is #FFFFFF at 7.80:1 contrast (WCAG AA passes).

Color values

HEX#6731B6
RGBrgb(103, 49, 182)
HSLhsl(264, 58%, 45%)
HSVhsv(264, 73%, 71%)
CMYKcmyk(43.4%, 73.1%, 0%, 28.6%)
CIE-LABlab(34.92, 51.53, -61.28)
CIE-LCHlch(34.92, 80.06, 310.06°)
OKLaboklab(46.2% 0.087 -0.1753)
OKLCHoklch(46.2% 0.196 296.4)
XYZxyz(15.1331, 8.4573, 45.0820)
Luminance0.0846 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6731B6 #80B631
analogous
#313DB6 #6731B6 #AA31B6
triadic
#6731B6 #B66731 #31B667
tetradic
#6731B6 #B6313D #80B631 #31B6AA
square
#6731B6 #B6313D #80B631 #31B6AA
split-complementary
#6731B6 #B6AA31 #3DB631
monochromatic
#301756 #4C2486 #6731B6 #8653D1 #A884DE

Accessibility & contrast

On white

7.80
#6731B6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.69
#6731B6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

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

Contrast matrix

fg \ bg##6731B6#FFFFFF#000000##FFFFFF
##6731B61.007.802.697.80
#FFFFFF7.801.0021.001.00
#0000002.6921.001.0021.00
##FFFFFF7.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0053BA
Deuteranopia (green-blind)
#0050B3
Tritanopia (blue-blind)
#525371
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #6731b6;
/* rgb */ color: rgb(103, 49, 182);
/* oklch */ color: oklch(46.2% 0.196 296.4);
Tailwind
colors: {
  custom: {
    50: '#996ecd',
    500: '#6731b6',
    950: '#000000',
  },
}
SCSS
$custom: #6731b6;
$custom-light: #996ecd;
$custom-dark: #000000;
JSON
{
  "hex": "#6731b6",
  "rgb": {
    "r": 103,
    "g": 49,
    "b": 182
  },
  "hsl": {
    "h": 264.361,
    "s": 57.576,
    "l": 45.294
  },
  "oklch": {
    "l": 0.46197,
    "c": 0.19574,
    "h": 296.4
  },
  "luminance": 0.08458
}

Semantic roles & 50–950 ramp

primary
#6731B6
secondary
#A8C77C
accent
#E147A2
background
#F9F6FC
surface
#F2ECF9
border
#CCC7D2
text
#0F0714
muted
#7E7A82

Preview Lab

Preview with #6731B6

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

Preview Lab → · Contrast checker → · Palette generator →

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