#6F41B2#6F41B2

#6F41B2 is a mid, vivid violet. Relative luminance 0.104; OKLCH L 48.9% C 0.172 H 298.6°. Best body text is #FFFFFF at 6.83:1 contrast (WCAG AA passes).

Color values

HEX#6F41B2
RGBrgb(111, 65, 178)
HSLhsl(264, 47%, 48%)
HSVhsv(264, 63%, 70%)
CMYKcmyk(37.6%, 63.5%, 0%, 30.2%)
CIE-LABlab(38.51, 43.87, -53.04)
CIE-LCHlch(38.51, 68.83, 309.60°)
OKLaboklab(48.88% 0.0822 -0.1509)
OKLCHoklch(48.88% 0.172 298.6)
XYZxyz(16.4797, 10.3742, 43.2450)
Luminance0.1037 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6F41B2 #84B241
analogous
#414BB2 #6F41B2 #A841B2
triadic
#6F41B2 #B26F41 #41B26F
tetradic
#6F41B2 #B2414B #84B241 #41B2A8
square
#6F41B2 #B2414B #84B241 #41B2A8
split-complementary
#6F41B2 #B2A841 #4BB241
monochromatic
#372058 #533185 #6F41B2 #8F68C8 #B095D8

Accessibility & contrast

On white

6.83
#6F41B2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.07
#6F41B2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6F41B2
6.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6F41B2#FFFFFF#000000##FFFFFF
##6F41B21.006.833.076.83
#FFFFFF6.831.0021.001.00
#0000003.0721.001.0021.00
##FFFFFF6.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005BB6
Deuteranopia (green-blind)
#085AB0
Tritanopia (blue-blind)
#605A73
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #6f41b2;
/* rgb */ color: rgb(111, 65, 178);
/* oklch */ color: oklch(48.9% 0.172 298.6);
Tailwind
colors: {
  custom: {
    50: '#9d78ca',
    500: '#6f41b2',
    950: '#000000',
  },
}
SCSS
$custom: #6f41b2;
$custom-light: #9d78ca;
$custom-dark: #000000;
JSON
{
  "hex": "#6f41b2",
  "rgb": {
    "r": 111,
    "g": 65,
    "b": 178
  },
  "hsl": {
    "h": 264.425,
    "s": 46.502,
    "l": 47.647
  },
  "oklch": {
    "l": 0.4888,
    "c": 0.17182,
    "h": 298.6
  },
  "luminance": 0.10374
}

Semantic roles & 50–950 ramp

primary
#6F41B2
secondary
#ADC48B
accent
#D652A0
background
#FAF7FC
surface
#F3EDF8
border
#CDC8D1
text
#0F0913
muted
#7F7B82

Preview Lab

Preview with #6F41B2

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

Preview Lab → · Contrast checker → · Palette generator →

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