#6331A2#6331A2

#6331A2 is a dark, vivid violet. Relative luminance 0.075; OKLCH L 44.1% C 0.173 H 299.5°. Best body text is #FFFFFF at 8.43:1 contrast (WCAG AA passes).

Color values

HEX#6331A2
RGBrgb(99, 49, 162)
HSLhsl(267, 54%, 41%)
HSVhsv(267, 70%, 64%)
CMYKcmyk(38.9%, 69.8%, 0%, 36.5%)
CIE-LABlab(32.83, 45.58, -52.74)
CIE-LCHlch(32.83, 69.71, 310.84°)
OKLaboklab(44.1% 0.085 -0.1504)
OKLCHoklch(44.1% 0.173 299.5)
XYZxyz(12.7639, 7.4578, 34.9424)
Luminance0.0746 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6331A2 #70A231
analogous
#3137A2 #6331A2 #9C31A2
triadic
#6331A2 #A26331 #31A263
tetradic
#6331A2 #A23137 #70A231 #31A29C
square
#6331A2 #A23137 #70A231 #31A29C
split-complementary
#6331A2 #A29C31 #37A231
monochromatic
#2A1544 #462373 #6331A2 #8148C8 #A177D6

Accessibility & contrast

On white

8.43
#6331A2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.49
#6331A2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

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

Contrast matrix

fg \ bg##6331A2#FFFFFF#000000##FFFFFF
##6331A21.008.432.498.43
#FFFFFF8.431.0021.001.00
#0000002.4921.001.0021.00
##FFFFFF8.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004DA5
Deuteranopia (green-blind)
#004CA0
Tritanopia (blue-blind)
#544C66
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #6331a2;
/* rgb */ color: rgb(99, 49, 162);
/* oklch */ color: oklch(44.1% 0.173 299.5);
Tailwind
colors: {
  custom: {
    50: '#956dbe',
    500: '#6331a2',
    950: '#000000',
  },
}
SCSS
$custom: #6331a2;
$custom-light: #956dbe;
$custom-dark: #000000;
JSON
{
  "hex": "#6331a2",
  "rgb": {
    "r": 99,
    "g": 49,
    "b": 162
  },
  "hsl": {
    "h": 266.549,
    "s": 53.555,
    "l": 41.373
  },
  "oklch": {
    "l": 0.44102,
    "c": 0.17276,
    "h": 299.5
  },
  "luminance": 0.07458
}

Semantic roles & 50–950 ramp

primary
#6331A2
secondary
#9CBE71
accent
#DD4B9C
background
#F9F6FB
surface
#F2ECF7
border
#CCC7D0
text
#0E0712
muted
#7E7A81

Preview Lab

Preview with #6331A2

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

Preview Lab → · Contrast checker → · Palette generator →

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