#6531B2#6531B2

#6531B2 is a mid, vivid violet. Relative luminance 0.082; OKLCH L 45.6% C 0.191 H 296.4°. Best body text is #FFFFFF at 7.97:1 contrast (WCAG AA passes).

Color values

HEX#6531B2
RGBrgb(101, 49, 178)
HSLhsl(264, 57%, 45%)
HSVhsv(264, 72%, 70%)
CMYKcmyk(43.3%, 72.5%, 0%, 30.2%)
CIE-LABlab(34.35, 50.13, -59.84)
CIE-LCHlch(34.35, 78.07, 309.96°)
OKLaboklab(45.64% 0.0849 -0.1712)
OKLCHoklch(45.64% 0.191 296.4)
XYZxyz(14.4989, 8.1774, 42.9253)
Luminance0.0818 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6531B2 #7EB231
analogous
#313EB2 #6531B2 #A631B2
triadic
#6531B2 #B26531 #31B265
tetradic
#6531B2 #B2313E #7EB231 #31B2A6
square
#6531B2 #B2313E #7EB231 #31B2A6
split-complementary
#6531B2 #B2A631 #3EB231
monochromatic
#2F1752 #4A2482 #6531B2 #8451CF #A681DC

Accessibility & contrast

On white

7.97
#6531B2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.64
#6531B2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6531B2
7.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6531B2#FFFFFF#000000##FFFFFF
##6531B21.007.972.647.97
#FFFFFF7.971.0021.001.00
#0000002.6421.001.0021.00
##FFFFFF7.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0051B6
Deuteranopia (green-blind)
#004FAF
Tritanopia (blue-blind)
#51526E
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #6531b2;
/* rgb */ color: rgb(101, 49, 178);
/* oklch */ color: oklch(45.6% 0.191 296.4);
Tailwind
colors: {
  custom: {
    50: '#986eca',
    500: '#6531b2',
    950: '#000000',
  },
}
SCSS
$custom: #6531b2;
$custom-light: #986eca;
$custom-dark: #000000;
JSON
{
  "hex": "#6531b2",
  "rgb": {
    "r": 101,
    "g": 49,
    "b": 178
  },
  "hsl": {
    "h": 264.186,
    "s": 56.828,
    "l": 44.51
  },
  "oklch": {
    "l": 0.45639,
    "c": 0.1911,
    "h": 296.4
  },
  "luminance": 0.08178
}

Semantic roles & 50–950 ramp

primary
#6531B2
secondary
#A7C579
accent
#E048A3
background
#F9F6FC
surface
#F2ECF8
border
#CCC7D1
text
#0E0713
muted
#7E7A82

Preview Lab

Preview with #6531B2

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

Preview Lab → · Contrast checker → · Palette generator →

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