#6031BA#6031BA

#6031BA is a mid, vivid violet. Relative luminance 0.082; OKLCH L 45.8% C 0.200 H 292.3°. Best body text is #FFFFFF at 7.94:1 contrast (WCAG AA passes).

Color values

HEX#6031BA
RGBrgb(96, 49, 186)
HSLhsl(261, 58%, 46%)
HSVhsv(261, 74%, 73%)
CMYKcmyk(48.4%, 73.7%, 0%, 27.1%)
CIE-LABlab(34.45, 51.42, -64.43)
CIE-LCHlch(34.45, 82.43, 308.59°)
OKLaboklab(45.79% 0.0758 -0.1848)
OKLCHoklch(45.79% 0.2 292.3)
XYZxyz(14.7826, 8.2281, 47.2541)
Luminance0.0823 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6031BA #8BBA31
analogous
#3146BA #6031BA #A431BA
triadic
#6031BA #BA6031 #31BA60
tetradic
#6031BA #BA3146 #8BBA31 #31BAA4
square
#6031BA #BA3146 #8BBA31 #31BAA4
split-complementary
#6031BA #BAA431 #46BA31
monochromatic
#2E1759 #47248A #6031BA #8156D2 #A586DF

Accessibility & contrast

On white

7.94
#6031BA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.65
#6031BA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6031BA
7.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6031BA#FFFFFF#000000##FFFFFF
##6031BA1.007.942.657.94
#FFFFFF7.941.0021.001.00
#0000002.6521.001.0021.00
##FFFFFF7.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0053BE
Deuteranopia (green-blind)
#004EB7
Tritanopia (blue-blind)
#435573
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #6031ba;
/* rgb */ color: rgb(96, 49, 186);
/* oklch */ color: oklch(45.8% 0.200 292.3);
Tailwind
colors: {
  custom: {
    50: '#966ed0',
    500: '#6031ba',
    950: '#000000',
  },
}
SCSS
$custom: #6031ba;
$custom-light: #966ed0;
$custom-dark: #000000;
JSON
{
  "hex": "#6031ba",
  "rgb": {
    "r": 96,
    "g": 49,
    "b": 186
  },
  "hsl": {
    "h": 260.584,
    "s": 58.298,
    "l": 46.078
  },
  "oklch": {
    "l": 0.45791,
    "c": 0.19979,
    "h": 292.3
  },
  "luminance": 0.08229
}

Semantic roles & 50–950 ramp

primary
#6031BA
secondary
#AFC97E
accent
#E246AC
background
#F9F6FC
surface
#F2ECF9
border
#CCC7D2
text
#0E0714
muted
#7E7A82

Preview Lab

Preview with #6031BA

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

Preview Lab → · Contrast checker → · Palette generator →

#6031BA Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva