#631FA8#631FA8

#631FA8 is a dark, vivid violet. Relative luminance 0.065; OKLCH L 42.6% C 0.199 H 300.1°. Best body text is #FFFFFF at 9.16:1 contrast (WCAG AA passes).

Color values

HEX#631FA8
RGBrgb(99, 31, 168)
HSLhsl(270, 69%, 39%)
HSVhsv(270, 82%, 66%)
CMYKcmyk(41.1%, 81.5%, 0%, 34.1%)
CIE-LABlab(30.54, 55.01, -60.09)
CIE-LCHlch(30.54, 81.47, 312.47°)
OKLaboklab(42.65% 0.0998 -0.1719)
OKLCHoklch(42.65% 0.199 300.1)
XYZxyz(12.7017, 6.4596, 37.6158)
Luminance0.0646 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#631FA8 #64A81F
analogous
#1F20A8 #631FA8 #A81FA8
triadic
#631FA8 #A8631F #1FA863
tetradic
#631FA8 #A81F20 #64A81F #1FA8A8
square
#631FA8 #A81F20 #64A81F #1FA8A8
split-complementary
#631FA8 #A8A81F #20A81F
monochromatic
#260C41 #451574 #631FA8 #812CD8 #A060E2

Accessibility & contrast

On white

9.16
#631FA8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.29
#631FA8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #631FA8
9.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##631FA8#FFFFFF#000000##FFFFFF
##631FA81.009.162.299.16
#FFFFFF9.161.0021.001.00
#0000002.2921.001.0021.00
##FFFFFF9.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0048AC
Deuteranopia (green-blind)
#0047A5
Tritanopia (blue-blind)
#534665
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #631fa8;
/* rgb */ color: rgb(99, 31, 168);
/* oklch */ color: oklch(42.6% 0.199 300.1);
Tailwind
colors: {
  custom: {
    50: '#9664c3',
    500: '#631fa8',
    950: '#000000',
  },
}
SCSS
$custom: #631fa8;
$custom-light: #9664c3;
$custom-dark: #000000;
JSON
{
  "hex": "#631fa8",
  "rgb": {
    "r": 99,
    "g": 31,
    "b": 168
  },
  "hsl": {
    "h": 269.781,
    "s": 68.844,
    "l": 39.02
  },
  "oklch": {
    "l": 0.4265,
    "c": 0.19873,
    "h": 300.1
  },
  "luminance": 0.0646
}

Semantic roles & 50–950 ramp

primary
#631FA8
secondary
#92C65D
accent
#EC3C95
background
#F9F6FC
surface
#F2EBF8
border
#CCC6D1
text
#0E0613
muted
#7E7A82

Preview Lab

Preview with #631FA8

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

Preview Lab → · Contrast checker → · Palette generator →

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