#631FA7#631FA7

#631FA7 is a dark, vivid violet. Relative luminance 0.064; OKLCH L 42.6% C 0.198 H 300.4°. Best body text is #FFFFFF at 9.19:1 contrast (WCAG AA passes).

Color values

HEX#631FA7
RGBrgb(99, 31, 167)
HSLhsl(270, 69%, 39%)
HSVhsv(270, 81%, 65%)
CMYKcmyk(40.7%, 81.4%, 0%, 34.5%)
CIE-LABlab(30.45, 54.77, -59.63)
CIE-LCHlch(30.45, 80.97, 312.57°)
OKLaboklab(42.56% 0.1001 -0.1705)
OKLCHoklch(42.56% 0.198 300.4)
XYZxyz(12.6089, 6.4225, 37.1271)
Luminance0.0642 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#631FA7 #63A71F
analogous
#1F1FA7 #631FA7 #A71FA7
triadic
#631FA7 #A7631F #1FA763
tetradic
#631FA7 #A71F1F #63A71F #1FA7A7
square
#631FA7 #A71F1F #63A71F #1FA7A7
split-complementary
#631FA7 #A7A71F #1FA71F
monochromatic
#260C40 #441573 #631FA7 #822BD8 #A05FE1

Accessibility & contrast

On white

9.19
#631FA7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #631FA7
9.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##631FA7#FFFFFF#000000##FFFFFF
##631FA71.009.192.289.19
#FFFFFF9.191.0021.001.00
#0000002.2821.001.0021.00
##FFFFFF9.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0047AB
Deuteranopia (green-blind)
#0047A4
Tritanopia (blue-blind)
#534564
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #631fa7;
/* rgb */ color: rgb(99, 31, 167);
/* oklch */ color: oklch(42.6% 0.198 300.4);
Tailwind
colors: {
  custom: {
    50: '#9664c2',
    500: '#631fa7',
    950: '#000000',
  },
}
SCSS
$custom: #631fa7;
$custom-light: #9664c2;
$custom-dark: #000000;
JSON
{
  "hex": "#631fa7",
  "rgb": {
    "r": 99,
    "g": 31,
    "b": 167
  },
  "hsl": {
    "h": 270,
    "s": 68.687,
    "l": 38.824
  },
  "oklch": {
    "l": 0.4256,
    "c": 0.19772,
    "h": 300.4
  },
  "luminance": 0.06423
}

Semantic roles & 50–950 ramp

primary
#631FA7
secondary
#91C65C
accent
#EC3C94
background
#F9F6FC
surface
#F2EBF8
border
#CCC6D1
text
#0E0613
muted
#7E7A82

Preview Lab

Preview with #631FA7

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

Preview Lab → · Contrast checker → · Palette generator →

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