#6240D3#6240D3

#6240D3 is a mid, highly saturated violet. Relative luminance 0.110; OKLCH L 50.1% C 0.212 H 286.6°. Best body text is #FFFFFF at 6.58:1 contrast (WCAG AA passes).

Color values

HEX#6240D3
RGBrgb(98, 64, 211)
HSLhsl(254, 63%, 54%)
HSVhsv(254, 70%, 83%)
CMYKcmyk(53.6%, 69.7%, 0%, 17.3%)
CIE-LABlab(39.52, 51.10, -70.71)
CIE-LCHlch(39.52, 87.24, 305.85°)
OKLaboklab(50.1% 0.0606 -0.2033)
OKLCHoklch(50.1% 0.212 286.6)
XYZxyz(18.6248, 10.9656, 62.7506)
Luminance0.1097 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6240D3 #B1D340
analogous
#4068D3 #6240D3 #AC40D3
triadic
#6240D3 #D36240 #40D362
tetradic
#6240D3 #D34068 #B1D340 #40D3AC
square
#6240D3 #D34068 #B1D340 #40D3AC
split-complementary
#6240D3 #D3AC40 #68D340
monochromatic
#331D7C #4728AE #6240D3 #8B72DE #B4A3EA

Accessibility & contrast

On white

6.58
#6240D3 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.19
#6240D3 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6240D3
6.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6240D3#FFFFFF#000000##FFFFFF
##6240D31.006.583.196.58
#FFFFFF6.581.0021.001.00
#0000003.1921.001.0021.00
##FFFFFF6.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0061D7
Deuteranopia (green-blind)
#0059D0
Tritanopia (blue-blind)
#336785
Achromatopsia (no color)
#5D5D5D

Design tokens & code

CSS
--color: #6240d3;
/* rgb */ color: rgb(98, 64, 211);
/* oklch */ color: oklch(50.1% 0.212 286.6);
Tailwind
colors: {
  custom: {
    50: '#9978e2',
    500: '#6240d3',
    950: '#000000',
  },
}
SCSS
$custom: #6240d3;
$custom-light: #9978e2;
$custom-dark: #000000;
JSON
{
  "hex": "#6240d3",
  "rgb": {
    "r": 98,
    "g": 64,
    "b": 211
  },
  "hsl": {
    "h": 253.878,
    "s": 62.553,
    "l": 53.922
  },
  "oklch": {
    "l": 0.50096,
    "c": 0.2121,
    "h": 286.6
  },
  "luminance": 0.10967
}

Semantic roles & 50–950 ramp

primary
#6240D3
secondary
#C8D798
accent
#E642C0
background
#FAF7FE
surface
#F3EDFC
border
#CDC8D5
text
#0F0915
muted
#7F7B84

Preview Lab

Preview with #6240D3

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

Preview Lab → · Contrast checker → · Palette generator →

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