#6B41B2#6B41B2

#6B41B2 is a mid, vivid violet. Relative luminance 0.101; OKLCH L 48.5% C 0.171 H 296.6°. Best body text is #FFFFFF at 6.94:1 contrast (WCAG AA passes).

Color values

HEX#6B41B2
RGBrgb(107, 65, 178)
HSLhsl(262, 47%, 48%)
HSVhsv(262, 63%, 70%)
CMYKcmyk(39.9%, 63.5%, 0%, 30.2%)
CIE-LABlab(38.06, 43.00, -53.78)
CIE-LCHlch(38.06, 68.86, 308.64°)
OKLaboklab(48.45% 0.0766 -0.1532)
OKLCHoklch(48.45% 0.171 296.6)
XYZxyz(15.9875, 10.1205, 43.2220)
Luminance0.1012 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6B41B2 #88B241
analogous
#414FB2 #6B41B2 #A341B2
triadic
#6B41B2 #B26B41 #41B26B
tetradic
#6B41B2 #B2414F #88B241 #41B2A3
square
#6B41B2 #B2414F #88B241 #41B2A3
split-complementary
#6B41B2 #B2A341 #4FB241
monochromatic
#352058 #503185 #6B41B2 #8C68C8 #AE95D8

Accessibility & contrast

On white

6.94
#6B41B2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.02
#6B41B2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6B41B2
6.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6B41B2#FFFFFF#000000##FFFFFF
##6B41B21.006.943.026.94
#FFFFFF6.941.0021.001.00
#0000003.0221.001.0021.00
##FFFFFF6.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005AB6
Deuteranopia (green-blind)
#0058B0
Tritanopia (blue-blind)
#595A73
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #6b41b2;
/* rgb */ color: rgb(107, 65, 178);
/* oklch */ color: oklch(48.5% 0.171 296.6);
Tailwind
colors: {
  custom: {
    50: '#9a78ca',
    500: '#6b41b2',
    950: '#000000',
  },
}
SCSS
$custom: #6b41b2;
$custom-light: #9a78ca;
$custom-dark: #000000;
JSON
{
  "hex": "#6b41b2",
  "rgb": {
    "r": 107,
    "g": 65,
    "b": 178
  },
  "hsl": {
    "h": 262.301,
    "s": 46.502,
    "l": 47.647
  },
  "oklch": {
    "l": 0.48453,
    "c": 0.17133,
    "h": 296.6
  },
  "luminance": 0.10121
}

Semantic roles & 50–950 ramp

primary
#6B41B2
secondary
#AFC48B
accent
#D652A5
background
#F9F7FC
surface
#F2EDF8
border
#CCC8D1
text
#0F0913
muted
#7E7B82

Preview Lab

Preview with #6B41B2

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

Preview Lab → · Contrast checker → · Palette generator →

#6B41B2 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva