#6731B8#6731B8

#6731B8 is a mid, vivid violet. Relative luminance 0.085; OKLCH L 46.4% C 0.198 H 295.9°. Best body text is #FFFFFF at 7.75:1 contrast (WCAG AA passes).

Color values

HEX#6731B8
RGBrgb(103, 49, 184)
HSLhsl(264, 58%, 46%)
HSVhsv(264, 73%, 72%)
CMYKcmyk(44%, 73.4%, 0%, 27.8%)
CIE-LABlab(35.08, 52.05, -62.19)
CIE-LCHlch(35.08, 81.09, 309.93°)
OKLaboklab(46.37% 0.0865 -0.178)
OKLCHoklch(46.37% 0.198 295.9)
XYZxyz(15.3413, 8.5405, 46.1783)
Luminance0.0854 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6731B8 #82B831
analogous
#313EB8 #6731B8 #AA31B8
triadic
#6731B8 #B86731 #31B867
tetradic
#6731B8 #B8313E #82B831 #31B8AA
square
#6731B8 #B8313E #82B831 #31B8AA
split-complementary
#6731B8 #B8AA31 #3EB831
monochromatic
#311757 #4C2488 #6731B8 #8755D2 #A985DE

Accessibility & contrast

On white

7.75
#6731B8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.71
#6731B8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

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

Contrast matrix

fg \ bg##6731B8#FFFFFF#000000##FFFFFF
##6731B81.007.752.717.75
#FFFFFF7.751.0021.001.00
#0000002.7121.001.0021.00
##FFFFFF7.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0053BC
Deuteranopia (green-blind)
#0051B5
Tritanopia (blue-blind)
#515472
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #6731b8;
/* rgb */ color: rgb(103, 49, 184);
/* oklch */ color: oklch(46.4% 0.198 295.9);
Tailwind
colors: {
  custom: {
    50: '#9a6ece',
    500: '#6731b8',
    950: '#000000',
  },
}
SCSS
$custom: #6731b8;
$custom-light: #9a6ece;
$custom-dark: #000000;
JSON
{
  "hex": "#6731b8",
  "rgb": {
    "r": 103,
    "g": 49,
    "b": 184
  },
  "hsl": {
    "h": 264,
    "s": 57.94,
    "l": 45.686
  },
  "oklch": {
    "l": 0.46366,
    "c": 0.19794,
    "h": 295.9
  },
  "luminance": 0.08541
}

Semantic roles & 50–950 ramp

primary
#6731B8
secondary
#AAC87D
accent
#E147A3
background
#FAF6FC
surface
#F3ECF9
border
#CDC7D2
text
#0F0714
muted
#7F7A82

Preview Lab

Preview with #6731B8

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

Preview Lab → · Contrast checker → · Palette generator →

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