#6240BF#6240BF

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

Color values

HEX#6240BF
RGBrgb(98, 64, 191)
HSLhsl(256, 50%, 50%)
HSVhsv(256, 66%, 75%)
CMYKcmyk(48.7%, 66.5%, 0%, 25.1%)
CIE-LABlab(37.89, 45.36, -61.76)
CIE-LCHlch(37.89, 76.63, 306.30°)
OKLaboklab(48.42% 0.0638 -0.177)
OKLCHoklch(48.42% 0.188 289.8)
XYZxyz(16.2717, 10.0244, 50.3577)
Luminance0.1003 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6240BF #9DBF40
analogous
#405DBF #6240BF #A240BF
triadic
#6240BF #BF6240 #40BF62
tetradic
#6240BF #BF405D #9DBF40 #40BFA2
square
#6240BF #BF405D #9DBF40 #40BFA2
split-complementary
#6240BF #BFA240 #5DBF40
monochromatic
#332163 #4A3191 #6240BF #886ECE #AD9CDE

Accessibility & contrast

On white

6.99
#6240BF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.01
#6240BF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6240BF
6.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6240BF#FFFFFF#000000##FFFFFF
##6240BF1.006.993.016.99
#FFFFFF6.991.0021.001.00
#0000003.0121.001.0021.00
##FFFFFF6.991.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #6240bf;
/* rgb */ color: rgb(98, 64, 191);
/* oklch */ color: oklch(48.4% 0.188 289.8);
Tailwind
colors: {
  custom: {
    50: '#9677d3',
    500: '#6240bf',
    950: '#000000',
  },
}
SCSS
$custom: #6240bf;
$custom-light: #9677d3;
$custom-dark: #000000;
JSON
{
  "hex": "#6240bf",
  "rgb": {
    "r": 98,
    "g": 64,
    "b": 191
  },
  "hsl": {
    "h": 256.063,
    "s": 49.804,
    "l": 50
  },
  "oklch": {
    "l": 0.48416,
    "c": 0.18813,
    "h": 289.8
  },
  "luminance": 0.10025
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #6240BF

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

Preview Lab → · Contrast checker → · Palette generator →

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