#6140BC#6140BC

#6140BC is a mid, vivid violet. Relative luminance 0.098; OKLCH L 48.1% C 0.184 H 289.9°. Best body text is #FFFFFF at 7.08:1 contrast (WCAG AA passes).

Color values

HEX#6140BC
RGBrgb(97, 64, 188)
HSLhsl(256, 49%, 49%)
HSVhsv(256, 66%, 74%)
CMYKcmyk(48.4%, 66%, 0%, 26.3%)
CIE-LABlab(37.55, 44.32, -60.55)
CIE-LCHlch(37.55, 75.04, 306.20°)
OKLaboklab(48.08% 0.0628 -0.1735)
OKLCHoklch(48.08% 0.184 289.9)
XYZxyz(15.8377, 9.8384, 48.6317)
Luminance0.0984 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6140BC #9BBC40
analogous
#405DBC #6140BC #9F40BC
triadic
#6140BC #BC6140 #40BC61
tetradic
#6140BC #BC405D #9BBC40 #40BC9F
square
#6140BC #BC405D #9BBC40 #40BC9F
split-complementary
#6140BC #BC9F40 #5DBC40
monochromatic
#322161 #49308E #6140BC #866CCD #AC9ADD

Accessibility & contrast

On white

7.08
#6140BC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.97
#6140BC on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6140BC
7.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6140BC#FFFFFF#000000##FFFFFF
##6140BC1.007.082.977.08
#FFFFFF7.081.0021.001.00
#0000002.9721.001.0021.00
##FFFFFF7.081.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #6140bc;
/* rgb */ color: rgb(97, 64, 188);
/* oklch */ color: oklch(48.1% 0.184 289.9);
Tailwind
colors: {
  custom: {
    50: '#9577d1',
    500: '#6140bc',
    950: '#000000',
  },
}
SCSS
$custom: #6140bc;
$custom-light: #9577d1;
$custom-dark: #000000;
JSON
{
  "hex": "#6140bc",
  "rgb": {
    "r": 97,
    "g": 64,
    "b": 188
  },
  "hsl": {
    "h": 255.968,
    "s": 49.206,
    "l": 49.412
  },
  "oklch": {
    "l": 0.48077,
    "c": 0.18448,
    "h": 289.9
  },
  "luminance": 0.09839
}

Semantic roles & 50–950 ramp

primary
#6140BC
secondary
#B9C98F
accent
#D94FB4
background
#F9F7FD
surface
#F2EDFA
border
#CCC8D3
text
#0E0914
muted
#7E7B83

Preview Lab

Preview with #6140BC

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

Preview Lab → · Contrast checker → · Palette generator →

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