#6240BC#6240BC

#6240BC is a mid, vivid violet. Relative luminance 0.099; OKLCH L 48.2% C 0.184 H 290.4°. Best body text is #FFFFFF at 7.05:1 contrast (WCAG AA passes).

Color values

HEX#6240BC
RGBrgb(98, 64, 188)
HSLhsl(256, 49%, 49%)
HSVhsv(256, 66%, 74%)
CMYKcmyk(47.9%, 66%, 0%, 26.3%)
CIE-LABlab(37.65, 44.51, -60.38)
CIE-LCHlch(37.65, 75.01, 306.39°)
OKLaboklab(48.17% 0.0642 -0.1729)
OKLCHoklch(48.17% 0.184 290.4)
XYZxyz(15.9449, 9.8937, 48.6367)
Luminance0.0989 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6240BC #9ABC40
analogous
#405CBC #6240BC #A040BC
triadic
#6240BC #BC6240 #40BC62
tetradic
#6240BC #BC405C #9ABC40 #40BCA0
square
#6240BC #BC405C #9ABC40 #40BCA0
split-complementary
#6240BC #BCA040 #5CBC40
monochromatic
#322161 #4A308E #6240BC #876CCD #AC9ADD

Accessibility & contrast

On white

7.05
#6240BC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.98
#6240BC on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6240BC
7.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6240BC#FFFFFF#000000##FFFFFF
##6240BC1.007.052.987.05
#FFFFFF7.051.0021.001.00
#0000002.9821.001.0021.00
##FFFFFF7.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005BC0
Deuteranopia (green-blind)
#0056B9
Tritanopia (blue-blind)
#455E78
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #6240bc;
/* rgb */ color: rgb(98, 64, 188);
/* oklch */ color: oklch(48.2% 0.184 290.4);
Tailwind
colors: {
  custom: {
    50: '#9677d1',
    500: '#6240bc',
    950: '#000000',
  },
}
SCSS
$custom: #6240bc;
$custom-light: #9677d1;
$custom-dark: #000000;
JSON
{
  "hex": "#6240bc",
  "rgb": {
    "r": 98,
    "g": 64,
    "b": 188
  },
  "hsl": {
    "h": 256.452,
    "s": 49.206,
    "l": 49.412
  },
  "oklch": {
    "l": 0.48173,
    "c": 0.18447,
    "h": 290.4
  },
  "luminance": 0.09894
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #6240BC

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

Preview Lab → · Contrast checker → · Palette generator →

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