#6142BB#6142BB

#6142BB is a mid, vivid violet. Relative luminance 0.100; OKLCH L 48.3% C 0.181 H 289.7°. Best body text is #FFFFFF at 6.99:1 contrast (WCAG AA passes).

Color values

HEX#6142BB
RGBrgb(97, 66, 187)
HSLhsl(255, 48%, 50%)
HSVhsv(255, 65%, 73%)
CMYKcmyk(48.1%, 64.7%, 0%, 26.7%)
CIE-LABlab(37.89, 42.91, -59.42)
CIE-LCHlch(37.89, 73.29, 305.84°)
OKLaboklab(48.3% 0.0609 -0.1701)
OKLCHoklch(48.3% 0.181 289.7)
XYZxyz(15.8451, 10.0250, 48.1042)
Luminance0.1003 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6142BB #9CBB42
analogous
#4260BB #6142BB #9E42BB
triadic
#6142BB #BB6142 #42BB61
tetradic
#6142BB #BB4260 #9CBB42 #42BB9E
square
#6142BB #BB4260 #9CBB42 #42BB9E
split-complementary
#6142BB #BB9E42 #60BB42
monochromatic
#322261 #4A328E #6142BB #866ECC #AC9CDC

Accessibility & contrast

On white

6.99
#6142BB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.01
#6142BB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6142BB
6.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6142BB#FFFFFF#000000##FFFFFF
##6142BB1.006.993.016.99
#FFFFFF6.991.0021.001.00
#0000003.0121.001.0021.00
##FFFFFF6.991.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #6142bb;
/* rgb */ color: rgb(97, 66, 187);
/* oklch */ color: oklch(48.3% 0.181 289.7);
Tailwind
colors: {
  custom: {
    50: '#9578d0',
    500: '#6142bb',
    950: '#000000',
  },
}
SCSS
$custom: #6142bb;
$custom-light: #9578d0;
$custom-dark: #000000;
JSON
{
  "hex": "#6142bb",
  "rgb": {
    "r": 97,
    "g": 66,
    "b": 187
  },
  "hsl": {
    "h": 255.372,
    "s": 47.826,
    "l": 49.608
  },
  "oklch": {
    "l": 0.48296,
    "c": 0.18069,
    "h": 289.7
  },
  "luminance": 0.10026
}

Semantic roles & 50–950 ramp

primary
#6142BB
secondary
#BAC891
accent
#D750B5
background
#F9F7FC
surface
#F2EDF9
border
#CCC8D2
text
#0E0914
muted
#7E7B82

Preview Lab

Preview with #6142BB

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

Preview Lab → · Contrast checker → · Palette generator →

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