#631FA6#631FA6

#631FA6 is a dark, vivid violet. Relative luminance 0.064; OKLCH L 42.5% C 0.197 H 300.7°. Best body text is #FFFFFF at 9.22:1 contrast (WCAG AA passes).

Color values

HEX#631FA6
RGBrgb(99, 31, 166)
HSLhsl(270, 69%, 39%)
HSVhsv(270, 81%, 65%)
CMYKcmyk(40.4%, 81.3%, 0%, 34.9%)
CIE-LABlab(30.37, 54.53, -59.17)
CIE-LCHlch(30.37, 80.47, 312.66°)
OKLaboklab(42.47% 0.1004 -0.1692)
OKLCHoklch(42.47% 0.197 300.7)
XYZxyz(12.5168, 6.3857, 36.6421)
Luminance0.0639 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#631FA6 #62A61F
analogous
#1F1FA6 #631FA6 #A61FA5
triadic
#631FA6 #A6631F #1FA663
tetradic
#631FA6 #A61F1F #62A61F #1FA5A6
square
#631FA6 #A61F1F #62A61F #1FA5A6
split-complementary
#631FA6 #A5A61F #1FA61F
monochromatic
#250C3F #441572 #631FA6 #822BD7 #A05EE1

Accessibility & contrast

On white

9.22
#631FA6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.28
#631FA6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #631FA6
9.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##631FA6#FFFFFF#000000##FFFFFF
##631FA61.009.222.289.22
#FFFFFF9.221.0021.001.00
#0000002.2821.001.0021.00
##FFFFFF9.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0047AA
Deuteranopia (green-blind)
#0047A3
Tritanopia (blue-blind)
#534563
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #631fa6;
/* rgb */ color: rgb(99, 31, 166);
/* oklch */ color: oklch(42.5% 0.197 300.7);
Tailwind
colors: {
  custom: {
    50: '#9664c1',
    500: '#631fa6',
    950: '#000000',
  },
}
SCSS
$custom: #631fa6;
$custom-light: #9664c1;
$custom-dark: #000000;
JSON
{
  "hex": "#631fa6",
  "rgb": {
    "r": 99,
    "g": 31,
    "b": 166
  },
  "hsl": {
    "h": 270.222,
    "s": 68.528,
    "l": 38.627
  },
  "oklch": {
    "l": 0.42471,
    "c": 0.19673,
    "h": 300.7
  },
  "luminance": 0.06386
}

Semantic roles & 50–950 ramp

primary
#631FA6
secondary
#90C55B
accent
#EB3C93
background
#F9F6FC
surface
#F2EBF8
border
#CCC6D1
text
#0E0612
muted
#7E7A81

Preview Lab

Preview with #631FA6

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

Preview Lab → · Contrast checker → · Palette generator →

#631FA6 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva