#6A42BF#6A42BF

#6A42BF is a mid, vivid violet. Relative luminance 0.107; OKLCH L 49.5% C 0.186 H 293.1°. Best body text is #FFFFFF at 6.68:1 contrast (WCAG AA passes).

Color values

HEX#6A42BF
RGBrgb(106, 66, 191)
HSLhsl(259, 49%, 50%)
HSVhsv(259, 65%, 75%)
CMYKcmyk(44.5%, 65.4%, 0%, 25.1%)
CIE-LABlab(39.11, 45.79, -59.74)
CIE-LCHlch(39.11, 75.27, 307.47°)
OKLaboklab(49.49% 0.0729 -0.1708)
OKLCHoklch(49.49% 0.186 293.1)
XYZxyz(17.2935, 10.7217, 50.4384)
Luminance0.1072 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6A42BF #97BF42
analogous
#4258BF #6A42BF #A842BF
triadic
#6A42BF #BF6A42 #42BF6A
tetradic
#6A42BF #BF4258 #97BF42 #42BFA8
square
#6A42BF #BF4258 #97BF42 #42BFA8
split-complementary
#6A42BF #BFA842 #58BF42
monochromatic
#372265 #503292 #6A42BF #8E70CE #B29DDE

Accessibility & contrast

On white

6.68
#6A42BF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.14
#6A42BF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6A42BF
6.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6A42BF#FFFFFF#000000##FFFFFF
##6A42BF1.006.683.146.68
#FFFFFF6.681.0021.001.00
#0000003.1421.001.0021.00
##FFFFFF6.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005EC3
Deuteranopia (green-blind)
#005ABC
Tritanopia (blue-blind)
#52607B
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #6a42bf;
/* rgb */ color: rgb(106, 66, 191);
/* oklch */ color: oklch(49.5% 0.186 293.1);
Tailwind
colors: {
  custom: {
    50: '#9b79d3',
    500: '#6a42bf',
    950: '#000000',
  },
}
SCSS
$custom: #6a42bf;
$custom-light: #9b79d3;
$custom-dark: #000000;
JSON
{
  "hex": "#6a42bf",
  "rgb": {
    "r": 106,
    "g": 66,
    "b": 191
  },
  "hsl": {
    "h": 259.2,
    "s": 49.407,
    "l": 50.392
  },
  "oklch": {
    "l": 0.49488,
    "c": 0.18567,
    "h": 293.1
  },
  "luminance": 0.10722
}

Semantic roles & 50–950 ramp

primary
#6A42BF
secondary
#B8CA93
accent
#D94FAD
background
#FAF7FD
surface
#F3EDFA
border
#CDC8D3
text
#0F0914
muted
#7F7B83

Preview Lab

Preview with #6A42BF

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

Preview Lab → · Contrast checker → · Palette generator →

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