#6A42BC#6A42BC

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

Color values

HEX#6A42BC
RGBrgb(106, 66, 188)
HSLhsl(260, 48%, 50%)
HSVhsv(260, 65%, 74%)
CMYKcmyk(43.6%, 64.9%, 0%, 26.3%)
CIE-LABlab(38.88, 44.96, -58.34)
CIE-LCHlch(38.88, 73.66, 307.62°)
OKLaboklab(49.26% 0.0732 -0.1667)
OKLCHoklch(49.26% 0.182 293.7)
XYZxyz(16.9667, 10.5910, 48.7175)
Luminance0.1059 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6A42BC #94BC42
analogous
#4257BC #6A42BC #A742BC
triadic
#6A42BC #BC6A42 #42BC6A
tetradic
#6A42BC #BC4257 #94BC42 #42BCA7
square
#6A42BC #BC4257 #94BC42 #42BCA7
split-complementary
#6A42BC #BCA742 #57BC42
monochromatic
#372261 #50328F #6A42BC #8D6FCC #B19CDC

Accessibility & contrast

On white

6.73
#6A42BC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.12
#6A42BC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6A42BC
6.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6A42BC#FFFFFF#000000##FFFFFF
##6A42BC1.006.733.126.73
#FFFFFF6.731.0021.001.00
#0000003.1221.001.0021.00
##FFFFFF6.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005DC0
Deuteranopia (green-blind)
#0059B9
Tritanopia (blue-blind)
#535F79
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #6a42bc;
/* rgb */ color: rgb(106, 66, 188);
/* oklch */ color: oklch(49.3% 0.182 293.7);
Tailwind
colors: {
  custom: {
    50: '#9b79d1',
    500: '#6a42bc',
    950: '#000000',
  },
}
SCSS
$custom: #6a42bc;
$custom-light: #9b79d1;
$custom-dark: #000000;
JSON
{
  "hex": "#6a42bc",
  "rgb": {
    "r": 106,
    "g": 66,
    "b": 188
  },
  "hsl": {
    "h": 259.672,
    "s": 48.031,
    "l": 49.804
  },
  "oklch": {
    "l": 0.49255,
    "c": 0.18205,
    "h": 293.7
  },
  "luminance": 0.10591
}

Semantic roles & 50–950 ramp

primary
#6A42BC
secondary
#B6C991
accent
#D850AB
background
#FAF7FC
surface
#F3EDF9
border
#CDC8D2
text
#0F0914
muted
#7F7B82

Preview Lab

Preview with #6A42BC

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

Preview Lab → · Contrast checker → · Palette generator →

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