#6A42DF#6A42DF

#6A42DF is a mid, highly saturated violet. Relative luminance 0.123; OKLCH L 52.1% C 0.223 H 287.7°. Best body text is #FFFFFF at 6.07:1 contrast (WCAG AA passes).

Color values

HEX#6A42DF
RGBrgb(106, 66, 223)
HSLhsl(255, 71%, 57%)
HSVhsv(255, 70%, 87%)
CMYKcmyk(52.5%, 70.4%, 0%, 12.5%)
CIE-LABlab(41.67, 54.69, -74.04)
CIE-LCHlch(41.67, 92.05, 306.45°)
OKLaboklab(52.12% 0.0678 -0.2128)
OKLCHoklch(52.12% 0.223 287.7)
XYZxyz(21.2074, 12.2873, 71.0519)
Luminance0.1229 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6A42DF #B7DF42
analogous
#4269DF #6A42DF #B942DF
triadic
#6A42DF #DF6A42 #42DF6A
tetradic
#6A42DF #DF4269 #B7DF42 #42DFB9
square
#6A42DF #DF4269 #B7DF42 #42DFB9
split-complementary
#6A42DF #DFB942 #69DF42
monochromatic
#36188E #4A21C3 #6A42DF #9376E8 #BDABF1

Accessibility & contrast

On white

6.07
#6A42DF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.46
#6A42DF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6A42DF
6.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6A42DF#FFFFFF#000000##FFFFFF
##6A42DF1.006.073.466.07
#FFFFFF6.071.0021.001.00
#0000003.4621.001.0021.00
##FFFFFF6.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0066E4
Deuteranopia (green-blind)
#005EDC
Tritanopia (blue-blind)
#3C6B8C
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #6a42df;
/* rgb */ color: rgb(106, 66, 223);
/* oklch */ color: oklch(52.1% 0.223 287.7);
Tailwind
colors: {
  custom: {
    50: '#9f7aea',
    500: '#6a42df',
    950: '#000000',
  },
}
SCSS
$custom: #6a42df;
$custom-light: #9f7aea;
$custom-dark: #000000;
JSON
{
  "hex": "#6a42df",
  "rgb": {
    "r": 106,
    "g": 66,
    "b": 223
  },
  "hsl": {
    "h": 255.287,
    "s": 71.041,
    "l": 56.667
  },
  "oklch": {
    "l": 0.52118,
    "c": 0.22333,
    "h": 287.7
  },
  "luminance": 0.12288
}

Semantic roles & 50–950 ramp

primary
#6A42DF
secondary
#CEDF9E
accent
#EE3AC0
background
#FAF7FE
surface
#F4EEFD
border
#CEC9D5
text
#100916
muted
#7F7B84

Preview Lab

Preview with #6A42DF

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

Preview Lab → · Contrast checker → · Palette generator →

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