#6142C5#6142C5

#6142C5 is a mid, vivid violet. Relative luminance 0.105; OKLCH L 49.1% C 0.193 H 288.0°. Best body text is #FFFFFF at 6.79:1 contrast (WCAG AA passes).

Color values

HEX#6142C5
RGBrgb(97, 66, 197)
HSLhsl(254, 53%, 52%)
HSVhsv(254, 66%, 77%)
CMYKcmyk(50.8%, 66.5%, 0%, 22.7%)
CIE-LABlab(38.67, 45.81, -63.99)
CIE-LCHlch(38.67, 78.70, 305.60°)
OKLaboklab(49.11% 0.0596 -0.1836)
OKLCHoklch(49.11% 0.193 288)
XYZxyz(16.9531, 10.4682, 53.9398)
Luminance0.1047 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6142C5 #A6C542
analogous
#4265C5 #6142C5 #A242C5
triadic
#6142C5 #C56142 #42C561
tetradic
#6142C5 #C54265 #A6C542 #42C5A2
square
#6142C5 #C54265 #A6C542 #42C5A2
split-complementary
#6142C5 #C5A242 #65C542
monochromatic
#33216C #492F9A #6142C5 #8871D3 #AFA0E2

Accessibility & contrast

On white

6.79
#6142C5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.09
#6142C5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6142C5
6.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6142C5#FFFFFF#000000##FFFFFF
##6142C51.006.793.096.79
#FFFFFF6.791.0021.001.00
#0000003.0921.001.0021.00
##FFFFFF6.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005EC9
Deuteranopia (green-blind)
#0058C2
Tritanopia (blue-blind)
#3D637E
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #6142c5;
/* rgb */ color: rgb(97, 66, 197);
/* oklch */ color: oklch(49.1% 0.193 288.0);
Tailwind
colors: {
  custom: {
    50: '#9778d8',
    500: '#6142c5',
    950: '#000000',
  },
}
SCSS
$custom: #6142c5;
$custom-light: #9778d8;
$custom-dark: #000000;
JSON
{
  "hex": "#6142c5",
  "rgb": {
    "r": 97,
    "g": 66,
    "b": 197
  },
  "hsl": {
    "h": 254.198,
    "s": 53.036,
    "l": 51.569
  },
  "oklch": {
    "l": 0.49105,
    "c": 0.19303,
    "h": 288
  },
  "luminance": 0.10469
}

Semantic roles & 50–950 ramp

primary
#6142C5
secondary
#C1CE95
accent
#DC4BBA
background
#F9F7FD
surface
#F2EDFA
border
#CCC8D3
text
#0E0915
muted
#7E7B83

Preview Lab

Preview with #6142C5

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

Preview Lab → · Contrast checker → · Palette generator →

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