#6331A7#6331A7

#6331A7 is a dark, vivid violet. Relative luminance 0.076; OKLCH L 44.5% C 0.178 H 298.1°. Best body text is #FFFFFF at 8.31:1 contrast (WCAG AA passes).

Color values

HEX#6331A7
RGBrgb(99, 49, 167)
HSLhsl(265, 55%, 42%)
HSVhsv(265, 71%, 65%)
CMYKcmyk(40.7%, 70.7%, 0%, 34.5%)
CIE-LABlab(33.22, 46.89, -55.12)
CIE-LCHlch(33.22, 72.36, 310.39°)
OKLaboklab(44.51% 0.0841 -0.1574)
OKLCHoklch(44.51% 0.178 298.1)
XYZxyz(13.2172, 7.6391, 37.3299)
Luminance0.0764 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6331A7 #75A731
analogous
#313AA7 #6331A7 #9E31A7
triadic
#6331A7 #A76331 #31A763
tetradic
#6331A7 #A7313A #75A731 #31A79E
square
#6331A7 #A7313A #75A731 #31A79E
split-complementary
#6331A7 #A79E31 #3AA731
monochromatic
#2B1548 #472378 #6331A7 #814BCA #A27AD8

Accessibility & contrast

On white

8.31
#6331A7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.53
#6331A7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

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

Contrast matrix

fg \ bg##6331A7#FFFFFF#000000##FFFFFF
##6331A71.008.312.538.31
#FFFFFF8.311.0021.001.00
#0000002.5321.001.0021.00
##FFFFFF8.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004EAA
Deuteranopia (green-blind)
#004DA5
Tritanopia (blue-blind)
#524E68
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #6331a7;
/* rgb */ color: rgb(99, 49, 167);
/* oklch */ color: oklch(44.5% 0.178 298.1);
Tailwind
colors: {
  custom: {
    50: '#956dc2',
    500: '#6331a7',
    950: '#000000',
  },
}
SCSS
$custom: #6331a7;
$custom-light: #956dc2;
$custom-dark: #000000;
JSON
{
  "hex": "#6331a7",
  "rgb": {
    "r": 99,
    "g": 49,
    "b": 167
  },
  "hsl": {
    "h": 265.424,
    "s": 54.63,
    "l": 42.353
  },
  "oklch": {
    "l": 0.44505,
    "c": 0.17847,
    "h": 298.1
  },
  "luminance": 0.07639
}

Semantic roles & 50–950 ramp

primary
#6331A7
secondary
#A0C173
accent
#DE4A9F
background
#F9F6FC
surface
#F2ECF8
border
#CCC7D1
text
#0E0712
muted
#7E7A81

Preview Lab

Preview with #6331A7

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

Preview Lab → · Contrast checker → · Palette generator →

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