#631B7D#631B7D

#631B7D is a dark, vivid purple. Relative luminance 0.049; OKLCH L 38.7% C 0.161 H 315.2°. Best body text is #FFFFFF at 10.59:1 contrast (WCAG AA passes).

Color values

HEX#631B7D
RGBrgb(99, 27, 125)
HSLhsl(284, 64%, 30%)
HSVhsv(284, 78%, 49%)
CMYKcmyk(20.8%, 78.4%, 0%, 51%)
CIE-LABlab(26.50, 46.71, -40.15)
CIE-LCHlch(26.50, 61.60, 319.32°)
OKLaboklab(38.72% 0.1139 -0.1133)
OKLCHoklch(38.72% 0.161 315.2)
XYZxyz(9.2386, 4.9175, 19.8606)
Luminance0.0492 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#631B7D #357D1B
analogous
#321B7D #631B7D #7D1B66
triadic
#631B7D #7D631B #1B7D63
tetradic
#631B7D #7D321B #357D1B #1B667D
square
#631B7D #7D321B #357D1B #1B667D
split-complementary
#631B7D #667D1B #1B7D32
monochromatic
#140519 #3B104B #631B7D #8B26AF #AD3DD5

Accessibility & contrast

On white

10.59
#631B7D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.98
#631B7D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #631B7D
10.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##631B7D#FFFFFF#000000##FFFFFF
##631B7D1.0010.591.9810.59
#FFFFFF10.591.0021.001.00
#0000001.9821.001.0021.00
##FFFFFF10.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B80
Deuteranopia (green-blind)
#17407B
Tritanopia (blue-blind)
#61314B
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #631b7d;
/* rgb */ color: rgb(99, 27, 125);
/* oklch */ color: oklch(38.7% 0.161 315.2);
Tailwind
colors: {
  custom: {
    50: '#9360a3',
    500: '#631b7d',
    950: '#000000',
  },
}
SCSS
$custom: #631b7d;
$custom-light: #9360a3;
$custom-dark: #000000;
JSON
{
  "hex": "#631b7d",
  "rgb": {
    "r": 99,
    "g": 27,
    "b": 125
  },
  "hsl": {
    "h": 284.082,
    "s": 64.474,
    "l": 29.804
  },
  "oklch": {
    "l": 0.3872,
    "c": 0.16061,
    "h": 315.2
  },
  "luminance": 0.04917
}

Semantic roles & 50–950 ramp

primary
#631B7D
secondary
#60B143
accent
#E7406D
background
#F9F5FA
surface
#F2EAF4
border
#CCC6CE
text
#0D050F
muted
#7E797F

Preview Lab

Preview with #631B7D

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

Preview Lab → · Contrast checker → · Palette generator →

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