#6331AA#6331AA

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

Color values

HEX#6331AA
RGBrgb(99, 49, 170)
HSLhsl(265, 55%, 43%)
HSVhsv(265, 71%, 67%)
CMYKcmyk(41.8%, 71.2%, 0%, 33.3%)
CIE-LABlab(33.46, 47.67, -56.53)
CIE-LCHlch(33.46, 73.95, 310.14°)
OKLaboklab(44.75% 0.0836 -0.1615)
OKLCHoklch(44.75% 0.182 297.4)
XYZxyz(13.4977, 7.7513, 38.8074)
Luminance0.0775 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6331AA #78AA31
analogous
#313CAA #6331AA #9F31AA
triadic
#6331AA #AA6331 #31AA63
tetradic
#6331AA #AA313C #78AA31 #31AA9F
square
#6331AA #AA313C #78AA31 #31AA9F
split-complementary
#6331AA #AA9F31 #3CAA31
monochromatic
#2C164B #47237A #6331AA #814DCC #A37CD9

Accessibility & contrast

On white

8.23
#6331AA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.55
#6331AA on #000000
AA ✗AA large ✗AAA ✗

Best text color

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

Contrast matrix

fg \ bg##6331AA#FFFFFF#000000##FFFFFF
##6331AA1.008.232.558.23
#FFFFFF8.231.0021.001.00
#0000002.5521.001.0021.00
##FFFFFF8.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004FAE
Deuteranopia (green-blind)
#004DA8
Tritanopia (blue-blind)
#514F6A
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #6331aa;
/* rgb */ color: rgb(99, 49, 170);
/* oklch */ color: oklch(44.8% 0.182 297.4);
Tailwind
colors: {
  custom: {
    50: '#966dc4',
    500: '#6331aa',
    950: '#000000',
  },
}
SCSS
$custom: #6331aa;
$custom-light: #966dc4;
$custom-dark: #000000;
JSON
{
  "hex": "#6331aa",
  "rgb": {
    "r": 99,
    "g": 49,
    "b": 170
  },
  "hsl": {
    "h": 264.793,
    "s": 55.251,
    "l": 42.941
  },
  "oklch": {
    "l": 0.44751,
    "c": 0.18188,
    "h": 297.4
  },
  "luminance": 0.07752
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #6331AA

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

Preview Lab → · Contrast checker → · Palette generator →

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