#6142C8#6142C8

#6142C8 is a mid, vivid violet. Relative luminance 0.106; OKLCH L 49.4% C 0.197 H 287.5°. Best body text is #FFFFFF at 6.73:1 contrast (WCAG AA passes).

Color values

HEX#6142C8
RGBrgb(97, 66, 200)
HSLhsl(254, 55%, 52%)
HSVhsv(254, 67%, 78%)
CMYKcmyk(51.5%, 67%, 0%, 21.6%)
CIE-LABlab(38.91, 46.68, -65.35)
CIE-LCHlch(38.91, 80.30, 305.54°)
OKLaboklab(49.35% 0.0592 -0.1876)
OKLCHoklch(49.35% 0.197 287.5)
XYZxyz(17.3002, 10.6071, 55.7682)
Luminance0.1061 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6142C8 #A9C842
analogous
#4266C8 #6142C8 #A442C8
triadic
#6142C8 #C86142 #42C861
tetradic
#6142C8 #C84266 #A9C842 #42C8A4
square
#6142C8 #C84266 #A9C842 #42C8A4
split-complementary
#6142C8 #C8A442 #66C842
monochromatic
#33206F #482E9F #6142C8 #8971D6 #B0A1E4

Accessibility & contrast

On white

6.73
#6142C8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.12
#6142C8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6142C8
6.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6142C8#FFFFFF#000000##FFFFFF
##6142C81.006.733.126.73
#FFFFFF6.731.0021.001.00
#0000003.1221.001.0021.00
##FFFFFF6.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005FCC
Deuteranopia (green-blind)
#0058C5
Tritanopia (blue-blind)
#3A647F
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #6142c8;
/* rgb */ color: rgb(97, 66, 200);
/* oklch */ color: oklch(49.4% 0.197 287.5);
Tailwind
colors: {
  custom: {
    50: '#9778da',
    500: '#6142c8',
    950: '#000000',
  },
}
SCSS
$custom: #6142c8;
$custom-light: #9778da;
$custom-dark: #000000;
JSON
{
  "hex": "#6142c8",
  "rgb": {
    "r": 97,
    "g": 66,
    "b": 200
  },
  "hsl": {
    "h": 253.881,
    "s": 54.918,
    "l": 52.157
  },
  "oklch": {
    "l": 0.49353,
    "c": 0.19669,
    "h": 287.5
  },
  "luminance": 0.10608
}

Semantic roles & 50–950 ramp

primary
#6142C8
secondary
#C3D096
accent
#DE4ABC
background
#F9F7FD
surface
#F2EDFB
border
#CCC8D4
text
#0E0915
muted
#7E7B83

Preview Lab

Preview with #6142C8

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

Preview Lab → · Contrast checker → · Palette generator →

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