#6731B2#6731B2

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

Color values

HEX#6731B2
RGBrgb(103, 49, 178)
HSLhsl(265, 57%, 45%)
HSVhsv(265, 72%, 70%)
CMYKcmyk(42.1%, 72.5%, 0%, 30.2%)
CIE-LABlab(34.59, 50.49, -59.44)
CIE-LCHlch(34.59, 77.99, 310.35°)
OKLaboklab(45.86% 0.0878 -0.1699)
OKLCHoklch(45.86% 0.191 297.3)
XYZxyz(14.7256, 8.2943, 42.9360)
Luminance0.0829 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6731B2 #7CB231
analogous
#313CB2 #6731B2 #A731B2
triadic
#6731B2 #B26731 #31B267
tetradic
#6731B2 #B2313C #7CB231 #31B2A7
square
#6731B2 #B2313C #7CB231 #31B2A7
split-complementary
#6731B2 #B2A731 #3CB231
monochromatic
#2F1752 #4B2482 #6731B2 #8651CF #A781DC

Accessibility & contrast

On white

7.90
#6731B2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.66
#6731B2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6731B2
7.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6731B2#FFFFFF#000000##FFFFFF
##6731B21.007.902.667.90
#FFFFFF7.901.0021.001.00
#0000002.6621.001.0021.00
##FFFFFF7.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0052B6
Deuteranopia (green-blind)
#0050AF
Tritanopia (blue-blind)
#54526E
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #6731b2;
/* rgb */ color: rgb(103, 49, 178);
/* oklch */ color: oklch(45.9% 0.191 297.3);
Tailwind
colors: {
  custom: {
    50: '#996eca',
    500: '#6731b2',
    950: '#000000',
  },
}
SCSS
$custom: #6731b2;
$custom-light: #996eca;
$custom-dark: #000000;
JSON
{
  "hex": "#6731b2",
  "rgb": {
    "r": 103,
    "g": 49,
    "b": 178
  },
  "hsl": {
    "h": 265.116,
    "s": 56.828,
    "l": 44.51
  },
  "oklch": {
    "l": 0.45862,
    "c": 0.1913,
    "h": 297.3
  },
  "luminance": 0.08295
}

Semantic roles & 50–950 ramp

primary
#6731B2
secondary
#A6C579
accent
#E048A0
background
#F9F6FC
surface
#F2ECF8
border
#CCC7D1
text
#0F0713
muted
#7E7A82

Preview Lab

Preview with #6731B2

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

Preview Lab → · Contrast checker → · Palette generator →

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