#6731B3#6731B3

#6731B3 is a mid, vivid violet. Relative luminance 0.083; OKLCH L 45.9% C 0.192 H 297.1°. Best body text is #FFFFFF at 7.87:1 contrast (WCAG AA passes).

Color values

HEX#6731B3
RGBrgb(103, 49, 179)
HSLhsl(265, 57%, 45%)
HSVhsv(265, 73%, 70%)
CMYKcmyk(42.5%, 72.6%, 0%, 29.8%)
CIE-LABlab(34.67, 50.75, -59.90)
CIE-LCHlch(34.67, 78.51, 310.27°)
OKLaboklab(45.95% 0.0876 -0.1713)
OKLCHoklch(45.95% 0.192 297.1)
XYZxyz(14.8264, 8.3346, 43.4667)
Luminance0.0833 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6731B3 #7DB331
analogous
#313CB3 #6731B3 #A831B3
triadic
#6731B3 #B36731 #31B367
tetradic
#6731B3 #B3313C #7DB331 #31B3A8
square
#6731B3 #B3313C #7DB331 #31B3A8
split-complementary
#6731B3 #B3A831 #3CB331
monochromatic
#301753 #4B2483 #6731B3 #8652D0 #A882DD

Accessibility & contrast

On white

7.87
#6731B3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.67
#6731B3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6731B3
7.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6731B3#FFFFFF#000000##FFFFFF
##6731B31.007.872.677.87
#FFFFFF7.871.0021.001.00
#0000002.6721.001.0021.00
##FFFFFF7.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0052B7
Deuteranopia (green-blind)
#0050B0
Tritanopia (blue-blind)
#53526F
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #6731b3;
/* rgb */ color: rgb(103, 49, 179);
/* oklch */ color: oklch(45.9% 0.192 297.1);
Tailwind
colors: {
  custom: {
    50: '#996ecb',
    500: '#6731b3',
    950: '#000000',
  },
}
SCSS
$custom: #6731b3;
$custom-light: #996ecb;
$custom-dark: #000000;
JSON
{
  "hex": "#6731b3",
  "rgb": {
    "r": 103,
    "g": 49,
    "b": 179
  },
  "hsl": {
    "h": 264.923,
    "s": 57.018,
    "l": 44.706
  },
  "oklch": {
    "l": 0.45945,
    "c": 0.19242,
    "h": 297.1
  },
  "luminance": 0.08335
}

Semantic roles & 50–950 ramp

primary
#6731B3
secondary
#A6C67A
accent
#E048A1
background
#F9F6FC
surface
#F2ECF9
border
#CCC7D2
text
#0F0713
muted
#7E7A82

Preview Lab

Preview with #6731B3

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

Preview Lab → · Contrast checker → · Palette generator →

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