#6142D6#6142D6

#6142D6 is a mid, highly saturated violet. Relative luminance 0.113; OKLCH L 50.5% C 0.214 H 285.5°. Best body text is #FFFFFF at 6.44:1 contrast (WCAG AA passes).

Color values

HEX#6142D6
RGBrgb(97, 66, 214)
HSLhsl(253, 64%, 55%)
HSVhsv(253, 69%, 84%)
CMYKcmyk(54.7%, 69.2%, 0%, 16.1%)
CIE-LABlab(40.07, 50.74, -71.55)
CIE-LCHlch(40.07, 87.71, 305.35°)
OKLaboklab(50.54% 0.057 -0.2058)
OKLCHoklch(50.54% 0.214 285.5)
XYZxyz(19.0119, 11.2918, 64.7830)
Luminance0.1129 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6142D6 #B7D642
analogous
#426DD6 #6142D6 #AB42D6
triadic
#6142D6 #D66142 #42D661
tetradic
#6142D6 #D6426D #B7D642 #42D6AB
square
#6142D6 #D6426D #B7D642 #42D6AB
split-complementary
#6142D6 #D6AB42 #6DD642
monochromatic
#311C82 #4427B4 #6142D6 #8B74E1 #B5A7EC

Accessibility & contrast

On white

6.44
#6142D6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.26
#6142D6 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6142D6
6.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6142D6#FFFFFF#000000##FFFFFF
##6142D61.006.443.266.44
#FFFFFF6.441.0021.001.00
#0000003.2621.001.0021.00
##FFFFFF6.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0062DA
Deuteranopia (green-blind)
#005AD3
Tritanopia (blue-blind)
#2C6987
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #6142d6;
/* rgb */ color: rgb(97, 66, 214);
/* oklch */ color: oklch(50.5% 0.214 285.5);
Tailwind
colors: {
  custom: {
    50: '#9979e4',
    500: '#6142d6',
    950: '#000000',
  },
}
SCSS
$custom: #6142d6;
$custom-light: #9979e4;
$custom-dark: #000000;
JSON
{
  "hex": "#6142d6",
  "rgb": {
    "r": 97,
    "g": 66,
    "b": 214
  },
  "hsl": {
    "h": 252.568,
    "s": 64.348,
    "l": 54.902
  },
  "oklch": {
    "l": 0.50541,
    "c": 0.21351,
    "h": 285.5
  },
  "luminance": 0.11293
}

Semantic roles & 50–950 ramp

primary
#6142D6
secondary
#CCD99B
accent
#E740C4
background
#FAF7FE
surface
#F3EDFC
border
#CDC8D5
text
#0F0916
muted
#7F7B84

Preview Lab

Preview with #6142D6

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

Preview Lab → · Contrast checker → · Palette generator →

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