#6B42CF#6B42CF

#6B42CF is a mid, highly saturated violet. Relative luminance 0.115; OKLCH L 50.9% C 0.205 H 290.6°. Best body text is #FFFFFF at 6.35:1 contrast (WCAG AA passes).

Color values

HEX#6B42CF
RGBrgb(107, 66, 207)
HSLhsl(257, 59%, 54%)
HSVhsv(257, 68%, 81%)
CMYKcmyk(48.3%, 68.1%, 0%, 18.8%)
CIE-LABlab(40.45, 50.40, -66.84)
CIE-LCHlch(40.45, 83.72, 307.02°)
OKLaboklab(50.87% 0.072 -0.1916)
OKLCHoklch(50.87% 0.205 290.6)
XYZxyz(19.2709, 11.5265, 60.2288)
Luminance0.1153 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6B42CF #A6CF42
analogous
#425FCF #6B42CF #B142CF
triadic
#6B42CF #CF6B42 #42CF6B
tetradic
#6B42CF #CF425F #A6CF42 #42CFB1
square
#6B42CF #CF425F #A6CF42 #42CFB1
split-complementary
#6B42CF #CFB142 #5FCF42
monochromatic
#391F78 #502BA9 #6B42CF #9173DB #B7A4E8

Accessibility & contrast

On white

6.35
#6B42CF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.31
#6B42CF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6B42CF
6.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6B42CF#FFFFFF#000000##FFFFFF
##6B42CF1.006.353.316.35
#FFFFFF6.351.0021.001.00
#0000003.3121.001.0021.00
##FFFFFF6.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0062D3
Deuteranopia (green-blind)
#005CCC
Tritanopia (blue-blind)
#4A6583
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #6b42cf;
/* rgb */ color: rgb(107, 66, 207);
/* oklch */ color: oklch(50.9% 0.205 290.6);
Tailwind
colors: {
  custom: {
    50: '#9e79df',
    500: '#6b42cf',
    950: '#000000',
  },
}
SCSS
$custom: #6b42cf;
$custom-light: #9e79df;
$custom-dark: #000000;
JSON
{
  "hex": "#6b42cf",
  "rgb": {
    "r": 107,
    "g": 66,
    "b": 207
  },
  "hsl": {
    "h": 257.447,
    "s": 59.494,
    "l": 53.529
  },
  "oklch": {
    "l": 0.50868,
    "c": 0.20472,
    "h": 290.6
  },
  "luminance": 0.11527
}

Semantic roles & 50–950 ramp

primary
#6B42CF
secondary
#C3D598
accent
#E345B5
background
#FAF7FD
surface
#F4EEFB
border
#CEC9D4
text
#0F0915
muted
#7F7B83

Preview Lab

Preview with #6B42CF

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

Preview Lab → · Contrast checker → · Palette generator →

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