#6731BC#6731BC

#6731BC is a mid, highly saturated violet. Relative luminance 0.087; OKLCH L 46.7% C 0.202 H 295.0°. Best body text is #FFFFFF at 7.66:1 contrast (WCAG AA passes).

Color values

HEX#6731BC
RGBrgb(103, 49, 188)
HSLhsl(263, 59%, 46%)
HSVhsv(263, 74%, 74%)
CMYKcmyk(45.2%, 73.9%, 0%, 26.3%)
CIE-LABlab(35.42, 53.09, -64.00)
CIE-LCHlch(35.42, 83.15, 309.68°)
OKLaboklab(46.71% 0.0856 -0.1833)
OKLCHoklch(46.71% 0.202 295)
XYZxyz(15.7665, 8.7106, 48.4178)
Luminance0.0871 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6731BC #86BC31
analogous
#3141BC #6731BC #AD31BC
triadic
#6731BC #BC6731 #31BC67
tetradic
#6731BC #BC3141 #86BC31 #31BCAD
square
#6731BC #BC3141 #86BC31 #31BCAD
split-complementary
#6731BC #BCAD31 #41BC31
monochromatic
#32185B #4C248B #6731BC #8757D3 #AA88E0

Accessibility & contrast

On white

7.66
#6731BC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.74
#6731BC on #000000
AA ✗AA large ✗AAA ✗

Best text color

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

Contrast matrix

fg \ bg##6731BC#FFFFFF#000000##FFFFFF
##6731BC1.007.662.747.66
#FFFFFF7.661.0021.001.00
#0000002.7421.001.0021.00
##FFFFFF7.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0054C0
Deuteranopia (green-blind)
#0051B9
Tritanopia (blue-blind)
#4F5674
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #6731bc;
/* rgb */ color: rgb(103, 49, 188);
/* oklch */ color: oklch(46.7% 0.202 295.0);
Tailwind
colors: {
  custom: {
    50: '#9a6ed1',
    500: '#6731bc',
    950: '#000000',
  },
}
SCSS
$custom: #6731bc;
$custom-light: #9a6ed1;
$custom-dark: #000000;
JSON
{
  "hex": "#6731bc",
  "rgb": {
    "r": 103,
    "g": 49,
    "b": 188
  },
  "hsl": {
    "h": 263.309,
    "s": 58.65,
    "l": 46.471
  },
  "oklch": {
    "l": 0.46708,
    "c": 0.20234,
    "h": 295
  },
  "luminance": 0.08711
}

Semantic roles & 50–950 ramp

primary
#6731BC
secondary
#ADCA7F
accent
#E246A5
background
#FAF6FD
surface
#F3ECFA
border
#CDC7D3
text
#0F0814
muted
#7F7B83

Preview Lab

Preview with #6731BC

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

Preview Lab → · Contrast checker → · Palette generator →

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