#631878#631878

#631878 is a dark, vivid purple. Relative luminance 0.047; OKLCH L 38.1% C 0.159 H 317.5°. Best body text is #FFFFFF at 10.87:1 contrast (WCAG AA passes).

Color values

HEX#631878
RGBrgb(99, 24, 120)
HSLhsl(287, 67%, 28%)
HSVhsv(287, 80%, 47%)
CMYKcmyk(17.5%, 80%, 0%, 52.9%)
CIE-LABlab(25.75, 46.77, -38.19)
CIE-LCHlch(25.75, 60.38, 320.77°)
OKLaboklab(38.08% 0.1175 -0.1075)
OKLCHoklch(38.08% 0.159 317.5)
XYZxyz(8.8619, 4.6624, 18.1988)
Luminance0.0466 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#631878 #2D7818
analogous
#331878 #631878 #78185D
triadic
#631878 #786318 #187863
tetradic
#631878 #783318 #2D7818 #185D78
square
#631878 #783318 #2D7818 #185D78
split-complementary
#631878 #5D7818 #187833
monochromatic
#15051A #390E45 #631878 #8D22AB #B334D6

Accessibility & contrast

On white

10.87
#631878 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.93
#631878 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #631878
10.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##631878#FFFFFF#000000##FFFFFF
##6318781.0010.871.9310.87
#FFFFFF10.871.0021.001.00
#0000001.9321.001.0021.00
##FFFFFF10.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00387B
Deuteranopia (green-blind)
#1B3F76
Tritanopia (blue-blind)
#622D48
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #631878;
/* rgb */ color: rgb(99, 24, 120);
/* oklch */ color: oklch(38.1% 0.159 317.5);
Tailwind
colors: {
  custom: {
    50: '#935f9f',
    500: '#631878',
    950: '#000000',
  },
}
SCSS
$custom: #631878;
$custom-light: #935f9f;
$custom-dark: #000000;
JSON
{
  "hex": "#631878",
  "rgb": {
    "r": 99,
    "g": 24,
    "b": 120
  },
  "hsl": {
    "h": 286.875,
    "s": 66.667,
    "l": 28.235
  },
  "oklch": {
    "l": 0.38076,
    "c": 0.15921,
    "h": 317.5
  },
  "luminance": 0.04662
}

Semantic roles & 50–950 ramp

primary
#631878
secondary
#57AD3F
accent
#EA3E64
background
#F9F5F9
surface
#F2EAF2
border
#CCC6CC
text
#0D050F
muted
#7E797E

Preview Lab

Preview with #631878

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

Preview Lab → · Contrast checker → · Palette generator →

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