#6240DC#6240DC

#6240DC is a mid, highly saturated violet. Relative luminance 0.114; OKLCH L 50.9% C 0.223 H 285.3°. Best body text is #FFFFFF at 6.39:1 contrast (WCAG AA passes).

Color values

HEX#6240DC
RGBrgb(98, 64, 220)
HSLhsl(253, 69%, 56%)
HSVhsv(253, 71%, 86%)
CMYKcmyk(55.5%, 70.9%, 0%, 13.7%)
CIE-LABlab(40.29, 53.67, -74.61)
CIE-LCHlch(40.29, 91.91, 305.73°)
OKLaboklab(50.88% 0.0589 -0.2147)
OKLCHoklch(50.88% 0.223 285.3)
XYZxyz(19.7848, 11.4296, 68.8599)
Luminance0.1143 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6240DC #BADC40
analogous
#406CDC #6240DC #B040DC
triadic
#6240DC #DC6240 #40DC62
tetradic
#6240DC #DC406C #BADC40 #40DCB0
square
#6240DC #DC406C #BADC40 #40DCB0
split-complementary
#6240DC #DCB040 #6CDC40
monochromatic
#311989 #4423BC #6240DC #8D74E5 #B7A7EF

Accessibility & contrast

On white

6.39
#6240DC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.29
#6240DC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6240DC
6.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6240DC#FFFFFF#000000##FFFFFF
##6240DC1.006.393.296.39
#FFFFFF6.391.0021.001.00
#0000003.2921.001.0021.00
##FFFFFF6.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0063E1
Deuteranopia (green-blind)
#005AD9
Tritanopia (blue-blind)
#286A8A
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #6240dc;
/* rgb */ color: rgb(98, 64, 220);
/* oklch */ color: oklch(50.9% 0.223 285.3);
Tailwind
colors: {
  custom: {
    50: '#9b78e8',
    500: '#6240dc',
    950: '#000000',
  },
}
SCSS
$custom: #6240dc;
$custom-light: #9b78e8;
$custom-dark: #000000;
JSON
{
  "hex": "#6240dc",
  "rgb": {
    "r": 98,
    "g": 64,
    "b": 220
  },
  "hsl": {
    "h": 253.077,
    "s": 69.027,
    "l": 55.686
  },
  "oklch": {
    "l": 0.50882,
    "c": 0.22263,
    "h": 285.3
  },
  "luminance": 0.11431
}

Semantic roles & 50–950 ramp

primary
#6240DC
secondary
#CEDC9B
accent
#EC3CC6
background
#FAF7FE
surface
#F4EDFD
border
#CEC8D5
text
#0F0916
muted
#7F7B84

Preview Lab

Preview with #6240DC

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

Preview Lab → · Contrast checker → · Palette generator →

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