#631796#631796

#631796 is a dark, vivid violet. Relative luminance 0.055; OKLCH L 40.4% C 0.188 H 306.2°. Best body text is #FFFFFF at 10.03:1 contrast (WCAG AA passes).

Color values

HEX#631796
RGBrgb(99, 23, 150)
HSLhsl(276, 73%, 34%)
HSVhsv(276, 85%, 59%)
CMYKcmyk(34%, 84.7%, 0%, 41.2%)
CIE-LABlab(28.03, 53.56, -53.25)
CIE-LCHlch(28.03, 75.53, 315.17°)
OKLaboklab(40.42% 0.1111 -0.1517)
OKLCHoklch(40.42% 0.188 306.2)
XYZxyz(10.9558, 5.4676, 29.3264)
Luminance0.0547 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#631796 #4A9617
analogous
#241796 #631796 #96178A
triadic
#631796 #966317 #179663
tetradic
#631796 #962417 #4A9617 #178A96
square
#631796 #962417 #4A9617 #178A96
split-complementary
#631796 #8A9617 #179624
monochromatic
#1D072C #400F61 #631796 #861FCB #A345E2

Accessibility & contrast

On white

10.03
#631796 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.09
#631796 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #631796
10.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##631796#FFFFFF#000000##FFFFFF
##6317961.0010.032.0910.03
#FFFFFF10.031.0021.001.00
#0000002.0921.001.0021.00
##FFFFFF10.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004099
Deuteranopia (green-blind)
#004294
Tritanopia (blue-blind)
#5A3B59
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #631796;
/* rgb */ color: rgb(99, 23, 150);
/* oklch */ color: oklch(40.4% 0.188 306.2);
Tailwind
colors: {
  custom: {
    50: '#9560b6',
    500: '#631796',
    950: '#000000',
  },
}
SCSS
$custom: #631796;
$custom-light: #9560b6;
$custom-dark: #000000;
JSON
{
  "hex": "#631796",
  "rgb": {
    "r": 99,
    "g": 23,
    "b": 150
  },
  "hsl": {
    "h": 275.906,
    "s": 73.41,
    "l": 33.922
  },
  "oklch": {
    "l": 0.40417,
    "c": 0.18808,
    "h": 306.2
  },
  "luminance": 0.05467
}

Semantic roles & 50–950 ramp

primary
#631796
secondary
#78C345
accent
#F03882
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0E0511
muted
#7E7A80

Preview Lab

Preview with #631796

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

Preview Lab → · Contrast checker → · Palette generator →

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