#6142D7#6142D7

#6142D7 is a mid, highly saturated violet. Relative luminance 0.113; OKLCH L 50.6% C 0.215 H 285.3°. Best body text is #FFFFFF at 6.42:1 contrast (WCAG AA passes).

Color values

HEX#6142D7
RGBrgb(97, 66, 215)
HSLhsl(252, 65%, 55%)
HSVhsv(252, 69%, 84%)
CMYKcmyk(54.9%, 69.3%, 0%, 15.7%)
CIE-LABlab(40.15, 51.03, -71.98)
CIE-LCHlch(40.15, 88.24, 305.34°)
OKLaboklab(50.63% 0.0568 -0.207)
OKLCHoklch(50.63% 0.215 285.3)
XYZxyz(19.1400, 11.3430, 65.4577)
Luminance0.1134 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6142D7 #B8D742
analogous
#426ED7 #6142D7 #AB42D7
triadic
#6142D7 #D76142 #42D761
tetradic
#6142D7 #D7426E #B8D742 #42D7AB
square
#6142D7 #D7426E #B8D742 #42D7AB
split-complementary
#6142D7 #D7AB42 #6ED742
monochromatic
#311C83 #4426B5 #6142D7 #8B75E2 #B5A7EC

Accessibility & contrast

On white

6.42
#6142D7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.27
#6142D7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6142D7
6.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6142D7#FFFFFF#000000##FFFFFF
##6142D71.006.423.276.42
#FFFFFF6.421.0021.001.00
#0000003.2721.001.0021.00
##FFFFFF6.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0063DB
Deuteranopia (green-blind)
#005AD4
Tritanopia (blue-blind)
#2B6988
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #6142d7;
/* rgb */ color: rgb(97, 66, 215);
/* oklch */ color: oklch(50.6% 0.215 285.3);
Tailwind
colors: {
  custom: {
    50: '#9979e4',
    500: '#6142d7',
    950: '#000000',
  },
}
SCSS
$custom: #6142d7;
$custom-light: #9979e4;
$custom-dark: #000000;
JSON
{
  "hex": "#6142d7",
  "rgb": {
    "r": 97,
    "g": 66,
    "b": 215
  },
  "hsl": {
    "h": 252.483,
    "s": 65.066,
    "l": 55.098
  },
  "oklch": {
    "l": 0.50627,
    "c": 0.21469,
    "h": 285.3
  },
  "luminance": 0.11344
}

Semantic roles & 50–950 ramp

primary
#6142D7
secondary
#CDDA9B
accent
#E840C5
background
#FAF7FE
surface
#F3EDFC
border
#CDC8D5
text
#0F0916
muted
#7F7B84

Preview Lab

Preview with #6142D7

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

Preview Lab → · Contrast checker → · Palette generator →

#6142D7 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva