#6731B9#6731B9

#6731B9 is a mid, vivid violet. Relative luminance 0.086; OKLCH L 46.5% C 0.199 H 295.7°. Best body text is #FFFFFF at 7.73:1 contrast (WCAG AA passes).

Color values

HEX#6731B9
RGBrgb(103, 49, 185)
HSLhsl(264, 58%, 46%)
HSVhsv(264, 74%, 73%)
CMYKcmyk(44.3%, 73.5%, 0%, 27.5%)
CIE-LABlab(35.17, 52.30, -62.64)
CIE-LCHlch(35.17, 81.61, 309.86°)
OKLaboklab(46.45% 0.0863 -0.1794)
OKLCHoklch(46.45% 0.199 295.7)
XYZxyz(15.4464, 8.5826, 46.7323)
Luminance0.0858 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6731B9 #83B931
analogous
#313FB9 #6731B9 #AB31B9
triadic
#6731B9 #B96731 #31B967
tetradic
#6731B9 #B9313F #83B931 #31B9AB
square
#6731B9 #B9313F #83B931 #31B9AB
split-complementary
#6731B9 #B9AB31 #3FB931
monochromatic
#311758 #4C2489 #6731B9 #8755D2 #A986DF

Accessibility & contrast

On white

7.73
#6731B9 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.72
#6731B9 on #000000
AA ✗AA large ✗AAA ✗

Best text color

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

Contrast matrix

fg \ bg##6731B9#FFFFFF#000000##FFFFFF
##6731B91.007.732.727.73
#FFFFFF7.731.0021.001.00
#0000002.7221.001.0021.00
##FFFFFF7.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0054BD
Deuteranopia (green-blind)
#0051B6
Tritanopia (blue-blind)
#505472
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #6731b9;
/* rgb */ color: rgb(103, 49, 185);
/* oklch */ color: oklch(46.5% 0.199 295.7);
Tailwind
colors: {
  custom: {
    50: '#9a6ecf',
    500: '#6731b9',
    950: '#000000',
  },
}
SCSS
$custom: #6731b9;
$custom-light: #9a6ecf;
$custom-dark: #000000;
JSON
{
  "hex": "#6731b9",
  "rgb": {
    "r": 103,
    "g": 49,
    "b": 185
  },
  "hsl": {
    "h": 263.824,
    "s": 58.12,
    "l": 45.882
  },
  "oklch": {
    "l": 0.46451,
    "c": 0.19904,
    "h": 295.7
  },
  "luminance": 0.08583
}

Semantic roles & 50–950 ramp

primary
#6731B9
secondary
#ABC87D
accent
#E146A4
background
#FAF6FC
surface
#F3ECF9
border
#CDC7D2
text
#0F0714
muted
#7F7A82

Preview Lab

Preview with #6731B9

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

Preview Lab → · Contrast checker → · Palette generator →

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