#6240D2#6240D2

#6240D2 is a mid, highly saturated violet. Relative luminance 0.109; OKLCH L 50.0% C 0.211 H 286.7°. Best body text is #FFFFFF at 6.60:1 contrast (WCAG AA passes).

Color values

HEX#6240D2
RGBrgb(98, 64, 210)
HSLhsl(254, 62%, 54%)
HSVhsv(254, 70%, 82%)
CMYKcmyk(53.3%, 69.5%, 0%, 17.6%)
CIE-LABlab(39.44, 50.81, -70.27)
CIE-LCHlch(39.44, 86.71, 305.87°)
OKLaboklab(50.01% 0.0608 -0.202)
OKLCHoklch(50.01% 0.211 286.7)
XYZxyz(18.4998, 10.9156, 62.0924)
Luminance0.1092 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6240D2 #B0D240
analogous
#4067D2 #6240D2 #AB40D2
triadic
#6240D2 #D26240 #40D262
tetradic
#6240D2 #D24067 #B0D240 #40D2AB
square
#6240D2 #D24067 #B0D240 #40D2AB
split-complementary
#6240D2 #D2AB40 #67D240
monochromatic
#331D7B #4729AC #6240D2 #8B72DE #B3A3E9

Accessibility & contrast

On white

6.60
#6240D2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.18
#6240D2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6240D2
6.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6240D2#FFFFFF#000000##FFFFFF
##6240D21.006.603.186.60
#FFFFFF6.601.0021.001.00
#0000003.1821.001.0021.00
##FFFFFF6.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0060D6
Deuteranopia (green-blind)
#0059CF
Tritanopia (blue-blind)
#346684
Achromatopsia (no color)
#5D5D5D

Design tokens & code

CSS
--color: #6240d2;
/* rgb */ color: rgb(98, 64, 210);
/* oklch */ color: oklch(50.0% 0.211 286.7);
Tailwind
colors: {
  custom: {
    50: '#9978e1',
    500: '#6240d2',
    950: '#000000',
  },
}
SCSS
$custom: #6240d2;
$custom-light: #9978e1;
$custom-dark: #000000;
JSON
{
  "hex": "#6240d2",
  "rgb": {
    "r": 98,
    "g": 64,
    "b": 210
  },
  "hsl": {
    "h": 253.973,
    "s": 61.864,
    "l": 53.725
  },
  "oklch": {
    "l": 0.50009,
    "c": 0.21092,
    "h": 286.7
  },
  "luminance": 0.10917
}

Semantic roles & 50–950 ramp

primary
#6240D2
secondary
#C8D698
accent
#E543BF
background
#FAF7FD
surface
#F3EDFB
border
#CDC8D4
text
#0F0915
muted
#7F7B83

Preview Lab

Preview with #6240D2

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

Preview Lab → · Contrast checker → · Palette generator →

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