#631D9B#631D9B

#631D9B is a dark, vivid violet. Relative luminance 0.059; OKLCH L 41.3% C 0.188 H 304.1°. Best body text is #FFFFFF at 9.63:1 contrast (WCAG AA passes).

Color values

HEX#631D9B
RGBrgb(99, 29, 155)
HSLhsl(273, 68%, 36%)
HSVhsv(273, 81%, 61%)
CMYKcmyk(36.1%, 81.3%, 0%, 39.2%)
CIE-LABlab(29.15, 52.67, -54.48)
CIE-LCHlch(29.15, 75.78, 314.04°)
OKLaboklab(41.33% 0.1052 -0.1554)
OKLCHoklch(41.33% 0.188 304.1)
XYZxyz(11.5000, 5.8980, 31.5366)
Luminance0.0590 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#631D9B #559B1D
analogous
#241D9B #631D9B #9B1D94
triadic
#631D9B #9B631D #1D9B63
tetradic
#631D9B #9B241D #559B1D #1D949B
square
#631D9B #9B241D #559B1D #1D949B
split-complementary
#631D9B #949B1D #1D9B24
monochromatic
#210A34 #421367 #631D9B #8427CF #A153DF

Accessibility & contrast

On white

9.63
#631D9B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.18
#631D9B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #631D9B
9.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##631D9B#FFFFFF#000000##FFFFFF
##631D9B1.009.632.189.63
#FFFFFF9.631.0021.001.00
#0000002.1821.001.0021.00
##FFFFFF9.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00439E
Deuteranopia (green-blind)
#004599
Tritanopia (blue-blind)
#583F5D
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #631d9b;
/* rgb */ color: rgb(99, 29, 155);
/* oklch */ color: oklch(41.3% 0.188 304.1);
Tailwind
colors: {
  custom: {
    50: '#9563b9',
    500: '#631d9b',
    950: '#000000',
  },
}
SCSS
$custom: #631d9b;
$custom-light: #9563b9;
$custom-dark: #000000;
JSON
{
  "hex": "#631d9b",
  "rgb": {
    "r": 99,
    "g": 29,
    "b": 155
  },
  "hsl": {
    "h": 273.333,
    "s": 68.478,
    "l": 36.078
  },
  "oklch": {
    "l": 0.41333,
    "c": 0.18765,
    "h": 304.1
  },
  "luminance": 0.05898
}

Semantic roles & 50–950 ramp

primary
#631D9B
secondary
#84C252
accent
#EB3C8A
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0E0612
muted
#7E7A81

Preview Lab

Preview with #631D9B

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

Preview Lab → · Contrast checker → · Palette generator →

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