#6142BC#6142BC

#6142BC is a mid, vivid violet. Relative luminance 0.101; OKLCH L 48.4% C 0.182 H 289.5°. Best body text is #FFFFFF at 6.97:1 contrast (WCAG AA passes).

Color values

HEX#6142BC
RGBrgb(97, 66, 188)
HSLhsl(255, 48%, 50%)
HSVhsv(255, 65%, 74%)
CMYKcmyk(48.4%, 64.9%, 0%, 26.3%)
CIE-LABlab(37.96, 43.20, -59.88)
CIE-LCHlch(37.96, 73.83, 305.81°)
OKLaboklab(48.38% 0.0607 -0.1715)
OKLCHoklch(48.38% 0.182 289.5)
XYZxyz(15.9525, 10.0680, 48.6700)
Luminance0.1007 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6142BC #9DBC42
analogous
#4260BC #6142BC #9E42BC
triadic
#6142BC #BC6142 #42BC61
tetradic
#6142BC #BC4260 #9DBC42 #42BC9E
square
#6142BC #BC4260 #9DBC42 #42BC9E
split-complementary
#6142BC #BC9E42 #60BC42
monochromatic
#322261 #4A328F #6142BC #876FCC #AC9CDC

Accessibility & contrast

On white

6.97
#6142BC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #6142BC
6.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6142BC#FFFFFF#000000##FFFFFF
##6142BC1.006.973.016.97
#FFFFFF6.971.0021.001.00
#0000003.0121.001.0021.00
##FFFFFF6.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005CC0
Deuteranopia (green-blind)
#0056BA
Tritanopia (blue-blind)
#435F79
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #6142bc;
/* rgb */ color: rgb(97, 66, 188);
/* oklch */ color: oklch(48.4% 0.182 289.5);
Tailwind
colors: {
  custom: {
    50: '#9578d1',
    500: '#6142bc',
    950: '#000000',
  },
}
SCSS
$custom: #6142bc;
$custom-light: #9578d1;
$custom-dark: #000000;
JSON
{
  "hex": "#6142bc",
  "rgb": {
    "r": 97,
    "g": 66,
    "b": 188
  },
  "hsl": {
    "h": 255.246,
    "s": 48.031,
    "l": 49.804
  },
  "oklch": {
    "l": 0.48375,
    "c": 0.18194,
    "h": 289.5
  },
  "luminance": 0.10069
}

Semantic roles & 50–950 ramp

primary
#6142BC
secondary
#BAC991
accent
#D850B5
background
#F9F7FC
surface
#F2EDF9
border
#CCC8D2
text
#0E0914
muted
#7E7B82

Preview Lab

Preview with #6142BC

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

Preview Lab → · Contrast checker → · Palette generator →

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