#6142E0#6142E0

#6142E0 is a mid, highly saturated violet. Relative luminance 0.118; OKLCH L 51.4% C 0.225 H 284.2°. Best body text is #FFFFFF at 6.24:1 contrast (WCAG AA passes).

Color values

HEX#6142E0
RGBrgb(97, 66, 224)
HSLhsl(252, 72%, 57%)
HSVhsv(252, 71%, 88%)
CMYKcmyk(56.7%, 70.5%, 0%, 12.2%)
CIE-LABlab(40.93, 53.64, -75.87)
CIE-LCHlch(40.93, 92.91, 305.26°)
OKLaboklab(51.42% 0.0552 -0.2184)
OKLCHoklch(51.42% 0.225 284.2)
XYZxyz(20.3284, 11.8184, 71.7165)
Luminance0.1182 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6142E0 #C1E042
analogous
#4272E0 #6142E0 #B042E0
triadic
#6142E0 #E06142 #42E061
tetradic
#6142E0 #E04272 #C1E042 #42E0B0
square
#6142E0 #E04272 #C1E042 #42E0B0
split-complementary
#6142E0 #E0B042 #72E042
monochromatic
#2F1890 #4020C5 #6142E0 #8D77E9 #B9ABF1

Accessibility & contrast

On white

6.24
#6142E0 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.36
#6142E0 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6142E0
6.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6142E0#FFFFFF#000000##FFFFFF
##6142E01.006.243.366.24
#FFFFFF6.241.0021.001.00
#0000003.3621.001.0021.00
##FFFFFF6.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0065E5
Deuteranopia (green-blind)
#005BDD
Tritanopia (blue-blind)
#1E6C8D
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #6142e0;
/* rgb */ color: rgb(97, 66, 224);
/* oklch */ color: oklch(51.4% 0.225 284.2);
Tailwind
colors: {
  custom: {
    50: '#9b79eb',
    500: '#6142e0',
    950: '#000000',
  },
}
SCSS
$custom: #6142e0;
$custom-light: #9b79eb;
$custom-dark: #000000;
JSON
{
  "hex": "#6142e0",
  "rgb": {
    "r": 97,
    "g": 66,
    "b": 224
  },
  "hsl": {
    "h": 251.772,
    "s": 71.818,
    "l": 56.863
  },
  "oklch": {
    "l": 0.51416,
    "c": 0.22527,
    "h": 284.2
  },
  "luminance": 0.1182
}

Semantic roles & 50–950 ramp

primary
#6142E0
secondary
#D2DF9F
accent
#EF39CB
background
#FAF7FE
surface
#F4EEFD
border
#CEC9D5
text
#0F0916
muted
#7F7B84

Preview Lab

Preview with #6142E0

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

Preview Lab → · Contrast checker → · Palette generator →

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