#6140BE#6140BE

#6140BE is a mid, vivid violet. Relative luminance 0.099; OKLCH L 48.2% C 0.187 H 289.5°. Best body text is #FFFFFF at 7.03:1 contrast (WCAG AA passes).

Color values

HEX#6140BE
RGBrgb(97, 64, 190)
HSLhsl(256, 50%, 50%)
HSVhsv(256, 66%, 75%)
CMYKcmyk(48.9%, 66.3%, 0%, 25.5%)
CIE-LABlab(37.71, 44.89, -61.47)
CIE-LCHlch(37.71, 76.12, 306.14°)
OKLaboklab(48.24% 0.0625 -0.1762)
OKLCHoklch(48.24% 0.187 289.5)
XYZxyz(16.0548, 9.9252, 49.7750)
Luminance0.0993 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6140BE #9DBE40
analogous
#405EBE #6140BE #A040BE
triadic
#6140BE #BE6140 #40BE61
tetradic
#6140BE #BE405E #9DBE40 #40BEA0
square
#6140BE #BE405E #9DBE40 #40BEA0
split-complementary
#6140BE #BEA040 #5EBE40
monochromatic
#322162 #4A3190 #6140BE #876DCE #AC9BDD

Accessibility & contrast

On white

7.03
#6140BE on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.99
#6140BE on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6140BE
7.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6140BE#FFFFFF#000000##FFFFFF
##6140BE1.007.032.997.03
#FFFFFF7.031.0021.001.00
#0000002.9921.001.0021.00
##FFFFFF7.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005BC2
Deuteranopia (green-blind)
#0056BB
Tritanopia (blue-blind)
#425F79
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #6140be;
/* rgb */ color: rgb(97, 64, 190);
/* oklch */ color: oklch(48.2% 0.187 289.5);
Tailwind
colors: {
  custom: {
    50: '#9677d3',
    500: '#6140be',
    950: '#000000',
  },
}
SCSS
$custom: #6140be;
$custom-light: #9677d3;
$custom-dark: #000000;
JSON
{
  "hex": "#6140be",
  "rgb": {
    "r": 97,
    "g": 64,
    "b": 190
  },
  "hsl": {
    "h": 255.714,
    "s": 49.606,
    "l": 49.804
  },
  "oklch": {
    "l": 0.48239,
    "c": 0.18694,
    "h": 289.5
  },
  "luminance": 0.09926
}

Semantic roles & 50–950 ramp

primary
#6140BE
secondary
#BAC990
accent
#D94FB5
background
#F9F7FD
surface
#F2EDFA
border
#CCC8D3
text
#0E0914
muted
#7E7B83

Preview Lab

Preview with #6140BE

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

Preview Lab → · Contrast checker → · Palette generator →

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