#631CA7#631CA7

#631CA7 is a dark, highly saturated violet. Relative luminance 0.063; OKLCH L 42.3% C 0.200 H 300.7°. Best body text is #FFFFFF at 9.31:1 contrast (WCAG AA passes).

Color values

HEX#631CA7
RGBrgb(99, 28, 167)
HSLhsl(271, 71%, 38%)
HSVhsv(271, 83%, 65%)
CMYKcmyk(40.7%, 83.2%, 0%, 34.5%)
CIE-LABlab(30.09, 55.83, -60.23)
CIE-LCHlch(30.09, 82.12, 312.83°)
OKLaboklab(42.31% 0.1022 -0.1722)
OKLCHoklch(42.31% 0.2 300.7)
XYZxyz(12.5342, 6.2731, 37.1022)
Luminance0.0627 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#631CA7 #60A71C
analogous
#1D1CA7 #631CA7 #A71CA5
triadic
#631CA7 #A7631C #1CA763
tetradic
#631CA7 #A71D1C #60A71C #1CA5A7
square
#631CA7 #A71D1C #60A71C #1CA5A7
split-complementary
#631CA7 #A5A71C #1CA71D
monochromatic
#250A3E #441373 #631CA7 #8226DB #A05AE3

Accessibility & contrast

On white

9.31
#631CA7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.25
#631CA7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #631CA7
9.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##631CA7#FFFFFF#000000##FFFFFF
##631CA71.009.312.259.31
#FFFFFF9.311.0021.001.00
#0000002.2521.001.0021.00
##FFFFFF9.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0046AB
Deuteranopia (green-blind)
#0046A4
Tritanopia (blue-blind)
#534463
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #631ca7;
/* rgb */ color: rgb(99, 28, 167);
/* oklch */ color: oklch(42.3% 0.200 300.7);
Tailwind
colors: {
  custom: {
    50: '#9663c2',
    500: '#631ca7',
    950: '#000000',
  },
}
SCSS
$custom: #631ca7;
$custom-light: #9663c2;
$custom-dark: #000000;
JSON
{
  "hex": "#631ca7",
  "rgb": {
    "r": 99,
    "g": 28,
    "b": 167
  },
  "hsl": {
    "h": 270.647,
    "s": 71.282,
    "l": 38.235
  },
  "oklch": {
    "l": 0.42309,
    "c": 0.20029,
    "h": 300.7
  },
  "luminance": 0.06273
}

Semantic roles & 50–950 ramp

primary
#631CA7
secondary
#8EC758
accent
#EE3A92
background
#F9F6FC
surface
#F2EBF8
border
#CCC6D1
text
#0E0613
muted
#7E7A82

Preview Lab

Preview with #631CA7

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

Preview Lab → · Contrast checker → · Palette generator →

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