#631797#631797

#631797 is a dark, vivid violet. Relative luminance 0.055; OKLCH L 40.5% C 0.189 H 305.9°. Best body text is #FFFFFF at 10.00:1 contrast (WCAG AA passes).

Color values

HEX#631797
RGBrgb(99, 23, 151)
HSLhsl(276, 74%, 34%)
HSVhsv(276, 85%, 59%)
CMYKcmyk(34.4%, 84.8%, 0%, 40.8%)
CIE-LABlab(28.11, 53.79, -53.72)
CIE-LCHlch(28.11, 76.02, 315.03°)
OKLaboklab(40.5% 0.1108 -0.1531)
OKLCHoklch(40.5% 0.189 305.9)
XYZxyz(11.0366, 5.4999, 29.7523)
Luminance0.0550 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#631797 #4B9717
analogous
#231797 #631797 #97178B
triadic
#631797 #976317 #179763
tetradic
#631797 #972317 #4B9717 #178B97
square
#631797 #972317 #4B9717 #178B97
split-complementary
#631797 #8B9717 #179723
monochromatic
#1D072D #400F62 #631797 #861FCC #A346E3

Accessibility & contrast

On white

10.00
#631797 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.10
#631797 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #631797
10.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##631797#FFFFFF#000000##FFFFFF
##6317971.0010.002.1010.00
#FFFFFF10.001.0021.001.00
#0000002.1021.001.0021.00
##FFFFFF10.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00409A
Deuteranopia (green-blind)
#004395
Tritanopia (blue-blind)
#593B59
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #631797;
/* rgb */ color: rgb(99, 23, 151);
/* oklch */ color: oklch(40.5% 0.189 305.9);
Tailwind
colors: {
  custom: {
    50: '#9560b7',
    500: '#631797',
    950: '#000000',
  },
}
SCSS
$custom: #631797;
$custom-light: #9560b7;
$custom-dark: #000000;
JSON
{
  "hex": "#631797",
  "rgb": {
    "r": 99,
    "g": 23,
    "b": 151
  },
  "hsl": {
    "h": 275.625,
    "s": 73.563,
    "l": 34.118
  },
  "oklch": {
    "l": 0.40504,
    "c": 0.18902,
    "h": 305.9
  },
  "luminance": 0.055
}

Semantic roles & 50–950 ramp

primary
#631797
secondary
#79C446
accent
#F03883
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0E0511
muted
#7E7A80

Preview Lab

Preview with #631797

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

Preview Lab → · Contrast checker → · Palette generator →

#631797 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva