#6240AE#6240AE

#6240AE is a mid, vivid violet. Relative luminance 0.093; OKLCH L 47.1% C 0.167 H 293.1°. Best body text is #FFFFFF at 7.33:1 contrast (WCAG AA passes).

Color values

HEX#6240AE
RGBrgb(98, 64, 174)
HSLhsl(259, 46%, 47%)
HSVhsv(259, 63%, 68%)
CMYKcmyk(43.7%, 63.2%, 0%, 31.8%)
CIE-LABlab(36.59, 40.53, -53.83)
CIE-LCHlch(36.59, 67.38, 306.98°)
OKLaboklab(47.07% 0.0656 -0.1537)
OKLCHoklch(47.07% 0.167 293.1)
XYZxyz(14.5083, 9.3190, 41.0705)
Luminance0.0932 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6240AE #8CAE40
analogous
#4055AE #6240AE #9940AE
triadic
#6240AE #AE6240 #40AE62
tetradic
#6240AE #AE4055 #8CAE40 #40AE99
square
#6240AE #AE4055 #8CAE40 #40AE99
split-complementary
#6240AE #AE9940 #55AE40
monochromatic
#301F55 #493081 #6240AE #8365C6 #A792D7

Accessibility & contrast

On white

7.33
#6240AE on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.86
#6240AE on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6240AE
7.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6240AE#FFFFFF#000000##FFFFFF
##6240AE1.007.332.867.33
#FFFFFF7.331.0021.001.00
#0000002.8621.001.0021.00
##FFFFFF7.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0057B1
Deuteranopia (green-blind)
#0054AC
Tritanopia (blue-blind)
#4D5971
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #6240ae;
/* rgb */ color: rgb(98, 64, 174);
/* oklch */ color: oklch(47.1% 0.167 293.1);
Tailwind
colors: {
  custom: {
    50: '#9477c7',
    500: '#6240ae',
    950: '#000000',
  },
}
SCSS
$custom: #6240ae;
$custom-light: #9477c7;
$custom-dark: #000000;
JSON
{
  "hex": "#6240ae",
  "rgb": {
    "r": 98,
    "g": 64,
    "b": 174
  },
  "hsl": {
    "h": 258.545,
    "s": 46.218,
    "l": 46.667
  },
  "oklch": {
    "l": 0.47073,
    "c": 0.1671,
    "h": 293.1
  },
  "luminance": 0.09319
}

Semantic roles & 50–950 ramp

primary
#6240AE
secondary
#B0C288
accent
#D652AD
background
#F9F7FC
surface
#F2EDF8
border
#CCC8D1
text
#0E0913
muted
#7E7B82

Preview Lab

Preview with #6240AE

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

Preview Lab → · Contrast checker → · Palette generator →

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