#631F97#631F97

#631F97 is a dark, vivid violet. Relative luminance 0.059; OKLCH L 41.2% C 0.182 H 305.2°. Best body text is #FFFFFF at 9.66:1 contrast (WCAG AA passes).

Color values

HEX#631F97
RGBrgb(99, 31, 151)
HSLhsl(274, 66%, 36%)
HSVhsv(274, 79%, 59%)
CMYKcmyk(34.4%, 79.5%, 0%, 40.8%)
CIE-LABlab(29.07, 50.99, -52.16)
CIE-LCHlch(29.07, 72.94, 314.35°)
OKLaboklab(41.17% 0.1047 -0.1486)
OKLCHoklch(41.17% 0.182 305.2)
XYZxyz(11.2202, 5.8671, 29.8135)
Luminance0.0587 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#631F97 #53971F
analogous
#271F97 #631F97 #971F8F
triadic
#631F97 #97631F #1F9763
tetradic
#631F97 #97271F #53971F #1F8F97
square
#631F97 #97271F #53971F #1F8F97
split-complementary
#631F97 #8F971F #1F9727
monochromatic
#200A31 #421564 #631F97 #8429CA #A154DC

Accessibility & contrast

On white

9.66
#631F97 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.17
#631F97 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #631F97
9.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##631F97#FFFFFF#000000##FFFFFF
##631F971.009.662.179.66
#FFFFFF9.661.0021.001.00
#0000002.1721.001.0021.00
##FFFFFF9.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00439A
Deuteranopia (green-blind)
#004595
Tritanopia (blue-blind)
#593E5B
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #631f97;
/* rgb */ color: rgb(99, 31, 151);
/* oklch */ color: oklch(41.2% 0.182 305.2);
Tailwind
colors: {
  custom: {
    50: '#9563b6',
    500: '#631f97',
    950: '#000000',
  },
}
SCSS
$custom: #631f97;
$custom-light: #9563b6;
$custom-dark: #000000;
JSON
{
  "hex": "#631f97",
  "rgb": {
    "r": 99,
    "g": 31,
    "b": 151
  },
  "hsl": {
    "h": 274,
    "s": 65.934,
    "l": 35.686
  },
  "oklch": {
    "l": 0.41173,
    "c": 0.18176,
    "h": 305.2
  },
  "luminance": 0.05867
}

Semantic roles & 50–950 ramp

primary
#631F97
secondary
#82BF52
accent
#E93F89
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0E0611
muted
#7E7A80

Preview Lab

Preview with #631F97

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

Preview Lab → · Contrast checker → · Palette generator →

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