#631F7D#631F7D

#631F7D is a dark, vivid purple. Relative luminance 0.051; OKLCH L 39.1% C 0.156 H 314.8°. Best body text is #FFFFFF at 10.38:1 contrast (WCAG AA passes).

Color values

HEX#631F7D
RGBrgb(99, 31, 125)
HSLhsl(283, 60%, 31%)
HSVhsv(283, 75%, 49%)
CMYKcmyk(20.8%, 75.2%, 0%, 51%)
CIE-LABlab(27.06, 45.12, -39.25)
CIE-LCHlch(27.06, 59.80, 318.98°)
OKLaboklab(39.12% 0.1099 -0.1107)
OKLCHoklch(39.12% 0.156 314.8)
XYZxyz(9.3366, 5.1136, 19.8933)
Luminance0.0511 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#631F7D #397D1F
analogous
#341F7D #631F7D #7D1F68
triadic
#631F7D #7D631F #1F7D63
tetradic
#631F7D #7D341F #397D1F #1F687D
square
#631F7D #7D341F #397D1F #1F687D
split-complementary
#631F7D #687D1F #1F7D34
monochromatic
#15071B #3C134C #631F7D #8A2BAE #AA45D1

Accessibility & contrast

On white

10.38
#631F7D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.02
#631F7D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #631F7D
10.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##631F7D#FFFFFF#000000##FFFFFF
##631F7D1.0010.382.0210.38
#FFFFFF10.381.0021.001.00
#0000002.0221.001.0021.00
##FFFFFF10.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C80
Deuteranopia (green-blind)
#1B427B
Tritanopia (blue-blind)
#61334C
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #631f7d;
/* rgb */ color: rgb(99, 31, 125);
/* oklch */ color: oklch(39.1% 0.156 314.8);
Tailwind
colors: {
  custom: {
    50: '#9362a3',
    500: '#631f7d',
    950: '#000000',
  },
}
SCSS
$custom: #631f7d;
$custom-light: #9362a3;
$custom-dark: #000000;
JSON
{
  "hex": "#631f7d",
  "rgb": {
    "r": 99,
    "g": 31,
    "b": 125
  },
  "hsl": {
    "h": 283.404,
    "s": 60.256,
    "l": 30.588
  },
  "oklch": {
    "l": 0.39115,
    "c": 0.15593,
    "h": 314.8
  },
  "luminance": 0.05113
}

Semantic roles & 50–950 ramp

primary
#631F7D
secondary
#65B048
accent
#E34470
background
#F9F6FA
surface
#F2EBF4
border
#CCC6CE
text
#0D050F
muted
#7E7A7F

Preview Lab

Preview with #631F7D

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

Preview Lab → · Contrast checker → · Palette generator →

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