#6331A5#6331A5

#6331A5 is a dark, vivid violet. Relative luminance 0.076; OKLCH L 44.3% C 0.176 H 298.7°. Best body text is #FFFFFF at 8.36:1 contrast (WCAG AA passes).

Color values

HEX#6331A5
RGBrgb(99, 49, 165)
HSLhsl(266, 54%, 42%)
HSVhsv(266, 70%, 65%)
CMYKcmyk(40%, 70.3%, 0%, 35.3%)
CIE-LABlab(33.06, 46.37, -54.17)
CIE-LCHlch(33.06, 71.30, 310.56°)
OKLaboklab(44.34% 0.0845 -0.1546)
OKLCHoklch(44.34% 0.176 298.7)
XYZxyz(13.0337, 7.5657, 36.3637)
Luminance0.0757 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6331A5 #73A531
analogous
#3139A5 #6331A5 #9D31A5
triadic
#6331A5 #A56331 #31A563
tetradic
#6331A5 #A53139 #73A531 #31A59D
square
#6331A5 #A53139 #73A531 #31A59D
split-complementary
#6331A5 #A59D31 #39A531
monochromatic
#2A1547 #472376 #6331A5 #814AC9 #A279D7

Accessibility & contrast

On white

8.36
#6331A5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.51
#6331A5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6331A5
8.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6331A5#FFFFFF#000000##FFFFFF
##6331A51.008.362.518.36
#FFFFFF8.361.0021.001.00
#0000002.5121.001.0021.00
##FFFFFF8.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004EA8
Deuteranopia (green-blind)
#004DA3
Tritanopia (blue-blind)
#534D67
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #6331a5;
/* rgb */ color: rgb(99, 49, 165);
/* oklch */ color: oklch(44.3% 0.176 298.7);
Tailwind
colors: {
  custom: {
    50: '#956dc1',
    500: '#6331a5',
    950: '#000000',
  },
}
SCSS
$custom: #6331a5;
$custom-light: #956dc1;
$custom-dark: #000000;
JSON
{
  "hex": "#6331a5",
  "rgb": {
    "r": 99,
    "g": 49,
    "b": 165
  },
  "hsl": {
    "h": 265.862,
    "s": 54.206,
    "l": 41.961
  },
  "oklch": {
    "l": 0.44343,
    "c": 0.17619,
    "h": 298.7
  },
  "luminance": 0.07566
}

Semantic roles & 50–950 ramp

primary
#6331A5
secondary
#9EC072
accent
#DE4A9E
background
#F9F6FB
surface
#F2ECF7
border
#CCC7D0
text
#0E0712
muted
#7E7A81

Preview Lab

Preview with #6331A5

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

Preview Lab → · Contrast checker → · Palette generator →

#6331A5 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva