#6040AE#6040AE

#6040AE is a mid, vivid violet. Relative luminance 0.092; OKLCH L 46.9% C 0.167 H 292.1°. Best body text is #FFFFFF at 7.39:1 contrast (WCAG AA passes).

Color values

HEX#6040AE
RGBrgb(96, 64, 174)
HSLhsl(257, 46%, 47%)
HSVhsv(257, 63%, 68%)
CMYKcmyk(44.8%, 63.2%, 0%, 31.8%)
CIE-LABlab(36.38, 40.11, -54.18)
CIE-LCHlch(36.38, 67.41, 306.51°)
OKLaboklab(46.87% 0.0628 -0.1548)
OKLCHoklch(46.87% 0.167 292.1)
XYZxyz(14.2951, 9.2091, 41.0605)
Luminance0.0921 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6040AE #8EAE40
analogous
#4057AE #6040AE #9740AE
triadic
#6040AE #AE6040 #40AE60
tetradic
#6040AE #AE4057 #8EAE40 #40AE97
square
#6040AE #AE4057 #8EAE40 #40AE97
split-complementary
#6040AE #AE9740 #57AE40
monochromatic
#2F1F55 #473081 #6040AE #8165C6 #A692D7

Accessibility & contrast

On white

7.39
#6040AE on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.84
#6040AE on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6040AE
7.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6040AE#FFFFFF#000000##FFFFFF
##6040AE1.007.392.847.39
#FFFFFF7.391.0021.001.00
#0000002.8421.001.0021.00
##FFFFFF7.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0057B1
Deuteranopia (green-blind)
#0053AC
Tritanopia (blue-blind)
#495971
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #6040ae;
/* rgb */ color: rgb(96, 64, 174);
/* oklch */ color: oklch(46.9% 0.167 292.1);
Tailwind
colors: {
  custom: {
    50: '#9376c7',
    500: '#6040ae',
    950: '#000000',
  },
}
SCSS
$custom: #6040ae;
$custom-light: #9376c7;
$custom-dark: #000000;
JSON
{
  "hex": "#6040ae",
  "rgb": {
    "r": 96,
    "g": 64,
    "b": 174
  },
  "hsl": {
    "h": 257.455,
    "s": 46.218,
    "l": 46.667
  },
  "oklch": {
    "l": 0.46874,
    "c": 0.16704,
    "h": 292.1
  },
  "luminance": 0.0921
}

Semantic roles & 50–950 ramp

primary
#6040AE
secondary
#B1C288
accent
#D652AF
background
#F9F7FC
surface
#F2EDF8
border
#CCC8D1
text
#0E0913
muted
#7E7B82

Preview Lab

Preview with #6040AE

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

Preview Lab → · Contrast checker → · Palette generator →

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