#6D42DB#6D42DB

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

Color values

HEX#6D42DB
RGBrgb(109, 66, 219)
HSLhsl(257, 68%, 56%)
HSVhsv(257, 70%, 86%)
CMYKcmyk(50.2%, 69.9%, 0%, 14.1%)
CIE-LABlab(41.63, 54.05, -71.81)
CIE-LCHlch(41.63, 89.88, 306.97°)
OKLaboklab(52.06% 0.0727 -0.2062)
OKLCHoklch(52.06% 0.219 289.4)
XYZxyz(21.0374, 12.2612, 68.2623)
Luminance0.1226 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6D42DB #B0DB42
analogous
#4263DB #6D42DB #BA42DB
triadic
#6D42DB #DB6D42 #42DB6D
tetradic
#6D42DB #DB4263 #B0DB42 #42DBBA
square
#6D42DB #DB4263 #B0DB42 #42DBBA
split-complementary
#6D42DB #DBBA42 #63DB42
monochromatic
#391A89 #4F24BC #6D42DB #9575E5 #BCA9EF

Accessibility & contrast

On white

6.08
#6D42DB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.45
#6D42DB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6D42DB
6.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6D42DB#FFFFFF#000000##FFFFFF
##6D42DB1.006.083.456.08
#FFFFFF6.081.0021.001.00
#0000003.4521.001.0021.00
##FFFFFF6.081.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #6d42db;
/* rgb */ color: rgb(109, 66, 219);
/* oklch */ color: oklch(52.1% 0.219 289.4);
Tailwind
colors: {
  custom: {
    50: '#a07ae7',
    500: '#6d42db',
    950: '#000000',
  },
}
SCSS
$custom: #6d42db;
$custom-light: #a07ae7;
$custom-dark: #000000;
JSON
{
  "hex": "#6d42db",
  "rgb": {
    "r": 109,
    "g": 66,
    "b": 219
  },
  "hsl": {
    "h": 256.863,
    "s": 68,
    "l": 55.882
  },
  "oklch": {
    "l": 0.52056,
    "c": 0.21862,
    "h": 289.4
  },
  "luminance": 0.12262
}

Semantic roles & 50–950 ramp

primary
#6D42DB
secondary
#CADC9D
accent
#EB3DBA
background
#FAF7FE
surface
#F4EEFD
border
#CEC9D5
text
#100916
muted
#7F7B84

Preview Lab

Preview with #6D42DB

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

Preview Lab → · Contrast checker → · Palette generator →

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