#6142BF#6142BF

#6142BF is a mid, vivid violet. Relative luminance 0.102; OKLCH L 48.6% C 0.186 H 289.0°. Best body text is #FFFFFF at 6.91:1 contrast (WCAG AA passes).

Color values

HEX#6142BF
RGBrgb(97, 66, 191)
HSLhsl(255, 49%, 50%)
HSVhsv(255, 65%, 75%)
CMYKcmyk(49.2%, 65.4%, 0%, 25.1%)
CIE-LABlab(38.20, 44.07, -61.26)
CIE-LCHlch(38.20, 75.46, 305.73°)
OKLaboklab(48.62% 0.0604 -0.1756)
OKLCHoklch(48.62% 0.186 289)
XYZxyz(16.2792, 10.1987, 50.3909)
Luminance0.1020 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6142BF #A0BF42
analogous
#4261BF #6142BF #9F42BF
triadic
#6142BF #BF6142 #42BF61
tetradic
#6142BF #BF4261 #A0BF42 #42BF9F
square
#6142BF #BF4261 #A0BF42 #42BF9F
split-complementary
#6142BF #BF9F42 #61BF42
monochromatic
#332265 #4A3292 #6142BF #8770CE #AD9DDE

Accessibility & contrast

On white

6.91
#6142BF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.04
#6142BF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6142BF
6.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6142BF#FFFFFF#000000##FFFFFF
##6142BF1.006.913.046.91
#FFFFFF6.911.0021.001.00
#0000003.0421.001.0021.00
##FFFFFF6.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005CC3
Deuteranopia (green-blind)
#0057BC
Tritanopia (blue-blind)
#41607B
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #6142bf;
/* rgb */ color: rgb(97, 66, 191);
/* oklch */ color: oklch(48.6% 0.186 289.0);
Tailwind
colors: {
  custom: {
    50: '#9678d3',
    500: '#6142bf',
    950: '#000000',
  },
}
SCSS
$custom: #6142bf;
$custom-light: #9678d3;
$custom-dark: #000000;
JSON
{
  "hex": "#6142bf",
  "rgb": {
    "r": 97,
    "g": 66,
    "b": 191
  },
  "hsl": {
    "h": 254.88,
    "s": 49.407,
    "l": 50.392
  },
  "oklch": {
    "l": 0.48616,
    "c": 0.18565,
    "h": 289
  },
  "luminance": 0.10199
}

Semantic roles & 50–950 ramp

primary
#6142BF
secondary
#BCCA93
accent
#D94FB7
background
#F9F7FD
surface
#F2EDFA
border
#CCC8D3
text
#0E0914
muted
#7E7B83

Preview Lab

Preview with #6142BF

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

Preview Lab → · Contrast checker → · Palette generator →

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