#6142E7#6142E7

#6142E7 is a mid, highly saturated violet. Relative luminance 0.122; OKLCH L 52.0% C 0.233 H 283.3°. Best body text is #FFFFFF at 6.10:1 contrast (WCAG AA passes).

Color values

HEX#6142E7
RGBrgb(97, 66, 231)
HSLhsl(251, 77%, 58%)
HSVhsv(251, 71%, 91%)
CMYKcmyk(58%, 71.4%, 0%, 9.4%)
CIE-LABlab(41.54, 55.67, -78.84)
CIE-LCHlch(41.54, 96.51, 305.23°)
OKLaboklab(52.04% 0.0538 -0.2271)
OKLCHoklch(52.04% 0.233 283.3)
XYZxyz(21.2973, 12.2060, 76.8195)
Luminance0.1221 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6142E7 #C8E742
analogous
#4275E7 #6142E7 #B442E7
triadic
#6142E7 #E76142 #42E761
tetradic
#6142E7 #E74275 #C8E742 #42E7B4
square
#6142E7 #E74275 #C8E742 #42E7B4
split-complementary
#6142E7 #E7B442 #75E742
monochromatic
#2D149B #3D1BD1 #6142E7 #8E78EE #BCAFF5

Accessibility & contrast

On white

6.10
#6142E7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.44
#6142E7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6142E7
6.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6142E7#FFFFFF#000000##FFFFFF
##6142E71.006.103.446.10
#FFFFFF6.101.0021.001.00
#0000003.4421.001.0021.00
##FFFFFF6.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0067EC
Deuteranopia (green-blind)
#005CE4
Tritanopia (blue-blind)
#0A6F91
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #6142e7;
/* rgb */ color: rgb(97, 66, 231);
/* oklch */ color: oklch(52.0% 0.233 283.3);
Tailwind
colors: {
  custom: {
    50: '#9c7af0',
    500: '#6142e7',
    950: '#000000',
  },
}
SCSS
$custom: #6142e7;
$custom-light: #9c7af0;
$custom-dark: #000000;
JSON
{
  "hex": "#6142e7",
  "rgb": {
    "r": 97,
    "g": 66,
    "b": 231
  },
  "hsl": {
    "h": 251.273,
    "s": 77.465,
    "l": 58.235
  },
  "oklch": {
    "l": 0.52041,
    "c": 0.23339,
    "h": 283.3
  },
  "luminance": 0.12207
}

Semantic roles & 50–950 ramp

primary
#6142E7
secondary
#D7E3A2
accent
#F434D0
background
#FAF7FE
surface
#F4EEFD
border
#CEC9D5
text
#100917
muted
#7F7B85

Preview Lab

Preview with #6142E7

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

Preview Lab → · Contrast checker → · Palette generator →

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