#6240AC#6240AC

#6240AC is a mid, vivid violet. Relative luminance 0.092; OKLCH L 46.9% C 0.165 H 293.6°. Best body text is #FFFFFF at 7.37:1 contrast (WCAG AA passes).

Color values

HEX#6240AC
RGBrgb(98, 64, 172)
HSLhsl(259, 46%, 46%)
HSVhsv(259, 63%, 67%)
CMYKcmyk(43%, 62.8%, 0%, 32.5%)
CIE-LABlab(36.45, 39.97, -52.88)
CIE-LCHlch(36.45, 66.28, 307.08°)
OKLaboklab(46.92% 0.0658 -0.1509)
OKLCHoklch(46.92% 0.165 293.6)
XYZxyz(14.3148, 9.2416, 40.0513)
Luminance0.0924 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6240AC #8AAC40
analogous
#4054AC #6240AC #9840AC
triadic
#6240AC #AC6240 #40AC62
tetradic
#6240AC #AC4054 #8AAC40 #40AC98
square
#6240AC #AC4054 #8AAC40 #40AC98
split-complementary
#6240AC #AC9840 #54AC40
monochromatic
#2F1F53 #492F7F #6240AC #8364C5 #A691D6

Accessibility & contrast

On white

7.37
#6240AC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.85
#6240AC on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6240AC
7.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6240AC#FFFFFF#000000##FFFFFF
##6240AC1.007.372.857.37
#FFFFFF7.371.0021.001.00
#0000002.8521.001.0021.00
##FFFFFF7.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0057AF
Deuteranopia (green-blind)
#0054AA
Tritanopia (blue-blind)
#4E5970
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #6240ac;
/* rgb */ color: rgb(98, 64, 172);
/* oklch */ color: oklch(46.9% 0.165 293.6);
Tailwind
colors: {
  custom: {
    50: '#9476c5',
    500: '#6240ac',
    950: '#000000',
  },
}
SCSS
$custom: #6240ac;
$custom-light: #9476c5;
$custom-dark: #000000;
JSON
{
  "hex": "#6240ac",
  "rgb": {
    "r": 98,
    "g": 64,
    "b": 172
  },
  "hsl": {
    "h": 258.889,
    "s": 45.763,
    "l": 46.275
  },
  "oklch": {
    "l": 0.46921,
    "c": 0.16459,
    "h": 293.6
  },
  "luminance": 0.09242
}

Semantic roles & 50–950 ramp

primary
#6240AC
secondary
#AFC187
accent
#D552AC
background
#F9F7FC
surface
#F2EDF8
border
#CCC8D1
text
#0E0913
muted
#7E7B82

Preview Lab

Preview with #6240AC

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

Preview Lab → · Contrast checker → · Palette generator →

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