#6142BA#6142BA

#6142BA is a mid, vivid violet. Relative luminance 0.100; OKLCH L 48.2% C 0.179 H 289.9°. Best body text is #FFFFFF at 7.01:1 contrast (WCAG AA passes).

Color values

HEX#6142BA
RGBrgb(97, 66, 186)
HSLhsl(256, 48%, 49%)
HSVhsv(256, 65%, 73%)
CMYKcmyk(47.8%, 64.5%, 0%, 27.1%)
CIE-LABlab(37.81, 42.62, -58.95)
CIE-LCHlch(37.81, 72.75, 305.87°)
OKLaboklab(48.22% 0.061 -0.1688)
OKLCHoklch(48.22% 0.179 289.9)
XYZxyz(15.7384, 9.9824, 47.5424)
Luminance0.0998 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6142BA #9BBA42
analogous
#425FBA #6142BA #9D42BA
triadic
#6142BA #BA6142 #42BA61
tetradic
#6142BA #BA425F #9BBA42 #42BA9D
square
#6142BA #BA425F #9BBA42 #42BA9D
split-complementary
#6142BA #BA9D42 #5FBA42
monochromatic
#322260 #49328D #6142BA #866ECB #AC9BDB

Accessibility & contrast

On white

7.01
#6142BA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

3.00
#6142BA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6142BA
7.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6142BA#FFFFFF#000000##FFFFFF
##6142BA1.007.013.007.01
#FFFFFF7.011.0021.001.00
#0000003.0021.001.0021.00
##FFFFFF7.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005BBE
Deuteranopia (green-blind)
#0056B8
Tritanopia (blue-blind)
#445F78
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #6142ba;
/* rgb */ color: rgb(97, 66, 186);
/* oklch */ color: oklch(48.2% 0.179 289.9);
Tailwind
colors: {
  custom: {
    50: '#9578d0',
    500: '#6142ba',
    950: '#000000',
  },
}
SCSS
$custom: #6142ba;
$custom-light: #9578d0;
$custom-dark: #000000;
JSON
{
  "hex": "#6142ba",
  "rgb": {
    "r": 97,
    "g": 66,
    "b": 186
  },
  "hsl": {
    "h": 255.5,
    "s": 47.619,
    "l": 49.412
  },
  "oklch": {
    "l": 0.48216,
    "c": 0.17944,
    "h": 289.9
  },
  "luminance": 0.09983
}

Semantic roles & 50–950 ramp

primary
#6142BA
secondary
#B9C890
accent
#D751B4
background
#F9F7FC
surface
#F2EDF9
border
#CCC8D2
text
#0E0914
muted
#7E7B82

Preview Lab

Preview with #6142BA

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

Preview Lab → · Contrast checker → · Palette generator →

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