#6240C8#6240C8

#6240C8 is a mid, vivid violet. Relative luminance 0.104; OKLCH L 49.2% C 0.199 H 288.3°. Best body text is #FFFFFF at 6.80:1 contrast (WCAG AA passes).

Color values

HEX#6240C8
RGBrgb(98, 64, 200)
HSLhsl(255, 55%, 52%)
HSVhsv(255, 68%, 78%)
CMYKcmyk(51%, 68%, 0%, 21.6%)
CIE-LABlab(38.61, 47.94, -65.84)
CIE-LCHlch(38.61, 81.44, 306.06°)
OKLaboklab(49.16% 0.0625 -0.189)
OKLCHoklch(49.16% 0.199 288.3)
XYZxyz(17.2927, 10.4328, 55.7349)
Luminance0.1043 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6240C8 #A6C840
analogous
#4062C8 #6240C8 #A640C8
triadic
#6240C8 #C86240 #40C862
tetradic
#6240C8 #C84062 #A6C840 #40C8A6
square
#6240C8 #C84062 #A6C840 #40C8A6
split-complementary
#6240C8 #C8A640 #62C840
monochromatic
#33206E #492D9D #6240C8 #8970D6 #B09FE3

Accessibility & contrast

On white

6.80
#6240C8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.09
#6240C8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6240C8
6.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6240C8#FFFFFF#000000##FFFFFF
##6240C81.006.803.096.80
#FFFFFF6.801.0021.001.00
#0000003.0921.001.0021.00
##FFFFFF6.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005ECC
Deuteranopia (green-blind)
#0057C5
Tritanopia (blue-blind)
#3D627F
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #6240c8;
/* rgb */ color: rgb(98, 64, 200);
/* oklch */ color: oklch(49.2% 0.199 288.3);
Tailwind
colors: {
  custom: {
    50: '#9877da',
    500: '#6240c8',
    950: '#000000',
  },
}
SCSS
$custom: #6240c8;
$custom-light: #9877da;
$custom-dark: #000000;
JSON
{
  "hex": "#6240c8",
  "rgb": {
    "r": 98,
    "g": 64,
    "b": 200
  },
  "hsl": {
    "h": 255,
    "s": 55.285,
    "l": 51.765
  },
  "oklch": {
    "l": 0.49159,
    "c": 0.19902,
    "h": 288.3
  },
  "luminance": 0.10434
}

Semantic roles & 50–950 ramp

primary
#6240C8
secondary
#C1D094
accent
#DF49B9
background
#F9F7FD
surface
#F2EDFB
border
#CCC8D4
text
#0F0915
muted
#7E7B83

Preview Lab

Preview with #6240C8

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

Preview Lab → · Contrast checker → · Palette generator →

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