#6140E3#6140E3

#6140E3 is a mid, highly saturated violet. Relative luminance 0.118; OKLCH L 51.4% C 0.231 H 284.1°. Best body text is #FFFFFF at 6.27:1 contrast (WCAG AA passes).

Color values

HEX#6140E3
RGBrgb(97, 64, 227)
HSLhsl(252, 74%, 57%)
HSVhsv(252, 72%, 89%)
CMYKcmyk(57.3%, 71.8%, 0%, 11%)
CIE-LABlab(40.82, 55.54, -77.75)
CIE-LCHlch(40.82, 95.55, 305.54°)
OKLaboklab(51.42% 0.0561 -0.2239)
OKLCHoklch(51.42% 0.231 284.1)
XYZxyz(20.6240, 11.7529, 73.8399)
Luminance0.1175 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6140E3 #C2E340
analogous
#4071E3 #6140E3 #B240E3
triadic
#6140E3 #E36140 #40E361
tetradic
#6140E3 #E34071 #C2E340 #40E3B2
square
#6140E3 #E34071 #C2E340 #40E3B2
split-complementary
#6140E3 #E3B240 #71E340
monochromatic
#2F1693 #401DC8 #6140E3 #8D75EB #B9ABF3

Accessibility & contrast

On white

6.27
#6140E3 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.35
#6140E3 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6140E3
6.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6140E3#FFFFFF#000000##FFFFFF
##6140E31.006.273.356.27
#FFFFFF6.271.0021.001.00
#0000003.3521.001.0021.00
##FFFFFF6.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0065E8
Deuteranopia (green-blind)
#005BE0
Tritanopia (blue-blind)
#176D8E
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #6140e3;
/* rgb */ color: rgb(97, 64, 227);
/* oklch */ color: oklch(51.4% 0.231 284.1);
Tailwind
colors: {
  custom: {
    50: '#9b78ed',
    500: '#6140e3',
    950: '#000000',
  },
}
SCSS
$custom: #6140e3;
$custom-light: #9b78ed;
$custom-dark: #000000;
JSON
{
  "hex": "#6140e3",
  "rgb": {
    "r": 97,
    "g": 64,
    "b": 227
  },
  "hsl": {
    "h": 252.147,
    "s": 74.429,
    "l": 57.059
  },
  "oklch": {
    "l": 0.51422,
    "c": 0.23083,
    "h": 284.1
  },
  "luminance": 0.11754
}

Semantic roles & 50–950 ramp

primary
#6140E3
secondary
#D3E19E
accent
#F137CB
background
#FAF7FE
surface
#F4EDFD
border
#CEC8D5
text
#0F0916
muted
#7F7B84

Preview Lab

Preview with #6140E3

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

Preview Lab → · Contrast checker → · Palette generator →

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