#6140BF#6140BF

#6140BF is a mid, vivid violet. Relative luminance 0.100; OKLCH L 48.3% C 0.188 H 289.4°. Best body text is #FFFFFF at 7.01:1 contrast (WCAG AA passes).

Color values

HEX#6140BF
RGBrgb(97, 64, 191)
HSLhsl(256, 50%, 50%)
HSVhsv(256, 66%, 75%)
CMYKcmyk(49.2%, 66.5%, 0%, 25.1%)
CIE-LABlab(37.79, 45.18, -61.93)
CIE-LCHlch(37.79, 76.66, 306.11°)
OKLaboklab(48.32% 0.0624 -0.1775)
OKLCHoklch(48.32% 0.188 289.4)
XYZxyz(16.1644, 9.9691, 50.3526)
Luminance0.0997 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6140BF #9EBF40
analogous
#405EBF #6140BF #A140BF
triadic
#6140BF #BF6140 #40BF61
tetradic
#6140BF #BF405E #9EBF40 #40BFA1
square
#6140BF #BF405E #9EBF40 #40BFA1
split-complementary
#6140BF #BFA140 #5EBF40
monochromatic
#322163 #4A3191 #6140BF #876ECE #AD9CDE

Accessibility & contrast

On white

7.01
#6140BF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #6140BF
7.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6140BF#FFFFFF#000000##FFFFFF
##6140BF1.007.012.997.01
#FFFFFF7.011.0021.001.00
#0000002.9921.001.0021.00
##FFFFFF7.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005BC3
Deuteranopia (green-blind)
#0056BC
Tritanopia (blue-blind)
#415F7A
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #6140bf;
/* rgb */ color: rgb(97, 64, 191);
/* oklch */ color: oklch(48.3% 0.188 289.4);
Tailwind
colors: {
  custom: {
    50: '#9677d3',
    500: '#6140bf',
    950: '#000000',
  },
}
SCSS
$custom: #6140bf;
$custom-light: #9677d3;
$custom-dark: #000000;
JSON
{
  "hex": "#6140bf",
  "rgb": {
    "r": 97,
    "g": 64,
    "b": 191
  },
  "hsl": {
    "h": 255.591,
    "s": 49.804,
    "l": 50
  },
  "oklch": {
    "l": 0.48321,
    "c": 0.18816,
    "h": 289.4
  },
  "luminance": 0.0997
}

Semantic roles & 50–950 ramp

primary
#6140BF
secondary
#BBCA91
accent
#D94EB5
background
#F9F7FD
surface
#F2EDFA
border
#CCC8D3
text
#0E0914
muted
#7E7B83

Preview Lab

Preview with #6140BF

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

Preview Lab → · Contrast checker → · Palette generator →

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