#6240CE#6240CE

#6240CE is a mid, highly saturated violet. Relative luminance 0.107; OKLCH L 49.7% C 0.206 H 287.3°. Best body text is #FFFFFF at 6.68:1 contrast (WCAG AA passes).

Color values

HEX#6240CE
RGBrgb(98, 64, 206)
HSLhsl(254, 59%, 53%)
HSVhsv(254, 69%, 81%)
CMYKcmyk(52.4%, 68.9%, 0%, 19.2%)
CIE-LABlab(39.10, 49.66, -68.51)
CIE-LCHlch(39.10, 84.61, 305.94°)
OKLaboklab(49.67% 0.0615 -0.1968)
OKLCHoklch(49.67% 0.206 287.3)
XYZxyz(18.0077, 10.7188, 59.5006)
Luminance0.1072 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6240CE #ACCE40
analogous
#4065CE #6240CE #A940CE
triadic
#6240CE #CE6240 #40CE62
tetradic
#6240CE #CE4065 #ACCE40 #40CEA9
square
#6240CE #CE4065 #ACCE40 #40CEA9
split-complementary
#6240CE #CEA940 #65CE40
monochromatic
#331E75 #482BA6 #6240CE #8A71DA #B2A1E7

Accessibility & contrast

On white

6.68
#6240CE on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.14
#6240CE on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6240CE
6.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6240CE#FFFFFF#000000##FFFFFF
##6240CE1.006.683.146.68
#FFFFFF6.681.0021.001.00
#0000003.1421.001.0021.00
##FFFFFF6.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005FD2
Deuteranopia (green-blind)
#0058CB
Tritanopia (blue-blind)
#386582
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #6240ce;
/* rgb */ color: rgb(98, 64, 206);
/* oklch */ color: oklch(49.7% 0.206 287.3);
Tailwind
colors: {
  custom: {
    50: '#9977de',
    500: '#6240ce',
    950: '#000000',
  },
}
SCSS
$custom: #6240ce;
$custom-light: #9977de;
$custom-dark: #000000;
JSON
{
  "hex": "#6240ce",
  "rgb": {
    "r": 98,
    "g": 64,
    "b": 206
  },
  "hsl": {
    "h": 254.366,
    "s": 59.167,
    "l": 52.941
  },
  "oklch": {
    "l": 0.49666,
    "c": 0.20619,
    "h": 287.3
  },
  "luminance": 0.1072
}

Semantic roles & 50–950 ramp

primary
#6240CE
secondary
#C5D496
accent
#E245BD
background
#FAF7FD
surface
#F3EDFB
border
#CDC8D4
text
#0F0915
muted
#7F7B83

Preview Lab

Preview with #6240CE

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

Preview Lab → · Contrast checker → · Palette generator →

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