#6140E7#6140E7

#6140E7 is a mid, highly saturated violet. Relative luminance 0.120; OKLCH L 51.8% C 0.235 H 283.6°. Best body text is #FFFFFF at 6.18:1 contrast (WCAG AA passes).

Color values

HEX#6140E7
RGBrgb(97, 64, 231)
HSLhsl(252, 78%, 58%)
HSVhsv(252, 72%, 91%)
CMYKcmyk(58%, 72.3%, 0%, 9.4%)
CIE-LABlab(41.18, 56.69, -79.43)
CIE-LCHlch(41.18, 97.59, 305.51°)
OKLaboklab(51.78% 0.0552 -0.2288)
OKLCHoklch(51.78% 0.235 283.6)
XYZxyz(21.1825, 11.9763, 76.7813)
Luminance0.1198 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6140E7 #C6E740
analogous
#4073E7 #6140E7 #B440E7
triadic
#6140E7 #E76140 #40E761
tetradic
#6140E7 #E74073 #C6E740 #40E7B4
square
#6140E7 #E74073 #C6E740 #40E7B4
split-complementary
#6140E7 #E7B440 #73E740
monochromatic
#2E1399 #3E1AD0 #6140E7 #8E76EE #BBADF5

Accessibility & contrast

On white

6.18
#6140E7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.40
#6140E7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6140E7
6.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6140E7#FFFFFF#000000##FFFFFF
##6140E71.006.183.406.18
#FFFFFF6.181.0021.001.00
#0000003.4021.001.0021.00
##FFFFFF6.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0066EC
Deuteranopia (green-blind)
#005CE4
Tritanopia (blue-blind)
#0B6E90
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #6140e7;
/* rgb */ color: rgb(97, 64, 231);
/* oklch */ color: oklch(51.8% 0.235 283.6);
Tailwind
colors: {
  custom: {
    50: '#9c78f0',
    500: '#6140e7',
    950: '#000000',
  },
}
SCSS
$custom: #6140e7;
$custom-light: #9c78f0;
$custom-dark: #000000;
JSON
{
  "hex": "#6140e7",
  "rgb": {
    "r": 97,
    "g": 64,
    "b": 231
  },
  "hsl": {
    "h": 251.856,
    "s": 77.674,
    "l": 57.843
  },
  "oklch": {
    "l": 0.51784,
    "c": 0.23541,
    "h": 283.6
  },
  "luminance": 0.11978
}

Semantic roles & 50–950 ramp

primary
#6140E7
secondary
#D6E3A0
accent
#F434CE
background
#FAF7FE
surface
#F4EDFD
border
#CEC8D5
text
#100917
muted
#7F7B85

Preview Lab

Preview with #6140E7

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

Preview Lab → · Contrast checker → · Palette generator →

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