#6140E1#6140E1

#6140E1 is a mid, highly saturated violet. Relative luminance 0.116; OKLCH L 51.2% C 0.229 H 284.3°. Best body text is #FFFFFF at 6.31:1 contrast (WCAG AA passes).

Color values

HEX#6140E1
RGBrgb(97, 64, 225)
HSLhsl(252, 73%, 57%)
HSVhsv(252, 72%, 88%)
CMYKcmyk(56.9%, 71.6%, 0%, 11.8%)
CIE-LABlab(40.64, 54.97, -76.90)
CIE-LCHlch(40.64, 94.52, 305.56°)
OKLaboklab(51.24% 0.0565 -0.2214)
OKLCHoklch(51.24% 0.229 284.3)
XYZxyz(20.3496, 11.6432, 72.3946)
Luminance0.1164 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6140E1 #C0E140
analogous
#4070E1 #6140E1 #B240E1
triadic
#6140E1 #E16140 #40E161
tetradic
#6140E1 #E14070 #C0E140 #40E1B2
square
#6140E1 #E14070 #C0E140 #40E1B2
split-complementary
#6140E1 #E1B240 #70E140
monochromatic
#2F1790 #411FC5 #6140E1 #8D75E9 #B9AAF2

Accessibility & contrast

On white

6.31
#6140E1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.33
#6140E1 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6140E1
6.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6140E1#FFFFFF#000000##FFFFFF
##6140E11.006.313.336.31
#FFFFFF6.311.0021.001.00
#0000003.3321.001.0021.00
##FFFFFF6.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0064E6
Deuteranopia (green-blind)
#005BDE
Tritanopia (blue-blind)
#1C6C8D
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #6140e1;
/* rgb */ color: rgb(97, 64, 225);
/* oklch */ color: oklch(51.2% 0.229 284.3);
Tailwind
colors: {
  custom: {
    50: '#9b78ec',
    500: '#6140e1',
    950: '#000000',
  },
}
SCSS
$custom: #6140e1;
$custom-light: #9b78ec;
$custom-dark: #000000;
JSON
{
  "hex": "#6140e1",
  "rgb": {
    "r": 97,
    "g": 64,
    "b": 225
  },
  "hsl": {
    "h": 252.298,
    "s": 72.851,
    "l": 56.667
  },
  "oklch": {
    "l": 0.51242,
    "c": 0.22853,
    "h": 284.3
  },
  "luminance": 0.11644
}

Semantic roles & 50–950 ramp

primary
#6140E1
secondary
#D2DF9D
accent
#F038CA
background
#FAF7FE
surface
#F4EDFD
border
#CEC8D5
text
#0F0916
muted
#7F7B84

Preview Lab

Preview with #6140E1

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

Preview Lab → · Contrast checker → · Palette generator →

#6140E1 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva