#6A42BD#6A42BD

#6A42BD is a mid, vivid violet. Relative luminance 0.106; OKLCH L 49.3% C 0.183 H 293.5°. Best body text is #FFFFFF at 6.72:1 contrast (WCAG AA passes).

Color values

HEX#6A42BD
RGBrgb(106, 66, 189)
HSLhsl(260, 48%, 50%)
HSVhsv(260, 65%, 74%)
CMYKcmyk(43.9%, 65.1%, 0%, 25.9%)
CIE-LABlab(38.96, 45.24, -58.81)
CIE-LCHlch(38.96, 74.20, 307.57°)
OKLaboklab(49.33% 0.0731 -0.168)
OKLCHoklch(49.33% 0.183 293.5)
XYZxyz(17.0749, 10.6342, 49.2872)
Luminance0.1064 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6A42BD #95BD42
analogous
#4258BD #6A42BD #A742BD
triadic
#6A42BD #BD6A42 #42BD6A
tetradic
#6A42BD #BD4258 #95BD42 #42BDA7
square
#6A42BD #BD4258 #95BD42 #42BDA7
split-complementary
#6A42BD #BDA742 #58BD42
monochromatic
#372262 #513290 #6A42BD #8E6FCD #B29DDD

Accessibility & contrast

On white

6.72
#6A42BD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.13
#6A42BD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6A42BD
6.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6A42BD#FFFFFF#000000##FFFFFF
##6A42BD1.006.723.136.72
#FFFFFF6.721.0021.001.00
#0000003.1321.001.0021.00
##FFFFFF6.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005DC1
Deuteranopia (green-blind)
#005ABA
Tritanopia (blue-blind)
#535F7A
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #6a42bd;
/* rgb */ color: rgb(106, 66, 189);
/* oklch */ color: oklch(49.3% 0.183 293.5);
Tailwind
colors: {
  custom: {
    50: '#9b79d2',
    500: '#6a42bd',
    950: '#000000',
  },
}
SCSS
$custom: #6a42bd;
$custom-light: #9b79d2;
$custom-dark: #000000;
JSON
{
  "hex": "#6a42bd",
  "rgb": {
    "r": 106,
    "g": 66,
    "b": 189
  },
  "hsl": {
    "h": 259.512,
    "s": 48.235,
    "l": 50
  },
  "oklch": {
    "l": 0.49333,
    "c": 0.18326,
    "h": 293.5
  },
  "luminance": 0.10635
}

Semantic roles & 50–950 ramp

primary
#6A42BD
secondary
#B7C992
accent
#D850AC
background
#FAF7FD
surface
#F3EDFA
border
#CDC8D3
text
#0F0914
muted
#7F7B83

Preview Lab

Preview with #6A42BD

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

Preview Lab → · Contrast checker → · Palette generator →

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