#631B87#631B87

#631B87 is a dark, vivid purple. Relative luminance 0.052; OKLCH L 39.5% C 0.170 H 311.2°. Best body text is #FFFFFF at 10.31:1 contrast (WCAG AA passes).

Color values

HEX#631B87
RGBrgb(99, 27, 135)
HSLhsl(280, 67%, 32%)
HSVhsv(280, 80%, 53%)
CMYKcmyk(26.7%, 80%, 0%, 47.1%)
CIE-LABlab(27.26, 48.87, -45.21)
CIE-LCHlch(27.26, 66.58, 317.23°)
OKLaboklab(39.5% 0.112 -0.1281)
OKLCHoklch(39.5% 0.17 311.2)
XYZxyz(9.9099, 5.1860, 23.3959)
Luminance0.0519 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#631B87 #3F871B
analogous
#2D1B87 #631B87 #871B75
triadic
#631B87 #87631B #1B8763
tetradic
#631B87 #872D1B #3F871B #1B7587
square
#631B87 #872D1B #3F871B #1B7587
split-complementary
#631B87 #75871B #1B872D
monochromatic
#180721 #3E1154 #631B87 #8825BA #A743D9

Accessibility & contrast

On white

10.31
#631B87 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.04
#631B87 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #631B87
10.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##631B87#FFFFFF#000000##FFFFFF
##631B871.0010.312.0410.31
#FFFFFF10.311.0021.001.00
#0000002.0421.001.0021.00
##FFFFFF10.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D8A
Deuteranopia (green-blind)
#004285
Tritanopia (blue-blind)
#5E3551
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #631b87;
/* rgb */ color: rgb(99, 27, 135);
/* oklch */ color: oklch(39.5% 0.170 311.2);
Tailwind
colors: {
  custom: {
    50: '#9461ab',
    500: '#631b87',
    950: '#000000',
  },
}
SCSS
$custom: #631b87;
$custom-light: #9461ab;
$custom-dark: #000000;
JSON
{
  "hex": "#631b87",
  "rgb": {
    "r": 99,
    "g": 27,
    "b": 135
  },
  "hsl": {
    "h": 280,
    "s": 66.667,
    "l": 31.765
  },
  "oklch": {
    "l": 0.39495,
    "c": 0.17017,
    "h": 311.2
  },
  "luminance": 0.05186
}

Semantic roles & 50–950 ramp

primary
#631B87
secondary
#6BBA44
accent
#EA3E77
background
#F9F6FA
surface
#F2EBF4
border
#CCC6CE
text
#0E0510
muted
#7E7A7F

Preview Lab

Preview with #631B87

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

Preview Lab → · Contrast checker → · Palette generator →

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