#6331AB#6331AB

#6331AB is a dark, vivid violet. Relative luminance 0.078; OKLCH L 44.8% C 0.183 H 297.1°. Best body text is #FFFFFF at 8.21:1 contrast (WCAG AA passes).

Color values

HEX#6331AB
RGBrgb(99, 49, 171)
HSLhsl(265, 55%, 43%)
HSVhsv(265, 71%, 67%)
CMYKcmyk(42.1%, 71.3%, 0%, 32.9%)
CIE-LABlab(33.54, 47.94, -56.99)
CIE-LCHlch(33.54, 74.47, 310.07°)
OKLaboklab(44.83% 0.0834 -0.1629)
OKLCHoklch(44.83% 0.183 297.1)
XYZxyz(13.5927, 7.7893, 39.3075)
Luminance0.0779 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6331AB #79AB31
analogous
#313CAB #6331AB #A031AB
triadic
#6331AB #AB6331 #31AB63
tetradic
#6331AB #AB313C #79AB31 #31ABA0
square
#6331AB #AB313C #79AB31 #31ABA0
split-complementary
#6331AB #ABA031 #3CAB31
monochromatic
#2C164C #47237B #6331AB #814DCC #A37DDA

Accessibility & contrast

On white

8.21
#6331AB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.56
#6331AB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6331AB
8.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6331AB#FFFFFF#000000##FFFFFF
##6331AB1.008.212.568.21
#FFFFFF8.211.0021.001.00
#0000002.5621.001.0021.00
##FFFFFF8.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004FAF
Deuteranopia (green-blind)
#004DA9
Tritanopia (blue-blind)
#514F6B
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #6331ab;
/* rgb */ color: rgb(99, 49, 171);
/* oklch */ color: oklch(44.8% 0.183 297.1);
Tailwind
colors: {
  custom: {
    50: '#966dc5',
    500: '#6331ab',
    950: '#000000',
  },
}
SCSS
$custom: #6331ab;
$custom-light: #966dc5;
$custom-dark: #000000;
JSON
{
  "hex": "#6331ab",
  "rgb": {
    "r": 99,
    "g": 49,
    "b": 171
  },
  "hsl": {
    "h": 264.59,
    "s": 55.455,
    "l": 43.137
  },
  "oklch": {
    "l": 0.44833,
    "c": 0.18301,
    "h": 297.1
  },
  "luminance": 0.0779
}

Semantic roles & 50–950 ramp

primary
#6331AB
secondary
#A3C275
accent
#DF49A1
background
#F9F6FC
surface
#F2ECF8
border
#CCC7D1
text
#0E0713
muted
#7E7A82

Preview Lab

Preview with #6331AB

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

Preview Lab → · Contrast checker → · Palette generator →

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