#6040AB#6040AB

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

Color values

HEX#6040AB
RGBrgb(96, 64, 171)
HSLhsl(258, 46%, 46%)
HSVhsv(258, 63%, 67%)
CMYKcmyk(43.9%, 62.6%, 0%, 32.9%)
CIE-LABlab(36.16, 39.25, -52.75)
CIE-LCHlch(36.16, 65.75, 306.65°)
OKLaboklab(46.64% 0.0631 -0.1506)
OKLCHoklch(46.64% 0.163 292.7)
XYZxyz(14.0059, 9.0935, 39.5374)
Luminance0.0909 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6040AB #8BAB40
analogous
#4055AB #6040AB #9540AB
triadic
#6040AB #AB6040 #40AB60
tetradic
#6040AB #AB4055 #8BAB40 #40AB95
square
#6040AB #AB4055 #8BAB40 #40AB95
split-complementary
#6040AB #AB9540 #55AB40
monochromatic
#2E1F52 #472F7E #6040AB #8163C5 #A590D5

Accessibility & contrast

On white

7.45
#6040AB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.82
#6040AB on #000000
AA ✗AA large ✗AAA ✗

Best text color

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

Contrast matrix

fg \ bg##6040AB#FFFFFF#000000##FFFFFF
##6040AB1.007.452.827.45
#FFFFFF7.451.0021.001.00
#0000002.8221.001.0021.00
##FFFFFF7.451.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #6040ab;
/* rgb */ color: rgb(96, 64, 171);
/* oklch */ color: oklch(46.6% 0.163 292.7);
Tailwind
colors: {
  custom: {
    50: '#9376c5',
    500: '#6040ab',
    950: '#000000',
  },
}
SCSS
$custom: #6040ab;
$custom-light: #9376c5;
$custom-dark: #000000;
JSON
{
  "hex": "#6040ab",
  "rgb": {
    "r": 96,
    "g": 64,
    "b": 171
  },
  "hsl": {
    "h": 257.944,
    "s": 45.532,
    "l": 46.078
  },
  "oklch": {
    "l": 0.46644,
    "c": 0.16324,
    "h": 292.7
  },
  "luminance": 0.09094
}

Semantic roles & 50–950 ramp

primary
#6040AB
secondary
#AFC186
accent
#D553AE
background
#F9F7FC
surface
#F2EDF8
border
#CCC8D1
text
#0E0913
muted
#7E7B82

Preview Lab

Preview with #6040AB

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

Preview Lab → · Contrast checker → · Palette generator →

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