#631F9D#631F9D

#631F9D is a dark, vivid violet. Relative luminance 0.061; OKLCH L 41.7% C 0.188 H 303.3°. Best body text is #FFFFFF at 9.49:1 contrast (WCAG AA passes).

Color values

HEX#631F9D
RGBrgb(99, 31, 157)
HSLhsl(272, 67%, 37%)
HSVhsv(272, 80%, 62%)
CMYKcmyk(36.9%, 80.3%, 0%, 38.4%)
CIE-LABlab(29.58, 52.40, -55.00)
CIE-LCHlch(29.58, 75.96, 313.61°)
OKLaboklab(41.68% 0.1031 -0.1569)
OKLCHoklch(41.68% 0.188 303.3)
XYZxyz(11.7199, 6.0669, 32.4453)
Luminance0.0607 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#631F9D #599D1F
analogous
#241F9D #631F9D #9D1F98
triadic
#631F9D #9D631F #1F9D63
tetradic
#631F9D #9D241F #599D1F #1F989D
square
#631F9D #9D241F #599D1F #1F989D
split-complementary
#631F9D #989D1F #1F9D24
monochromatic
#230B37 #43156A #631F9D #8329D0 #A158DE

Accessibility & contrast

On white

9.49
#631F9D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.21
#631F9D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #631F9D
9.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##631F9D#FFFFFF#000000##FFFFFF
##631F9D1.009.492.219.49
#FFFFFF9.491.0021.001.00
#0000002.2121.001.0021.00
##FFFFFF9.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0044A0
Deuteranopia (green-blind)
#00459B
Tritanopia (blue-blind)
#57415E
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #631f9d;
/* rgb */ color: rgb(99, 31, 157);
/* oklch */ color: oklch(41.7% 0.188 303.3);
Tailwind
colors: {
  custom: {
    50: '#9563bb',
    500: '#631f9d',
    950: '#000000',
  },
}
SCSS
$custom: #631f9d;
$custom-light: #9563bb;
$custom-dark: #000000;
JSON
{
  "hex": "#631f9d",
  "rgb": {
    "r": 99,
    "g": 31,
    "b": 157
  },
  "hsl": {
    "h": 272.381,
    "s": 67.021,
    "l": 36.863
  },
  "oklch": {
    "l": 0.41683,
    "c": 0.18774,
    "h": 303.3
  },
  "luminance": 0.06067
}

Semantic roles & 50–950 ramp

primary
#631F9D
secondary
#88C256
accent
#EA3E8D
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0E0612
muted
#7E7A81

Preview Lab

Preview with #631F9D

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

Preview Lab → · Contrast checker → · Palette generator →

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