#6331A8#6331A8

#6331A8 is a dark, vivid violet. Relative luminance 0.077; OKLCH L 44.6% C 0.180 H 297.9°. Best body text is #FFFFFF at 8.28:1 contrast (WCAG AA passes).

Color values

HEX#6331A8
RGBrgb(99, 49, 168)
HSLhsl(265, 55%, 43%)
HSVhsv(265, 71%, 66%)
CMYKcmyk(41.1%, 70.8%, 0%, 34.1%)
CIE-LABlab(33.30, 47.15, -55.59)
CIE-LCHlch(33.30, 72.89, 310.30°)
OKLaboklab(44.59% 0.084 -0.1588)
OKLCHoklch(44.59% 0.18 297.9)
XYZxyz(13.3100, 7.6762, 37.8186)
Luminance0.0768 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6331A8 #76A831
analogous
#313AA8 #6331A8 #9F31A8
triadic
#6331A8 #A86331 #31A863
tetradic
#6331A8 #A8313A #76A831 #31A89F
square
#6331A8 #A8313A #76A831 #31A89F
split-complementary
#6331A8 #A89F31 #3AA831
monochromatic
#2B1549 #472379 #6331A8 #814CCB #A27BD8

Accessibility & contrast

On white

8.28
#6331A8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.54
#6331A8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

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

Contrast matrix

fg \ bg##6331A8#FFFFFF#000000##FFFFFF
##6331A81.008.282.548.28
#FFFFFF8.281.0021.001.00
#0000002.5421.001.0021.00
##FFFFFF8.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004FAC
Deuteranopia (green-blind)
#004DA6
Tritanopia (blue-blind)
#524E69
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #6331a8;
/* rgb */ color: rgb(99, 49, 168);
/* oklch */ color: oklch(44.6% 0.180 297.9);
Tailwind
colors: {
  custom: {
    50: '#956dc3',
    500: '#6331a8',
    950: '#000000',
  },
}
SCSS
$custom: #6331a8;
$custom-light: #956dc3;
$custom-dark: #000000;
JSON
{
  "hex": "#6331a8",
  "rgb": {
    "r": 99,
    "g": 49,
    "b": 168
  },
  "hsl": {
    "h": 265.21,
    "s": 54.839,
    "l": 42.549
  },
  "oklch": {
    "l": 0.44587,
    "c": 0.1796,
    "h": 297.9
  },
  "luminance": 0.07676
}

Semantic roles & 50–950 ramp

primary
#6331A8
secondary
#A1C174
accent
#DE4AA0
background
#F9F6FC
surface
#F2ECF8
border
#CCC7D1
text
#0E0713
muted
#7E7A82

Preview Lab

Preview with #6331A8

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

Preview Lab → · Contrast checker → · Palette generator →

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