#6240E7#6240E7

#6240E7 is a mid, highly saturated violet. Relative luminance 0.120; OKLCH L 51.9% C 0.235 H 283.9°. Best body text is #FFFFFF at 6.16:1 contrast (WCAG AA passes).

Color values

HEX#6240E7
RGBrgb(98, 64, 231)
HSLhsl(252, 78%, 58%)
HSVhsv(252, 72%, 91%)
CMYKcmyk(57.6%, 72.3%, 0%, 9.4%)
CIE-LABlab(41.27, 56.82, -79.29)
CIE-LCHlch(41.27, 97.54, 305.63°)
OKLaboklab(51.87% 0.0566 -0.2284)
OKLCHoklch(51.87% 0.235 283.9)
XYZxyz(21.2898, 12.0316, 76.7863)
Luminance0.1203 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6240E7 #C5E740
analogous
#4071E7 #6240E7 #B640E7
triadic
#6240E7 #E76240 #40E762
tetradic
#6240E7 #E74071 #C5E740 #40E7B6
square
#6240E7 #E74071 #C5E740 #40E7B6
split-complementary
#6240E7 #E7B640 #71E740
monochromatic
#2F1399 #3F1AD0 #6240E7 #8F76EE #BBADF5

Accessibility & contrast

On white

6.16
#6240E7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.41
#6240E7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6240E7
6.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6240E7#FFFFFF#000000##FFFFFF
##6240E71.006.163.416.16
#FFFFFF6.161.0021.001.00
#0000003.4121.001.0021.00
##FFFFFF6.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0066EC
Deuteranopia (green-blind)
#005CE4
Tritanopia (blue-blind)
#136E90
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #6240e7;
/* rgb */ color: rgb(98, 64, 231);
/* oklch */ color: oklch(51.9% 0.235 283.9);
Tailwind
colors: {
  custom: {
    50: '#9c78f0',
    500: '#6240e7',
    950: '#000000',
  },
}
SCSS
$custom: #6240e7;
$custom-light: #9c78f0;
$custom-dark: #000000;
JSON
{
  "hex": "#6240e7",
  "rgb": {
    "r": 98,
    "g": 64,
    "b": 231
  },
  "hsl": {
    "h": 252.216,
    "s": 77.674,
    "l": 57.843
  },
  "oklch": {
    "l": 0.51867,
    "c": 0.23529,
    "h": 283.9
  },
  "luminance": 0.12033
}

Semantic roles & 50–950 ramp

primary
#6240E7
secondary
#D5E3A0
accent
#F434CD
background
#FAF7FE
surface
#F4EDFD
border
#CEC8D5
text
#100917
muted
#7F7B85

Preview Lab

Preview with #6240E7

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

Preview Lab → · Contrast checker → · Palette generator →

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