#6142C2#6142C2

#6142C2 is a mid, vivid violet. Relative luminance 0.103; OKLCH L 48.9% C 0.189 H 288.5°. Best body text is #FFFFFF at 6.85:1 contrast (WCAG AA passes).

Color values

HEX#6142C2
RGBrgb(97, 66, 194)
HSLhsl(255, 51%, 51%)
HSVhsv(255, 66%, 76%)
CMYKcmyk(50%, 66%, 0%, 23.9%)
CIE-LABlab(38.43, 44.94, -62.63)
CIE-LCHlch(38.43, 77.08, 305.66°)
OKLaboklab(48.86% 0.06 -0.1796)
OKLCHoklch(48.86% 0.189 288.5)
XYZxyz(16.6128, 10.3321, 52.1474)
Luminance0.1033 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6142C2 #A3C242
analogous
#4263C2 #6142C2 #A142C2
triadic
#6142C2 #C26142 #42C261
tetradic
#6142C2 #C24263 #A3C242 #42C2A1
square
#6142C2 #C24263 #A3C242 #42C2A1
split-complementary
#6142C2 #C2A142 #63C242
monochromatic
#332268 #493196 #6142C2 #8870D1 #AE9FE0

Accessibility & contrast

On white

6.85
#6142C2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.07
#6142C2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6142C2
6.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6142C2#FFFFFF#000000##FFFFFF
##6142C21.006.853.076.85
#FFFFFF6.851.0021.001.00
#0000003.0721.001.0021.00
##FFFFFF6.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005DC6
Deuteranopia (green-blind)
#0057BF
Tritanopia (blue-blind)
#3F627C
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #6142c2;
/* rgb */ color: rgb(97, 66, 194);
/* oklch */ color: oklch(48.9% 0.189 288.5);
Tailwind
colors: {
  custom: {
    50: '#9678d5',
    500: '#6142c2',
    950: '#000000',
  },
}
SCSS
$custom: #6142c2;
$custom-light: #9678d5;
$custom-dark: #000000;
JSON
{
  "hex": "#6142c2",
  "rgb": {
    "r": 97,
    "g": 66,
    "b": 194
  },
  "hsl": {
    "h": 254.531,
    "s": 51.2,
    "l": 50.98
  },
  "oklch": {
    "l": 0.4886,
    "c": 0.18935,
    "h": 288.5
  },
  "luminance": 0.10333
}

Semantic roles & 50–950 ramp

primary
#6142C2
secondary
#BFCC94
accent
#DB4DB8
background
#F9F7FD
surface
#F2EDFA
border
#CCC8D3
text
#0E0914
muted
#7E7B83

Preview Lab

Preview with #6142C2

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

Preview Lab → · Contrast checker → · Palette generator →

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