#6331A4#6331A4

#6331A4 is a dark, vivid violet. Relative luminance 0.075; OKLCH L 44.3% C 0.175 H 298.9°. Best body text is #FFFFFF at 8.38:1 contrast (WCAG AA passes).

Color values

HEX#6331A4
RGBrgb(99, 49, 164)
HSLhsl(266, 54%, 42%)
HSVhsv(266, 70%, 64%)
CMYKcmyk(39.6%, 70.1%, 0%, 35.7%)
CIE-LABlab(32.98, 46.11, -53.70)
CIE-LCHlch(32.98, 70.78, 310.65°)
OKLaboklab(44.26% 0.0847 -0.1532)
OKLCHoklch(44.26% 0.175 298.9)
XYZxyz(12.9431, 7.5294, 35.8862)
Luminance0.0753 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6331A4 #72A431
analogous
#3138A4 #6331A4 #9D31A4
triadic
#6331A4 #A46331 #31A463
tetradic
#6331A4 #A43138 #72A431 #31A49D
square
#6331A4 #A43138 #72A431 #31A49D
split-complementary
#6331A4 #A49D31 #38A431
monochromatic
#2A1546 #472375 #6331A4 #8149C9 #A279D7

Accessibility & contrast

On white

8.38
#6331A4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

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

Contrast matrix

fg \ bg##6331A4#FFFFFF#000000##FFFFFF
##6331A41.008.382.518.38
#FFFFFF8.381.0021.001.00
#0000002.5121.001.0021.00
##FFFFFF8.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004EA7
Deuteranopia (green-blind)
#004CA2
Tritanopia (blue-blind)
#544D67
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #6331a4;
/* rgb */ color: rgb(99, 49, 164);
/* oklch */ color: oklch(44.3% 0.175 298.9);
Tailwind
colors: {
  custom: {
    50: '#956dc0',
    500: '#6331a4',
    950: '#000000',
  },
}
SCSS
$custom: #6331a4;
$custom-light: #956dc0;
$custom-dark: #000000;
JSON
{
  "hex": "#6331a4",
  "rgb": {
    "r": 99,
    "g": 49,
    "b": 164
  },
  "hsl": {
    "h": 266.087,
    "s": 53.991,
    "l": 41.765
  },
  "oklch": {
    "l": 0.44262,
    "c": 0.17504,
    "h": 298.9
  },
  "luminance": 0.0753
}

Semantic roles & 50–950 ramp

primary
#6331A4
secondary
#9DBF72
accent
#DD4A9D
background
#F9F6FB
surface
#F2ECF7
border
#CCC7D0
text
#0E0712
muted
#7E7A81

Preview Lab

Preview with #6331A4

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

Preview Lab → · Contrast checker → · Palette generator →

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