#6731B4#6731B4

#6731B4 is a mid, vivid violet. Relative luminance 0.084; OKLCH L 46.0% C 0.194 H 296.9°. Best body text is #FFFFFF at 7.85:1 contrast (WCAG AA passes).

Color values

HEX#6731B4
RGBrgb(103, 49, 180)
HSLhsl(265, 57%, 45%)
HSVhsv(265, 73%, 71%)
CMYKcmyk(42.8%, 72.8%, 0%, 29.4%)
CIE-LABlab(34.75, 51.01, -60.36)
CIE-LCHlch(34.75, 79.03, 310.20°)
OKLaboklab(46.03% 0.0874 -0.1727)
OKLCHoklch(46.03% 0.194 296.9)
XYZxyz(14.9279, 8.3752, 44.0012)
Luminance0.0838 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6731B4 #7EB431
analogous
#313CB4 #6731B4 #A931B4
triadic
#6731B4 #B46731 #31B467
tetradic
#6731B4 #B4313C #7EB431 #31B4A9
square
#6731B4 #B4313C #7EB431 #31B4A9
split-complementary
#6731B4 #B4A931 #3CB431
monochromatic
#301754 #4B2484 #6731B4 #8652D0 #A882DD

Accessibility & contrast

On white

7.85
#6731B4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.68
#6731B4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6731B4
7.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6731B4#FFFFFF#000000##FFFFFF
##6731B41.007.852.687.85
#FFFFFF7.851.0021.001.00
#0000002.6821.001.0021.00
##FFFFFF7.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0052B8
Deuteranopia (green-blind)
#0050B1
Tritanopia (blue-blind)
#535270
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #6731b4;
/* rgb */ color: rgb(103, 49, 180);
/* oklch */ color: oklch(46.0% 0.194 296.9);
Tailwind
colors: {
  custom: {
    50: '#996ecb',
    500: '#6731b4',
    950: '#000000',
  },
}
SCSS
$custom: #6731b4;
$custom-light: #996ecb;
$custom-dark: #000000;
JSON
{
  "hex": "#6731b4",
  "rgb": {
    "r": 103,
    "g": 49,
    "b": 180
  },
  "hsl": {
    "h": 264.733,
    "s": 57.205,
    "l": 44.902
  },
  "oklch": {
    "l": 0.46029,
    "c": 0.19353,
    "h": 296.9
  },
  "luminance": 0.08375
}

Semantic roles & 50–950 ramp

primary
#6731B4
secondary
#A7C67B
accent
#E047A1
background
#F9F6FC
surface
#F2ECF9
border
#CCC7D2
text
#0F0713
muted
#7E7A82

Preview Lab

Preview with #6731B4

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

Preview Lab → · Contrast checker → · Palette generator →

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