#6A42CF#6A42CF

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

Color values

HEX#6A42CF
RGBrgb(106, 66, 207)
HSLhsl(257, 59%, 54%)
HSVhsv(257, 68%, 81%)
CMYKcmyk(48.8%, 68.1%, 0%, 18.8%)
CIE-LABlab(40.35, 50.23, -67.01)
CIE-LCHlch(40.35, 83.75, 306.85°)
OKLaboklab(50.77% 0.0706 -0.1922)
OKLCHoklch(50.77% 0.205 290.2)
XYZxyz(19.1513, 11.4648, 60.2232)
Luminance0.1147 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6A42CF #A7CF42
analogous
#4260CF #6A42CF #B042CF
triadic
#6A42CF #CF6A42 #42CF6A
tetradic
#6A42CF #CF4260 #A7CF42 #42CFB0
square
#6A42CF #CF4260 #A7CF42 #42CFB0
split-complementary
#6A42CF #CFB042 #60CF42
monochromatic
#381F78 #4F2BA9 #6A42CF #9073DB #B7A4E8

Accessibility & contrast

On white

6.38
#6A42CF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.29
#6A42CF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6A42CF
6.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6A42CF#FFFFFF#000000##FFFFFF
##6A42CF1.006.383.296.38
#FFFFFF6.381.0021.001.00
#0000003.2921.001.0021.00
##FFFFFF6.381.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #6a42cf;
/* rgb */ color: rgb(106, 66, 207);
/* oklch */ color: oklch(50.8% 0.205 290.2);
Tailwind
colors: {
  custom: {
    50: '#9d79df',
    500: '#6a42cf',
    950: '#000000',
  },
}
SCSS
$custom: #6a42cf;
$custom-light: #9d79df;
$custom-dark: #000000;
JSON
{
  "hex": "#6a42cf",
  "rgb": {
    "r": 106,
    "g": 66,
    "b": 207
  },
  "hsl": {
    "h": 257.021,
    "s": 59.494,
    "l": 53.529
  },
  "oklch": {
    "l": 0.50772,
    "c": 0.20473,
    "h": 290.2
  },
  "luminance": 0.11466
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #6A42CF

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

Preview Lab → · Contrast checker → · Palette generator →

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