#6A42BB#6A42BB

#6A42BB is a mid, vivid violet. Relative luminance 0.105; OKLCH L 49.2% C 0.181 H 293.9°. Best body text is #FFFFFF at 6.75:1 contrast (WCAG AA passes).

Color values

HEX#6A42BB
RGBrgb(106, 66, 187)
HSLhsl(260, 48%, 50%)
HSVhsv(260, 65%, 73%)
CMYKcmyk(43.3%, 64.7%, 0%, 26.7%)
CIE-LABlab(38.81, 44.69, -57.88)
CIE-LCHlch(38.81, 73.12, 307.67°)
OKLaboklab(49.18% 0.0733 -0.1653)
OKLCHoklch(49.18% 0.181 293.9)
XYZxyz(16.8593, 10.5480, 48.1518)
Luminance0.1055 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6A42BB #93BB42
analogous
#4256BB #6A42BB #A742BB
triadic
#6A42BB #BB6A42 #42BB6A
tetradic
#6A42BB #BB4256 #93BB42 #42BBA7
square
#6A42BB #BB4256 #93BB42 #42BBA7
split-complementary
#6A42BB #BBA742 #56BB42
monochromatic
#372261 #50328E #6A42BB #8D6ECC #B19CDC

Accessibility & contrast

On white

6.75
#6A42BB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.11
#6A42BB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6A42BB
6.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6A42BB#FFFFFF#000000##FFFFFF
##6A42BB1.006.753.116.75
#FFFFFF6.751.0021.001.00
#0000003.1121.001.0021.00
##FFFFFF6.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005DBF
Deuteranopia (green-blind)
#0059B8
Tritanopia (blue-blind)
#545E78
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #6a42bb;
/* rgb */ color: rgb(106, 66, 187);
/* oklch */ color: oklch(49.2% 0.181 293.9);
Tailwind
colors: {
  custom: {
    50: '#9b79d0',
    500: '#6a42bb',
    950: '#000000',
  },
}
SCSS
$custom: #6a42bb;
$custom-light: #9b79d0;
$custom-dark: #000000;
JSON
{
  "hex": "#6a42bb",
  "rgb": {
    "r": 106,
    "g": 66,
    "b": 187
  },
  "hsl": {
    "h": 259.835,
    "s": 47.826,
    "l": 49.608
  },
  "oklch": {
    "l": 0.49178,
    "c": 0.18084,
    "h": 293.9
  },
  "luminance": 0.10548
}

Semantic roles & 50–950 ramp

primary
#6A42BB
secondary
#B6C891
accent
#D750AB
background
#F9F7FC
surface
#F2EDF9
border
#CCC8D2
text
#0F0914
muted
#7E7B82

Preview Lab

Preview with #6A42BB

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

Preview Lab → · Contrast checker → · Palette generator →

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