#6040AA#6040AA

#6040AA is a mid, vivid violet. Relative luminance 0.091; OKLCH L 46.6% C 0.162 H 292.9°. Best body text is #FFFFFF at 7.47:1 contrast (WCAG AA passes).

Color values

HEX#6040AA
RGBrgb(96, 64, 170)
HSLhsl(258, 45%, 46%)
HSVhsv(258, 62%, 67%)
CMYKcmyk(43.5%, 62.4%, 0%, 33.3%)
CIE-LABlab(36.09, 38.97, -52.27)
CIE-LCHlch(36.09, 65.20, 306.71°)
OKLaboklab(46.57% 0.0631 -0.1491)
OKLCHoklch(46.57% 0.162 292.9)
XYZxyz(13.9110, 9.0555, 39.0374)
Luminance0.0906 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6040AA #8AAA40
analogous
#4055AA #6040AA #9540AA
triadic
#6040AA #AA6040 #40AA60
tetradic
#6040AA #AA4055 #8AAA40 #40AA95
square
#6040AA #AA4055 #8AAA40 #40AA95
split-complementary
#6040AA #AA9540 #55AA40
monochromatic
#2E1F51 #472F7E #6040AA #8063C4 #A48FD5

Accessibility & contrast

On white

7.47
#6040AA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.81
#6040AA on #000000
AA ✗AA large ✗AAA ✗

Best text color

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

Contrast matrix

fg \ bg##6040AA#FFFFFF#000000##FFFFFF
##6040AA1.007.472.817.47
#FFFFFF7.471.0021.001.00
#0000002.8121.001.0021.00
##FFFFFF7.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0056AD
Deuteranopia (green-blind)
#0053A8
Tritanopia (blue-blind)
#4B586F
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #6040aa;
/* rgb */ color: rgb(96, 64, 170);
/* oklch */ color: oklch(46.6% 0.162 292.9);
Tailwind
colors: {
  custom: {
    50: '#9376c4',
    500: '#6040aa',
    950: '#000000',
  },
}
SCSS
$custom: #6040aa;
$custom-light: #9376c4;
$custom-dark: #000000;
JSON
{
  "hex": "#6040aa",
  "rgb": {
    "r": 96,
    "g": 64,
    "b": 170
  },
  "hsl": {
    "h": 258.113,
    "s": 45.299,
    "l": 45.882
  },
  "oklch": {
    "l": 0.46568,
    "c": 0.16196,
    "h": 292.9
  },
  "luminance": 0.09056
}

Semantic roles & 50–950 ramp

primary
#6040AA
secondary
#AEC086
accent
#D553AE
background
#F9F7FC
surface
#F2EDF8
border
#CCC8D1
text
#0D0813
muted
#7E7B82

Preview Lab

Preview with #6040AA

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

Preview Lab → · Contrast checker → · Palette generator →

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