#6B42DB#6B42DB

#6B42DB is a mid, highly saturated violet. Relative luminance 0.121; OKLCH L 51.9% C 0.219 H 288.6°. Best body text is #FFFFFF at 6.13:1 contrast (WCAG AA passes).

Color values

HEX#6B42DB
RGBrgb(107, 66, 219)
HSLhsl(256, 68%, 56%)
HSVhsv(256, 70%, 86%)
CMYKcmyk(51.1%, 69.9%, 0%, 14.1%)
CIE-LABlab(41.43, 53.73, -72.15)
CIE-LCHlch(41.43, 89.96, 306.68°)
OKLaboklab(51.87% 0.0699 -0.2072)
OKLCHoklch(51.87% 0.219 288.6)
XYZxyz(20.7941, 12.1357, 68.2509)
Luminance0.1214 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6B42DB #B2DB42
analogous
#4265DB #6B42DB #B742DB
triadic
#6B42DB #DB6B42 #42DB6B
tetradic
#6B42DB #DB4265 #B2DB42 #42DBB7
square
#6B42DB #DB4265 #B2DB42 #42DBB7
split-complementary
#6B42DB #DBB742 #65DB42
monochromatic
#381A89 #4D24BC #6B42DB #9375E5 #BCA9EF

Accessibility & contrast

On white

6.13
#6B42DB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.43
#6B42DB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6B42DB
6.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6B42DB#FFFFFF#000000##FFFFFF
##6B42DB1.006.133.436.13
#FFFFFF6.131.0021.001.00
#0000003.4321.001.0021.00
##FFFFFF6.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0065E0
Deuteranopia (green-blind)
#005ED8
Tritanopia (blue-blind)
#426A8A
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #6b42db;
/* rgb */ color: rgb(107, 66, 219);
/* oklch */ color: oklch(51.9% 0.219 288.6);
Tailwind
colors: {
  custom: {
    50: '#9f7ae7',
    500: '#6b42db',
    950: '#000000',
  },
}
SCSS
$custom: #6b42db;
$custom-light: #9f7ae7;
$custom-dark: #000000;
JSON
{
  "hex": "#6b42db",
  "rgb": {
    "r": 107,
    "g": 66,
    "b": 219
  },
  "hsl": {
    "h": 256.078,
    "s": 68,
    "l": 55.882
  },
  "oklch": {
    "l": 0.51869,
    "c": 0.21868,
    "h": 288.6
  },
  "luminance": 0.12137
}

Semantic roles & 50–950 ramp

primary
#6B42DB
secondary
#CBDC9D
accent
#EB3DBC
background
#FAF7FE
surface
#F4EEFD
border
#CEC9D5
text
#100916
muted
#7F7B84

Preview Lab

Preview with #6B42DB

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

Preview Lab → · Contrast checker → · Palette generator →

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