#6140BB#6140BB

#6140BB is a mid, vivid violet. Relative luminance 0.098; OKLCH L 48.0% C 0.183 H 290.1°. Best body text is #FFFFFF at 7.10:1 contrast (WCAG AA passes).

Color values

HEX#6140BB
RGBrgb(97, 64, 187)
HSLhsl(256, 49%, 49%)
HSVhsv(256, 66%, 73%)
CMYKcmyk(48.1%, 65.8%, 0%, 26.7%)
CIE-LABlab(37.47, 44.03, -60.09)
CIE-LCHlch(37.47, 74.50, 306.23°)
OKLaboklab(48% 0.0629 -0.1721)
OKLCHoklch(48% 0.183 290.1)
XYZxyz(15.7302, 9.7954, 48.0660)
Luminance0.0980 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6140BB #9ABB40
analogous
#405CBB #6140BB #9F40BB
triadic
#6140BB #BB6140 #40BB61
tetradic
#6140BB #BB405C #9ABB40 #40BB9F
square
#6140BB #BB405C #9ABB40 #40BB9F
split-complementary
#6140BB #BB9F40 #5CBB40
monochromatic
#322160 #49308D #6140BB #866CCD #AB99DC

Accessibility & contrast

On white

7.10
#6140BB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.96
#6140BB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6140BB
7.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6140BB#FFFFFF#000000##FFFFFF
##6140BB1.007.102.967.10
#FFFFFF7.101.0021.001.00
#0000002.9621.001.0021.00
##FFFFFF7.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005ABF
Deuteranopia (green-blind)
#0055B9
Tritanopia (blue-blind)
#445E78
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #6140bb;
/* rgb */ color: rgb(97, 64, 187);
/* oklch */ color: oklch(48.0% 0.183 290.1);
Tailwind
colors: {
  custom: {
    50: '#9577d0',
    500: '#6140bb',
    950: '#000000',
  },
}
SCSS
$custom: #6140bb;
$custom-light: #9577d0;
$custom-dark: #000000;
JSON
{
  "hex": "#6140bb",
  "rgb": {
    "r": 97,
    "g": 64,
    "b": 187
  },
  "hsl": {
    "h": 256.098,
    "s": 49.004,
    "l": 49.216
  },
  "oklch": {
    "l": 0.47996,
    "c": 0.18326,
    "h": 290.1
  },
  "luminance": 0.09796
}

Semantic roles & 50–950 ramp

primary
#6140BB
secondary
#B9C88F
accent
#D94FB4
background
#F9F7FC
surface
#F2EDF9
border
#CCC8D2
text
#0E0914
muted
#7E7B82

Preview Lab

Preview with #6140BB

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

Preview Lab → · Contrast checker → · Palette generator →

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