#6142B2#6142B2

#6142B2 is a mid, vivid violet. Relative luminance 0.097; OKLCH L 47.6% C 0.169 H 291.4°. Best body text is #FFFFFF at 7.17:1 contrast (WCAG AA passes).

Color values

HEX#6142B2
RGBrgb(97, 66, 178)
HSLhsl(257, 46%, 48%)
HSVhsv(257, 63%, 70%)
CMYKcmyk(45.5%, 62.9%, 0%, 30.2%)
CIE-LABlab(37.21, 40.32, -55.21)
CIE-LCHlch(37.21, 68.36, 306.14°)
OKLaboklab(47.59% 0.0617 -0.1578)
OKLCHoklch(47.59% 0.169 291.4)
XYZxyz(14.9116, 9.6517, 43.1881)
Luminance0.0965 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6142B2 #93B242
analogous
#425BB2 #6142B2 #9942B2
triadic
#6142B2 #B26142 #42B261
tetradic
#6142B2 #B2425B #93B242 #42B299
square
#6142B2 #B2425B #93B242 #42B299
split-complementary
#6142B2 #B29942 #5BB242
monochromatic
#302159 #493185 #6142B2 #846AC8 #A896D8

Accessibility & contrast

On white

7.17
#6142B2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.93
#6142B2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6142B2
7.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6142B2#FFFFFF#000000##FFFFFF
##6142B21.007.172.937.17
#FFFFFF7.171.0021.001.00
#0000002.9321.001.0021.00
##FFFFFF7.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0059B6
Deuteranopia (green-blind)
#0055B0
Tritanopia (blue-blind)
#495C74
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #6142b2;
/* rgb */ color: rgb(97, 66, 178);
/* oklch */ color: oklch(47.6% 0.169 291.4);
Tailwind
colors: {
  custom: {
    50: '#9478ca',
    500: '#6142b2',
    950: '#000000',
  },
}
SCSS
$custom: #6142b2;
$custom-light: #9478ca;
$custom-dark: #000000;
JSON
{
  "hex": "#6142b2",
  "rgb": {
    "r": 97,
    "g": 66,
    "b": 178
  },
  "hsl": {
    "h": 256.607,
    "s": 45.902,
    "l": 47.843
  },
  "oklch": {
    "l": 0.47591,
    "c": 0.16939,
    "h": 291.4
  },
  "luminance": 0.09652
}

Semantic roles & 50–950 ramp

primary
#6142B2
secondary
#B4C48C
accent
#D652B1
background
#F9F7FC
surface
#F2EDF8
border
#CCC8D1
text
#0E0913
muted
#7E7B82

Preview Lab

Preview with #6142B2

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

Preview Lab → · Contrast checker → · Palette generator →

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