#6F41C2#6F41C2

#6F41C2 is a mid, vivid violet. Relative luminance 0.111; OKLCH L 50.1% C 0.191 H 295.0°. Best body text is #FFFFFF at 6.54:1 contrast (WCAG AA passes).

Color values

HEX#6F41C2
RGBrgb(111, 65, 194)
HSLhsl(261, 51%, 51%)
HSVhsv(261, 66%, 76%)
CMYKcmyk(42.8%, 66.5%, 0%, 23.9%)
CIE-LABlab(39.67, 48.12, -60.55)
CIE-LCHlch(39.67, 77.34, 308.48°)
OKLaboklab(50.09% 0.0805 -0.173)
OKLCHoklch(50.09% 0.191 295)
XYZxyz(18.1808, 11.0547, 52.2043)
Luminance0.1105 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6F41C2 #94C241
analogous
#4154C2 #6F41C2 #AF41C2
triadic
#6F41C2 #C26F41 #41C26F
tetradic
#6F41C2 #C24154 #94C241 #41C2AF
square
#6F41C2 #C24154 #94C241 #41C2AF
split-complementary
#6F41C2 #C2AF41 #54C241
monochromatic
#3A2167 #543096 #6F41C2 #926FD1 #B59EE0

Accessibility & contrast

On white

6.54
#6F41C2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.21
#6F41C2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6F41C2
6.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6F41C2#FFFFFF#000000##FFFFFF
##6F41C21.006.543.216.54
#FFFFFF6.541.0021.001.00
#0000003.2121.001.0021.00
##FFFFFF6.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005FC6
Deuteranopia (green-blind)
#005BBF
Tritanopia (blue-blind)
#59607C
Achromatopsia (no color)
#5D5D5D

Design tokens & code

CSS
--color: #6f41c2;
/* rgb */ color: rgb(111, 65, 194);
/* oklch */ color: oklch(50.1% 0.191 295.0);
Tailwind
colors: {
  custom: {
    50: '#9f79d5',
    500: '#6f41c2',
    950: '#000000',
  },
}
SCSS
$custom: #6f41c2;
$custom-light: #9f79d5;
$custom-dark: #000000;
JSON
{
  "hex": "#6f41c2",
  "rgb": {
    "r": 111,
    "g": 65,
    "b": 194
  },
  "hsl": {
    "h": 261.395,
    "s": 51.394,
    "l": 50.784
  },
  "oklch": {
    "l": 0.5009,
    "c": 0.19081,
    "h": 295
  },
  "luminance": 0.11055
}

Semantic roles & 50–950 ramp

primary
#6F41C2
secondary
#B8CC93
accent
#DB4DA8
background
#FAF7FD
surface
#F4EDFA
border
#CEC8D3
text
#0F0914
muted
#7F7B83

Preview Lab

Preview with #6F41C2

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

Preview Lab → · Contrast checker → · Palette generator →

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