#6240BE#6240BE

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

Color values

HEX#6240BE
RGBrgb(98, 64, 190)
HSLhsl(256, 50%, 50%)
HSVhsv(256, 66%, 75%)
CMYKcmyk(48.4%, 66.3%, 0%, 25.5%)
CIE-LABlab(37.81, 45.08, -61.30)
CIE-LCHlch(37.81, 76.09, 306.33°)
OKLaboklab(48.34% 0.0639 -0.1756)
OKLCHoklch(48.34% 0.187 290)
XYZxyz(16.1620, 9.9805, 49.7801)
Luminance0.0998 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6240BE #9CBE40
analogous
#405DBE #6240BE #A140BE
triadic
#6240BE #BE6240 #40BE62
tetradic
#6240BE #BE405D #9CBE40 #40BEA1
square
#6240BE #BE405D #9CBE40 #40BEA1
split-complementary
#6240BE #BEA140 #5DBE40
monochromatic
#332162 #4A3190 #6240BE #876DCE #AD9BDD

Accessibility & contrast

On white

7.01
#6240BE on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

3.00
#6240BE on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6240BE
7.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6240BE#FFFFFF#000000##FFFFFF
##6240BE1.007.013.007.01
#FFFFFF7.011.0021.001.00
#0000003.0021.001.0021.00
##FFFFFF7.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005BC2
Deuteranopia (green-blind)
#0056BB
Tritanopia (blue-blind)
#445F79
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #6240be;
/* rgb */ color: rgb(98, 64, 190);
/* oklch */ color: oklch(48.3% 0.187 290.0);
Tailwind
colors: {
  custom: {
    50: '#9677d3',
    500: '#6240be',
    950: '#000000',
  },
}
SCSS
$custom: #6240be;
$custom-light: #9677d3;
$custom-dark: #000000;
JSON
{
  "hex": "#6240be",
  "rgb": {
    "r": 98,
    "g": 64,
    "b": 190
  },
  "hsl": {
    "h": 256.19,
    "s": 49.606,
    "l": 49.804
  },
  "oklch": {
    "l": 0.48335,
    "c": 0.18692,
    "h": 290
  },
  "luminance": 0.09981
}

Semantic roles & 50–950 ramp

primary
#6240BE
secondary
#BAC990
accent
#D94FB4
background
#F9F7FD
surface
#F2EDFA
border
#CCC8D3
text
#0E0914
muted
#7E7B83

Preview Lab

Preview with #6240BE

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

Preview Lab → · Contrast checker → · Palette generator →

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